Added a Parameter example

This commit is contained in:
Jamie Starke 2016-10-22 17:23:38 -07:00
parent 18308dd66c
commit 3ba46b2a9b
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 = {
VPCCidrParameter = "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"}
]