Sha256: cee6f93132f6158834c739b764a96268e034ff4ccb69f7a338a80bfa651ed2c2

Contents?: true

Size: 1.45 KB

Versions: 7

Compression:

Stored size: 1.45 KB

Contents

{

"Resources": {

"BaseImageGeneratorSecurityGroup" : {
  "Type" : "AWS::EC2::SecurityGroup",
  "Properties" : {
    "GroupDescription" : "Allow the application instances to access the NAT device",
    "VpcId" : { "Ref" : "VPC" },

    "SecurityGroupIngress": [
      {"IpProtocol": "tcp", "FromPort": "22", "ToPort": "22", "CidrIp": "0.0.0.0/0"}
    ],
    "SecurityGroupEgress": [
      {"IpProtocol": "-1", "CidrIp": "0.0.0.0/0"}
    ]
  }
},

"BaseImageGenerator" : {
  "Type" : "AWS::EC2::Instance",
  "Metadata": {
    "AWS::CloudFormation::Init": {}
  },
  "Properties" : {
    "InstanceType": "m3.large",
    "ImageId": {"Ref": "BaseAMIVar"},
    "KeyName": {"Ref": "IAMKeypairNameVar"},

    "NetworkInterfaces": [{
      "DeviceIndex": "0",
      "AssociatePublicIpAddress": "true",
      "DeleteOnTermination": "true",
      "SubnetId": {"Ref": "PublicSubnet"},
      "GroupSet" : [{"Ref" : "BaseImageGeneratorSecurityGroup"}]
    }],

    "BlockDeviceMappings": [{
      "DeviceName": "/dev/sda1",

      "Ebs": {
        "VolumeSize": "50",
        "VolumeType": "gp2"
      }
    }],

    "UserData": {"Fn::Base64": {"Fn::Join": ["", [
      "#!/bin/bash\n",
      "export AWS_REGION='", {"Ref": "AWS::Region"}, "'\n",
      "export AWS_STACK_NAME='", {"Ref": "AWS::StackName"}, "'\n",
      "export AWS_INSTANCE_LOGICAL_NAME='BaseImageGenerator'\n",
      {"Ref": "UserDataEnvironmentVar"}, "\n",
      {"Ref": "BaseImageGeneratorRoleScriptVar"}, "\n"
    ]]}}
  }
}

}

}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
stacco-0.1.53 ./priv/layers/task-generate-base-image.json
stacco-0.1.52 ./priv/layers/task-generate-base-image.json
stacco-0.1.50 ./priv/layers/task-generate-base-image.json
stacco-0.1.49 ./priv/layers/task-generate-base-image.json
stacco-0.1.48 ./priv/layers/task-generate-base-image.json
stacco-0.1.47 ./priv/layers/task-generate-base-image.json
stacco-0.1.46 ./priv/layers/task-generate-base-image.json