Skip to content
This repository has been archived by the owner on Apr 15, 2024. It is now read-only.

Add the ability to specify a EFS volume to mount in CDK scripts #4

Open
thisisaaronland opened this issue Nov 22, 2021 · 1 comment
Labels
aws cdk help wanted Extra attention is needed

Comments

@thisisaaronland
Copy link
Collaborator

TBD: Does it need to be an EFS volume to play nicely with auto-scaling or can we also allow an EBS volume with a "buyer beware" sticker?

@thisisaaronland thisisaaronland added help wanted Extra attention is needed aws cdk labels Nov 22, 2021
@micahwalter
Copy link
Contributor

EFS is probably the best option here as it can attach to multiple EC2 instances at once. However, if you only ever plan to have a single EC2 instance with multiple tasks running on it, then EBS might work as well.

Here are the docs on EFS with the CDK - You will need to:

  1. Create the file system
  2. Set permissions
  3. Set security group settings so the EC2 instance can connect to EFS from within its VPC
  4. Mount the EFS to the EC2 instance(s)
  5. Tell your Dockerfile where to find it?

I'm a little fuzzy on the last step... but I think that's all you'll need to do.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
aws cdk help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants