![]() ![]() Note: You can use the entry point and command to test if your Amazon EFS file system is mounted successfully. For Command, enter the command to display the mounted file system. (Optional) In the ENVIRONMENT section, for Entry point, enter your entry point.ġ4. For Container path, choose your container path.ġ3. In the STORAGE AND LOGGING section, in the Mount points sub-section, select the volume that you created for Source volume in step 5.ġ2. In the Containers Definition section, choose Add container.ġ1. Or, you can accept the default, where "/" is the root directory.ġ0. Note: You can specify custom options for Root directory, Encryption in transit, and EFS IAM authorization. For File system ID, enter the ID for your Amazon EFS file system. For Name, enter a name for your volume.Ĩ. In the Volumes section, choose Add volume.Ħ. In the Configure task and container definitions section, for Task Definition Name, enter a name for your task definition.ĥ. In the Select launch type compatibility section, choose FARGATE, and choose Next Step.Ĥ. From the navigation pane, choose Task Definitions, and then choose Create new Task Definition.ģ. Update the security group of your Amazon ECS service to allow outbound connections on port 2049 to your Amazon EFS file system's security group. To allow inbound connections on port 2049 (Network File System, or NFS) from the security group associated with your Fargate task or service, edit the security group rules of your EFS file system.ģ. Note: Your Amazon EFS file system, Amazon ECS cluster, and Fargate tasks must all be in the same VPC.Ģ. Create an Amazon EFS file system, and then note the EFS ID and security group ID. Resolution Create and configure an Amazon EFS file systemġ. ![]() Amazon Virtual Private Cloud (Amazon VPC).Fargate platform versions 1.3.0 or earlier don't support persistent storage using Amazon EFS.īefore you complete the steps in the Resolution section, you must have the following: Important: The following resolution applies to the Fargate platform version 1.4.0 or later, which has persistent storage that you can define at the task and container level in Amazon ECS. Then, your Fargate tasks use Amazon EFS to automatically mount the file system to the tasks that you specify in your task definition. Then, make that task definition available to the containers in your task across all Availability Zones in your AWS Region. To mount an Amazon EFS file system on a Fargate task or container, you must first create a task definition.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |