Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
hemanthreddy44 committed Jul 19, 2020
1 parent 63080ef commit 8f5ed67
Show file tree
Hide file tree
Showing 7 changed files with 498 additions and 1 deletion.
Binary file added Diagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
# cloudformation

Instruction for creating:create.sh udagram-stack
Instruction for updating:update.sh udagram-stack
Instruction for destroying:destroy.sh udagram-stack
infrastructure diagram- is included in zip

6 changes: 6 additions & 0 deletions create.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
aws cloudformation create-stack \
--stack-name $1 \
--template-body file://infrastructure.yml \
--parameters file://infrastructure-params.json \
--capabilities "CAPABILITY_IAM" "CAPABILITY_NAMED_IAM" \
--region=us-west-2
2 changes: 2 additions & 0 deletions destory.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
aws cloudformation delete-stack \
--stack-name $1
26 changes: 26 additions & 0 deletions infrastructure-params.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[
{
"ParameterKey": "EnvironmentName",
"ParameterValue": "UdacityProject"
},
{
"ParameterKey": "VpcCIDR",
"ParameterValue": "10.0.0.0/16"
},
{
"ParameterKey": "PublicSubnet1CIDR",
"ParameterValue": "10.0.0.0/24"
},
{
"ParameterKey": "PublicSubnet2CIDR",
"ParameterValue": "10.0.1.0/24"
},
{
"ParameterKey": "PrivateSubnet1CIDR",
"ParameterValue": "10.0.2.0/24"
},
{
"ParameterKey": "PrivateSubnet2CIDR",
"ParameterValue": "10.0.3.0/24"
}
]
Loading

0 comments on commit 8f5ed67

Please sign in to comment.