Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ jobs:
node-version: 20

- name: Install LocalStack
run: pip install localstack awscli-local[ver1] virtualenv
run: |
pip install localstack awscli-local[ver1] virtualenv
pip install --upgrade boto3 botocore

- name: Setup config
run: |
Expand Down
12 changes: 11 additions & 1 deletion elb-load-balancing/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ resources:
Name: lb-test-1
Subnets:
- !Ref Subnet
- !Ref Subnet2
HTTPListener:
Type: AWS::ElasticLoadBalancingV2::Listener
Properties:
Expand All @@ -53,12 +54,21 @@ resources:
AvailabilityZone: !Select
- 0
- Fn::GetAZs: !Ref "AWS::Region"
# An ALB requires at least two subnets in two different Availability Zones.
Subnet2:
Type: AWS::EC2::Subnet
Properties:
VpcId: !Ref VPC
CidrBlock: 12.2.2.0/24
AvailabilityZone: !Select
- 1
- Fn::GetAZs: !Ref "AWS::Region"
VPC:
Type: AWS::EC2::VPC
Properties:
EnableDnsSupport: "true"
EnableDnsHostnames: "true"
CidrBlock: 12.2.1.0/24
CidrBlock: 12.2.0.0/16

plugins:
- serverless-deployment-bucket
Expand Down
Loading