Cloud formation template
> {
> "Parameters" : {
> "KeyName" : {
> "Description" : "SSH Key Name",
> "Type" : "String",
> "Default" : "My-Key"
> },
> "MyInstanceSize": {
> "Description": "Instance size",
> "Type": "String",
> "Default" : "t1.micro"
> },
> "MyInstanceName": {
> "Description": "Instance name",
> "Type": "String"
> }
> },
> "Mappings" : {
> "Debian606" : {
> "us-east-1" : { "32" : "ami-a121a6c8", "64" :
> "ami-4d20a724"},
> "us-west-1" : { "32" : "ami-e4da52d4", "64" :
> "ami-ecda52dc"},
> "us-west-2" : { "32" : "ami-2c735269", "64" :
> "ami-36735273"},
> "us-gov-west-1" : { "32" : "", "64" : ""},
> "eu-west-1" : { "32" : "ami-75cdcf01", "64" :
> "ami-7fcdcf0b"},
> "ap-southeast-1" : { "32" : "ami-947d3ec6", "64" :
> "ami-867d3ed4"},
> "ap-southeast-2" : { "32" : "", "64" : ""},
> "ap-northeast-1" : { "32" : "ami-a650e9a7", "64" :
> "ami-be50e9bf"},
> "sa-east-1" : { "32" : "ami-0689511b", "64" :
> "ami-0289511f"},
> },
> "release" : {
> "stable" : { "squeeze" : "Debian606" }
> }
> },
> "Resources" : {
> "MyInstance" : {
> "Type" : "AWS::EC2::Instance",
> "Properties" : {
> "SecurityGroups" : [ { "Ref" :
> "MySecurityGroup" } ],
> "KeyName" : { "Ref": "KeyName" },
> "Tags" : [{"Key": "Name", "Value": {"Ref" :
> "MyInstanceName"} } ],
> "ImageId" : { "Fn::FindInMap" : [
> "Debian606", { "Ref" : "AWS::Region" }, "64" ]},
> "InstanceType" : { "Ref" : "MyInstanceSize"
> },
> "UserData" : { "Fn::Base64" : "" }
> }
> },
> "MySecurityGroup" : {
> "Type" : "AWS::EC2::SecurityGroup",
> "Properties" : {
> "GroupDescription" : "Permit inbound SSH",
> "SecurityGroupIngress" : [
> {
> "IpProtocol" : "tcp",
> "FromPort" : "22",
> "ToPort" : "22",
> "CidrIp" : "0.0.0.0/0"
> }
> ]
> }
> }
> }
Again, thank you for sharing!!
What is the function of the "release" mapping?
Any thoughts on adding a git repo so we can extend and maintain this
example? (I have some minor changes/additions that I think would be
useful.)
Is this considered code that has a license? or is it basically public domain?
Thanks,
Brian
Reply to: