1 回答
- 最新
- 投票最多
- 评论最多
0
I figured out the answer to this question. Keeping this thread alive just in case someone finds this helpful in the future.
- I launched an ECS-optimized AMI instance by attaching the EBS volume to it from the snapshot.
- Then I created a directory to mount the volume to.
- Then I edited /etc/fstab to automount the volume to the desired directory on boot.
- Then I shutdown the ecs process.
- Then I created a custom AMI from this instance.
- I use this custom AMI and specify this in the compute environment.
- Then in the job-definition, I set volume and mount point fields as follows:
volume -> name = storage_name, source path = /storage
mount_point -> container_path = /desired_path, source_path=storage_name (same as given in the volume field)
This makes it ready to have a larger volume ready with the job.
已回答 4 年前
相关内容
- AWS 官方已更新 7 个月前
- AWS 官方已更新 2 年前
- AWS 官方已更新 2 年前