aws-secrets-manager-actions icon indicating copy to clipboard operation
aws-secrets-manager-actions copied to clipboard

Possible to omit certain environment variables?

Open gtwilliams03 opened this issue 2 years ago • 1 comments

This is definitely a feature request, but I think it would be a great one. Some environment variables are needed for the app to run, some are just needed to log into the instance and create the docker container, for example.

Therefore, it would be wonderful to have an omit property, which is simply a comma-separated list of keys to omit from the environment output.

So if the collection of environment variables is:

[
    { key: 'ENV1', value: 'value 1' },
    { key: 'ENV2', value: 'value 2' },
    { key: 'ENV3', value: 'value 3' },
    { key: 'ENV4', value: 'value 4' },
]

Then you could supply an omit property of something like:

omit: ENV1,ENV3

Then the resulting environment variables would only be:

ENV2=value 2
ENV4=value 4

gtwilliams03 avatar Dec 01 '22 17:12 gtwilliams03

I understand. This feature looks useful!

say8425 avatar Dec 02 '22 04:12 say8425