aws / containers-roadmap

This is the public roadmap for AWS container services (ECS, ECR, Fargate, and EKS).
https://aws.amazon.com/about-aws/whats-new/containers/
Other
5.22k stars 321 forks source link

[ECS] [request]: Show ValueFrom environment variables in console #293

Open tobdub-snce opened 5 years ago

tobdub-snce commented 5 years ago

Tell us about your request Show ValueFrom environment variable names in the console under Cluster -> Task -> Container -> Details.

Which service(s) is this request for? ECS web console.

Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard? ValueFrom environment variables are missing from the console under Cluster -> Task -> Container -> Details. Only Value environment variables are shown here which is a bit confusing.

Are you currently working around this issue? I have to open the task definition and look there.

mquidi86 commented 5 years ago

I think the issue here is that "ValueFrom" env vars are actually Secrets (it's easy to spot that in Cloudformation, as you specify those in the Secrets section, whereas in Environment section you can't use ValueFrom, only Value)

Because they are secrets, and are Encrypted, it wouldn't make sense to show them cleartext in the console.

I do, however, would appreciate it if there was actually a way to use ValueFrom in proper Environment variables (not just secrets), then of course we should be able to see those values in the console, and it would also help in Cloudformation, as ValueFrom is so much better than either doing resolve-ssm (which needs a specific version of the variable, we can't use latest), or having a SSM parameter ( which needs to pass a parameter to Cloudformation which kinds of defeats the purpose of the parameter store for this case) .

tobdub-snce commented 5 years ago

I don't mean the content of the secret variable should be shown, just the name, as in the task definition.

FernandoMiguel commented 5 years ago

@mquidi86 parameter store can be clear text strings, encrypted strings, or arrays. I definitely used it to store environmental variables as toggles with ECS