You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a ECS local user that's specifying sensitive data in my task definition,
I want ECS local to also inject these secrets as environment variables to my local containers,
So that I can validate my container's logic is correct.
Proposed Design
1. Add the ssm or secretsmanager ARN as Docker Labels to each service
While translating the container definition to a Compose file part of local create, we don't want to store the value of a secret as plain text. We'll first add the ARN as a docker label:
Summary
As a ECS local user that's specifying sensitive data in my task definition,
I want ECS local to also inject these secrets as environment variables to my local containers,
So that I can validate my container's logic is correct.
Proposed Design
1. Add the
ssm
orsecretsmanager
ARN as Docker Labels to each serviceWhile translating the container definition to a Compose file part of
local create
, we don't want to store the value of a secret as plain text. We'll first add the ARN as a docker label:2. Preprend
docker-compose up
with secret's valuePart of
local up
now the we can parse thelabels
and fetch the value of each secret, and then we can rundocker-compose up
as:Acceptance Criteria
ecs-cli local up --task-def <REMOTE>
with a task definition with multiple secretsdocker exec <CONTAINERID> env
must output the value of the secretThe text was updated successfully, but these errors were encountered: