Description
After launching a CF script, the parameters are not visible in the detail tabs.
Here's a sample script; given correct parameters, it will run, but parameters don't show up:
{
"AWSTemplateFormatVersion" : "2010-09-09",
"Description" : "AWS CloudFormation Sample Template EC2InstanceSample",
"Parameters" : {
"KeyName" : {
"Description" : "Name of an existing EC2 KeyPair to enable SSH access to the instance",
"Type" : "String"
},
"AvailabilityZone" : {
"Description" : "AvailabilityZone",
"Type" : "String"
},
"InstanceType" : {
"Description" : "InstanceType",
"Type" : "String"
},
"SecurityGroupId" : {
"Description" : "SecurityGroupId",
"Type" : "String"
}
},
"Mappings" : {
"RegionMap" : {
"us-east-1" : { "AMI" : "ami-13289f7a" }
},
"KernelMap" : {
"us-east-1" : { "AKI" : "" }
},
"RamdiskMap" : {
"us-east-1" : { "ARI" : "" }
}
},
"Resources" : {
"cfEc2Instance" : {
"Type" : "AWS::EC2::Instance",
"Properties" : {
"KeyName" : { "Ref" : "KeyName" },
"AvailabilityZone" : { "Ref" : "AvailabilityZone" },
"InstanceType" : { "Ref" : "InstanceType" },
"ImageId" : "ami-13289f7a",
"SecurityGroupIds" :[{"Ref" : "SecurityGroupId"}],
"UserData" : { "Fn::Base64" : "80" }
}
}
},
"Outputs" : {
"InstanceId" : {
"Description" : "InstanceId of the newly created EC2 instance",
"Value" : { "Ref" : "cfEc2Instance" }
},
"AZ" : {
"Description" : "Availability Zone of the newly created EC2 instance",
"Value" : { "Fn::GetAtt" : [ "cfEc2Instance", "AvailabilityZone" ] }
},
"PublicIP" : {
"Description" : "Public IP address of the newly created EC2 instance",
"Value" : { "Fn::GetAtt" : [ "cfEc2Instance", "PublicIp" ] }
},
"PrivateIP" : {
"Description" : "Private IP address of the newly created EC2 instance",
"Value" : { "Ref" : "cfEc2Instance" }
},
"AZ" : {
"Description" : "Availability Zone of the newly created EC2 instance",
"Value" : { "Fn::GetAtt" : [ "cfEc2Instance", "AvailabilityZone" ] }
},
"PublicIP" : {
"Description" : "Public IP address of the newly created EC2 instance",
"Value" : { "Fn::GetAtt" : [ "cfEc2Instance", "PublicIp" ] }
},
"PrivateIP" : {
"Description" : "Private IP address of the newly created EC2 instance",
"Value" : { "Fn::GetAtt" : [ "cfEc2Instance", "PrivateIp" ] }
},
"PublicDNS" : {
"Description" : "Public DNSName of the newly created EC2 instance",
"Value" : { "Fn::GetAtt" : [ "cfEc2Instance", "PublicDnsName" ] }
},
"PrivateDNS" : {
"Description" : "Private DNSName of the newly created EC2 instance",
"Value" : { "Fn::GetAtt" : [ "cfEc2Instance", "PrivateDnsName" ] }
}
}
}
Activity