Copyright (c) 2021, programmingwithalex
This repo serves as a reference for the Youtube playlist.
The repo covers pushing a boiler-plate Flask app to AWS ECS with the following topics covered:
AWS IAM (identity and access management)
AWS ECR (elastic container registry)
AWS ECS (elastic container service)
AWS Security Groups
AWS Route53
Docker
CI/CD with GitHub Actions
AWS SSL
AWS RDS (relational database storage)
AWS Secrets Manager
AWS EC2 Scheduled Stop/Start
AWS ECS Monitoring
docker-compose.yml
is only for testing the application on your local machine and not in used in the AWS deployment.
AWS Secrets Manager - restrict access by IAM role
{
"Version" : "2012-10-17",
"Statement" : [ {
"Effect" : "Deny",
"Principal" : {
"AWS" : "*"
},
"Action" : "secretsmanager:GetSecretValue",
"Resource" : "*",
"Condition" : {
"StringNotLike" : {
"aws:userid" : [ "AIDATC....", "AIDAT...." ]
}
}
} ]
}
Additional notes:
- Access
aws:userid
withaws-cli
andaws iam get-user --user-name {aws-iam-user-name}