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

Version Path
lono-6.1.11 lib/templates/blueprint_types/dsl/app/templates/%blueprint_name%.rb
lono-6.1.10 lib/templates/blueprint_types/dsl/app/templates/%blueprint_name%.rb
lono-6.1.9 lib/templates/blueprint_types/dsl/app/templates/%blueprint_name%.rb
lono-6.1.8 lib/templates/blueprint_types/dsl/app/templates/%blueprint_name%.rb
lono-6.1.7 lib/templates/blueprint_types/dsl/app/templates/%blueprint_name%.rb
lono-6.1.6 lib/templates/blueprint_types/dsl/app/templates/%blueprint_name%.rb
lono-6.1.5 lib/templates/blueprint_types/dsl/app/templates/%blueprint_name%.rb
lono-6.1.4 lib/templates/blueprint_types/dsl/app/templates/%blueprint_name%.rb
lono-6.1.3 lib/templates/blueprint_types/dsl/app/templates/%blueprint_name%.rb
lono-6.1.2 lib/templates/blueprint_types/dsl/app/templates/%blueprint_name%.rb
lono-6.1.1 lib/templates/blueprint_types/dsl/app/templates/%blueprint_name%.rb
lono-6.1.0 lib/templates/blueprint_types/dsl/app/templates/%blueprint_name%.rb
lono-6.0.1 lib/templates/blueprint_types/dsl/app/templates/%blueprint_name%.rb
lono-6.0.0 lib/templates/blueprint_types/dsl/app/templates/%blueprint_name%.rb