Added a Parameter example
This commit is contained in:
parent
18308dd66c
commit
3ba46b2a9b
|
@ -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"}
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue