Skip to content

Instantly share code, notes, and snippets.

@cp-sumi-k
Last active April 12, 2022 12:42
Show Gist options
  • Save cp-sumi-k/fcd7f2198f5776ecd166f8b9d42886a3 to your computer and use it in GitHub Desktop.
Save cp-sumi-k/fcd7f2198f5776ecd166f8b9d42886a3 to your computer and use it in GitHub Desktop.
AWSTemplateFormatVersion: 2010-09-09
Description: An ECS, ECR, ALB and cloudfront stack
Resources:
ApplicationLBSecurityGroup:
Type: "AWS::EC2::SecurityGroup"
Properties:
GroupDescription: SG for the Fargate ALB traffic
GroupName: < SECURITY-GROUP-NAME >
SecurityGroupIngress:
- CidrIpv6: ::/0
FromPort: 80
ToPort: 80
IpProtocol: TCP
Description: "Inbound rule for http IPv6 traffic"
- CidrIp: 0.0.0.0/0
FromPort: 80
ToPort: 80
IpProtocol: TCP
Description: "Inbound rule for http IPv4 traffic"
- CidrIpv6: ::/0
FromPort: 443
ToPort: 443
IpProtocol: TCP
Description: "Inbound rule for https IPv6 traffic"
- CidrIp: 0.0.0.0/0
FromPort: 443
ToPort: 443
IpProtocol: TCP
Description: "Inbound rule for https IPv4 traffic"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment