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:
92
92
GroupDescription : Security Group for Spring server
93
93
SecurityGroupIngress :
94
94
- 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
97
101
CidrIp : 0.0.0.0/0
98
102
99
103
S3bucket :
@@ -119,6 +123,7 @@ Resources:
119
123
120
124
SpringCloudAwsEC2Instance :
121
125
Type : AWS::EC2::Instance
126
+ DependsOn : SpringCloudAwsRDS
122
127
Metadata :
123
128
Comment : Spring Using AWS services
124
129
AWS::CloudFormation::Init :
@@ -202,7 +207,7 @@ Resources:
202
207
/usr/local/bin/installSoftware.sh || { echo "Error installing software"; exit 1; }
203
208
204
209
# 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
206
211
207
212
/usr/local/bin/check_app_ready.sh || { echo "Error installing software"; exit 1; }
208
213
You can’t perform that action at this time.
0 commit comments