Terraform
Provision the S3 bucket, file system, mount targets, IAM roles, and security groups — plus the compute resource — in a single terraform apply using the terraform-aws-s3-files modules. These pages replace the manual CLI walkthroughs for EC2, ECS, and Lambda.
EC2 Launch an Amazon Linux 2023 instance, install amazon-efs-utils, and mount the file system at /mnt/s3files. Access via SSM Session Manager — no SSH key pair required.
ECS Fargate Register an ECS task definition with s3filesVolumeConfiguration and run it on an existing Fargate cluster. Verify the mount via CloudWatch Logs.
Lambda Deploy a VPC-attached Lambda function that mounts the file system via an access point. Invoke the function and verify the /mnt/s3files listing in the response.