Building on Day 13, add pro features.
Secrets Management
Use AWS Secrets Manager: Create secret, reference in task def:
"secrets": [
{ "name": "MY_SECRET", "valueFrom": "arn:aws:secretsmanager:region:account:secret:my-secret" }
]
Access in code: process.env.MY_SECRET
Volumes
For persistence, use EFS: Create file system, mount in task:
"volumes": [
{ "name": "efs-vol", "efsVolumeConfiguration": { "fileSystemId": "fs-id" } }
],
"mountPoints": [{ "sourceVolume": "efs-vol", "containerPath": "/data" }]
Fargate Spot
For cost savings: In service, use capacity provider strategy with Fargate Spot.
Pros: Up to 70% cheaper; Cons: Interruptible.
Today’s Takeaway
Advanced and optimized!
What’s Next?
In Day 15, we’ll wrap up with best practices.
Top comments (0)