fargate icon indicating copy to clipboard operation
fargate copied to clipboard

Task Definition Secret disappears after a fargate service update cli command

Open wmikega opened this issue 3 years ago • 0 comments

Hi,

We have come across a weird issue with fargate cli. We are working to store all of our environment variables using context service. To do this we need to add a task definition secret. This command will add said secret:

fargate service env set -c wme-gep-drupal -s wme-gep-drupal-dev --secret CONTEXT_KEYS=arn:aws:ssm:us-east-1:172852125925:parameter/wme-gep-context-service/dev

We however keep seeing this secret disappear. After many days of diagnosing we came across the issue. When someone runs a fargate service update command it will remove that task definition.

Here is command that was used:

fargate service update --service wme-gep-drupal-dev --cluster wme-gep-drupal --cpu 2048 --memory 4096

Please let us know if we can somehow get this patched as this could bring down our system if the variables are no longer present.

Best Regards, Mike

wmikega avatar Feb 01 '22 14:02 wmikega