In the Reference Architecture, why is there an ECS Deploy Runner in each account? Is this DRY? #5
-
A customer asked if having an
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Having one ECS Deploy Runner in each account is intendedThe ECS Deploy Runner (EDR or
EDR is concerned with locking down CI/CD operations for enhanced securityIn a traditional infrastructure CI/CD setup, you are bound to give unlimited admin privileges to the CI server so that it can deploy arbitrary infrastructure. However, this has many risks, the primary one being a user with write access can open a PR that does malicious things in the CI pipeline by editing the CI config. For example, a user could modify one of the steps in To protect against this, the DRYing up EDR configurationsBy nature, the In that regard, DRY-ing up the configurations that are currently nearly identical across accounts would reduce complexity by making it less likely to forget to update all the That said, the challenge is DRY-ing up the configuration in a satisfactory way that doesn’t inadvertently introduce some other bug. For what it's worth, we are really close to offering something better in the |
Beta Was this translation helpful? Give feedback.
Having one ECS Deploy Runner in each account is intended
The ECS Deploy Runner (EDR or
ecs-deploy-runner
) actually has two purposes:terragrunt run-all apply
on that particular account's infrastructure-live folder (e.g.,dev
) in order to provision the resources defined in the scaffolded code. So, it's the EDR that is actually responsible for deploying the generated code that defined a Ref Arch