Sha256: b301e5b57bc4257f7c67062eb3ebb3807e54664ee1c4742c761f91e4e03297a6
Contents?: true
Size: 1.39 KB
Versions: 14
Compression:
Stored size: 1.39 KB
Contents
# Starter Demo Example aws_template_format_version "2010-09-09" description "Demo stack" parameter("InstanceType", "t3.micro") mapping("AmiMap", "ap-northeast-1": { Ami: "ami-0f9ae750e8274075b" }, "ap-northeast-2": { Ami: "ami-047f7b46bd6dd5d84" }, "ap-south-1": { Ami: "ami-0889b8a448de4fc44" }, "ap-southeast-1": { Ami: "ami-0b419c3a4b01d1859" }, "ap-southeast-2": { Ami: "ami-04481c741a0311bbb" }, "ca-central-1": { Ami: "ami-03338e1f67dae0168" }, "eu-central-1": { Ami: "ami-09def150731bdbcc2" }, "eu-north-1": { Ami: "ami-d16fe6af" }, "eu-west-1": { Ami: "ami-07683a44e80cd32c5" }, "eu-west-2": { Ami: "ami-09ead922c1dad67e4" }, "eu-west-3": { Ami: "ami-0451ae4fd8dd178f7" }, "sa-east-1": { Ami: "ami-0669a96e355eac82f" }, "us-east-1": { Ami: "ami-0de53d8956e8dcf80" }, "us-east-2": { Ami: "ami-02bcbb802e03574ba" }, "us-west-1": { Ami: "ami-0019ef04ac50be30f" }, "us-west-2": { Ami: "ami-061392db613a6357b" } ) resource("Instance", "AWS::EC2::Instance", InstanceType: ref("InstanceType"), ImageId: find_in_map("AmiMap", ref("AWS::Region"), "Ami"), SecurityGroupIds: [get_att("SecurityGroup.GroupId")], UserData: base64(user_data("bootstrap.sh")) ) resource("SecurityGroup", "AWS::EC2::SecurityGroup", GroupDescription: "demo security group", ) output("Instance") output("SecurityGroup", get_att("SecurityGroup.GroupId"))
Version data entries
14 entries across 14 versions & 1 rubygems