Merge pull request #9528 from jrstarke/cloudformation_parameters
Added a Parameter example
This commit is contained in:
commit
184de27519
|
@ -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"}
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue