Sha256: f8bab7b2827bd0551bf61fad5ce66db877ef84eabe2edd896822cd694822214a
Contents?: true
Size: 1.57 KB
Versions: 10
Compression:
Stored size: 1.57 KB
Contents
--- AWSTemplateFormatVersion: '2010-09-09' Description: 'AWS CloudFormation Sample Template. A fixture for testing only. @_name: <%= @_name %>' Parameters: KeyName: Description: Name of an existing EC2 KeyPair for SSH. <%= custom_helper %> Type: AWS::EC2::KeyPair::KeyName ConstraintDescription: must be the name of an existing EC2 KeyPair. <% if @route53 %> HostedZoneName: Description: The route53 HostedZoneName. For example, "mydomain.com." Don't forget the period at the end. Type: String Subdomain: Description: The subdomain of the dns entry. For example, hello -> hello.mydomain.com, hello is the subdomain. Type: String <% end %> Resources: EC2Instance: Type: AWS::EC2::Instance Properties: InstanceType: Ref: InstanceType SecurityGroups: - Ref: InstanceSecurityGroup KeyName: Ref: KeyName UserData: Fn::Base64: !Sub | <%= partial("user_data/bootstrap.sh", {}, indent: 10) %> ImageId: Fn::FindInMap: - AWSRegionArch2AMI - Ref: AWS::Region - Fn::FindInMap: - AWSInstanceType2Arch - Ref: InstanceType - Arch <%= partial("security_group", desc: "Enable SSH access via port 22", port: "22") %> <% if @route53 %> DnsRecord: Type: AWS::Route53::RecordSet Properties: HostedZoneName: !Ref 'HostedZoneName' Comment: DNS name for my instance. Name: !Join ['', [!Ref 'Subdomain', ., !Ref 'HostedZoneName']] Type: CNAME TTL: '900' ResourceRecords: - !GetAtt EC2Instance.PublicIp <% end %>
Version data entries
10 entries across 10 versions & 1 rubygems