Note: The containerPath is the path inside the container where you mount the volume. "containerPath": "/mount/path/inside/container", Use a container definitions section to create a mount point for the volume inside your container. Note: Replace fs-12345678 with your file system ID.ĥ. Create or update a task definition to configure a volume for the Amazon ECS task that has your Amazon EFS file system. Note the file system ID of your file system (for example, fs-12345678).Ĥ. Select all the Availability Zones where the VPC subnets for the Fargate service are located.ģ. Note: By default, a mount target is configured in each Availability Zone in a given AWS Region. Create an Amazon EFS file system, and then attach the security group from step 1 to your mount targets. Then, add an inbound rule to accept NFS traffic on port 2049 from the source's task security group.Ģ. Create a security group for your Amazon EFS mount targets. Configuring storage with Amazon EFS volumesġ. Note: If you receive errors when running AWS Command Line Interface (AWS CLI) commands, make sure that you’re using the most recent AWS CLI version.įor more examples of configuring ephemeral storage, see Bind mount examples. Important: When you create an Amazon EFS volume, use the same Amazon Virtual Private Cloud (Amazon VPC) and subnets that are assigned to your Fargate service. Amazon EFS volumes provide persistent storage.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |