Skip to content

Instantly share code, notes, and snippets.

@cp-sumi-k
Last active April 12, 2022 12:44
Show Gist options
  • Save cp-sumi-k/73a1b302a0fcc28aa0888d8f40730898 to your computer and use it in GitHub Desktop.
Save cp-sumi-k/73a1b302a0fcc28aa0888d8f40730898 to your computer and use it in GitHub Desktop.
AWSTemplateFormatVersion: 2010-09-09
Description: An ECS, ECR, ALB and cloudfront stack
Resources:
ApplicationLoadBalancer:
Type: "AWS::ElasticLoadBalancingV2::LoadBalancer"
Properties:
Name: < APPLICATION_LOAD-BALANCER_NAME >
Subnets: #can add multiple subnet ids
- <SUBNET-ID-1>
- <SUBNET-ID-2>
Type: application
SecurityGroups:
- !GetAtt ApplicationLBSecurityGroup.GroupId #security group id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment