Integrate Amazon ECS and Amazon EFS

Amazon Elastic Container Service (ECS) → Amazon Elastic File System (EFS)

Terraform IaC template to provision Amazon Elastic Container Service (ECS) resources to integrate with Amazon Elastic File System (EFS).

This pattern will provision Amazon Elastic Container Service (ECS) resources including cluster and task definition along with Amazon Elastic File System (EFS) for a persistent file storage.
This pattern will also create a container with a example bash script to access the EFS file system during runtime which will be stored in Amazon Elastic Container Repository (ECR).

< Back to all patterns

GitHub icon Download this pattern (.zip)

GitHub icon View this pattern on GitHub


Clone repo

git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/terraform-ecs-efs-integration

Deploy

terraform initterraform planterraform apply


Testing

See the README in the GitHub repo for detailed testing instructions.

Cleanup

terraform destroy
terraform show

Created by:

Nitin Jain

Sr Solution Architect, AWS

Follow on LinkedIn

Ruchi Kapur

Ruchi Kapur

Solution Architect, AWS

Follow on LinkedIn