Skip to content

Commit

Permalink
Fixed security group
Browse files Browse the repository at this point in the history
  • Loading branch information
cruizba committed Nov 22, 2019
1 parent 950c118 commit c1fae3d
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions CF_spring_cloud_aws_sample.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,12 @@ Resources:
GroupDescription: Security Group for Spring server
SecurityGroupIngress:
- IpProtocol: tcp
FromPort: 8080
ToPort: 8080
FromPort: 22
ToPort: 22
CidrIp: 0.0.0.0/0
- IpProtocol: tcp
FromPort: 80
ToPort: 80
CidrIp: 0.0.0.0/0

S3bucket:
Expand All @@ -119,6 +123,7 @@ Resources:

SpringCloudAwsEC2Instance:
Type: AWS::EC2::Instance
DependsOn: SpringCloudAwsRDS
Metadata:
Comment: Spring Using AWS services
AWS::CloudFormation::Init:
Expand Down Expand Up @@ -202,7 +207,7 @@ Resources:
/usr/local/bin/installSoftware.sh || { echo "Error installing software"; exit 1; }

# Run App
docker run -e PROG_OPTS='--spring.profiles.active=prod' -p 80:8080 codeurjc/spring-cloud-aws-sample:latest
docker run -d -e PROG_OPTS='--spring.profiles.active=prod' -p 80:8080 codeurjc/spring-cloud-aws-sample:latest

/usr/local/bin/check_app_ready.sh || { echo "Error installing software"; exit 1; }

Expand Down

0 comments on commit c1fae3d

Please sign in to comment.