Merge pull request #9528 from jrstarke/cloudformation_parameters

Added a Parameter example
This commit is contained in:
Paul Stack 2016-10-24 15:54:09 +04:00 committed by GitHub
commit 184de27519
1 changed files with 11 additions and 1 deletions

View File

@ -15,13 +15,23 @@ Provides a CloudFormation Stack resource.
```
resource "aws_cloudformation_stack" "network" {
name = "networking-stack"
parameters {
VPCCidr = "10.0.0.0/16"
}
template_body = <<STACK
{
"Parameters" : {
"VPCCidr" : {
"Type" : "String",
"Default" : "10.0.0.0/16",
"Description" : "Enter the CIDR block for the VPC. Default is 10.0.0.0/16."
}
},
"Resources" : {
"my-vpc": {
"Type" : "AWS::EC2::VPC",
"Properties" : {
"CidrBlock" : "10.0.0.0/16",
"CidrBlock" : { "Ref" : "VPCCidr" },
"Tags" : [
{"Key": "Name", "Value": "Primary_CF_VPC"}
]