File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -92,8 +92,12 @@ Resources:
9292 GroupDescription : Security Group for Spring server
9393 SecurityGroupIngress :
9494 - IpProtocol : tcp
95- FromPort : 8080
96- ToPort : 8080
95+ FromPort : 22
96+ ToPort : 22
97+ CidrIp : 0.0.0.0/0
98+ - IpProtocol : tcp
99+ FromPort : 80
100+ ToPort : 80
97101 CidrIp : 0.0.0.0/0
98102
99103 S3bucket :
@@ -119,6 +123,7 @@ Resources:
119123
120124 SpringCloudAwsEC2Instance :
121125 Type : AWS::EC2::Instance
126+ DependsOn : SpringCloudAwsRDS
122127 Metadata :
123128 Comment : Spring Using AWS services
124129 AWS::CloudFormation::Init :
@@ -202,7 +207,7 @@ Resources:
202207 /usr/local/bin/installSoftware.sh || { echo "Error installing software"; exit 1; }
203208
204209 # Run App
205- docker run -e PROG_OPTS='--spring.profiles.active=prod' -p 80:8080 codeurjc/spring-cloud-aws-sample:latest
210+ docker run -d - e PROG_OPTS='--spring.profiles.active=prod' -p 80:8080 codeurjc/spring-cloud-aws-sample:latest
206211
207212 /usr/local/bin/check_app_ready.sh || { echo "Error installing software"; exit 1; }
208213
You can’t perform that action at this time.
0 commit comments