Skip to content

Instantly share code, notes, and snippets.

@cp-sumi-k
Last active April 12, 2022 12:43
Show Gist options
  • Save cp-sumi-k/66436e8a799857251d31ca4c38435304 to your computer and use it in GitHub Desktop.
Save cp-sumi-k/66436e8a799857251d31ca4c38435304 to your computer and use it in GitHub Desktop.
AWSTemplateFormatVersion: 2010-09-09
Description: An ECS, ECR, ALB and cloudfront stack
Resources:
ApplicationLBToECSSecurityGroup:
Type: "AWS::EC2::SecurityGroup"
Properties:
GroupDescription: SG for traffic between ALB and ECS service container
GroupName: < SECURITY-GROUP-NAME >
SecurityGroupIngress:
- IpProtocol: -1
SourceSecurityGroupId: !GetAtt ApplicationLBSecurityGroup.GroupId
Description: "Inbound rule for all ECS service container traffic"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment