Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Limit EFS volume creation to public subnets #2231

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

komatom
Copy link

@komatom komatom commented Feb 18, 2023

There is a problem with EFS volumes when you have a lot of subnets - they can't be created. Actually by now it can only work if you have a network with only 3 public subnets in the 3 AWS availability zones without any additional subnets.

fixes #2164 , helps #1739

This helps by identifying the public subnets, and creates mount targets only for them, it expects the following:

  1. you have 3 public subnets and N number of additional
  2. there is routing table associated with the 3 public subnets, and separate routing table left as default for any number of other private subnets
  3. private routing table is the main table

Since there is no proper way of setting the subnets used by the volumes, I am proposing this so at least it tries to create the EFS mounts properly when you have a lot of subnets.

@github-actions github-actions bot added the ecs label Feb 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

EFS Mounts are created for each subnet available in the VPC
1 participant