File tree Expand file tree Collapse file tree 3 files changed +22
-12
lines changed
Expand file tree Collapse file tree 3 files changed +22
-12
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ include ../aws.env
33.PHONY : check-region stack clean
44
55check-region :
6- test -n " $( AWS_REGION) " || (echo " AWS_REGION must be defined in ../aws.env" ; exit 1)
6+ @ test -n " $( AWS_REGION) " || (echo " AWS_REGION must be defined in ../aws.env" ; exit 1)
77
88stack : check-region
99 aws --region $(AWS_REGION ) cloudformation create-stack --stack-name scorekeep --capabilities " CAPABILITY_NAMED_IAM" --template-body file://cf-resources.yaml
@@ -14,5 +14,10 @@ update: check-region
1414check : check-region
1515 aws --region $(AWS_REGION ) cloudformation describe-stack-events --stack-name scorekeep --max-items 4
1616
17+ outputs : check-region
18+ @aws --region $(AWS_REGION ) cloudformation describe-stacks --stack-name scorekeep --query ' Stacks[0].Outputs[?OutputKey==`PubPrivateVPCID`].OutputValue' --output text
19+ @aws --region $(AWS_REGION ) cloudformation describe-stacks --stack-name scorekeep --query ' Stacks[0].Outputs[?OutputKey==`PrivateSubnet1ID`].OutputValue' --output text
20+ @aws --region $(AWS_REGION ) cloudformation describe-stacks --stack-name scorekeep --query ' Stacks[0].Outputs[?OutputKey==`PrivateSubnet2ID`].OutputValue' --output text
21+
1722clean : check-region
1823 aws --region $(AWS_REGION ) cloudformation delete-stack --stack-name scorekeep
Original file line number Diff line number Diff line change @@ -292,3 +292,19 @@ Resources:
292292 Type : " application"
293293 IpAddressType : " ipv4"
294294 DependsOn : ScorekeepLbSecurityGroup
295+ Outputs :
296+ PubPrivateVPCID :
297+ Description : VPC ID
298+ Value : !Ref "PubPrivateVPC"
299+ Export :
300+ Name : ScorekeepVPCID
301+ PrivateSubnet1ID :
302+ Description : Private Subnet A ID
303+ Value : !Ref "PrivateSubnet1"
304+ Export :
305+ Name : ScorekeepPrivateSubnet1ID
306+ PrivateSubnet2ID :
307+ Description : Private Subnet B ID
308+ Value : !Ref "PrivateSubnet2"
309+ Export :
310+ Name : ScorekeepPrivateSubnet2ID
You can’t perform that action at this time.
0 commit comments