aws-secrets-manager-actions
aws-secrets-manager-actions copied to clipboard
Possible to omit certain environment variables?
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
I understand. This feature looks useful!