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
We should use the entire path as environment variable name because parameter uniqueness is guaranteed by its entire path not only the last part of the path.
The text was updated successfully, but these errors were encountered:
aereal
changed the title
implicitly discards parameters that have same base name in other path hierarchy
implicitly discards parameters that have same base name but in other path hierarchy
Aug 16, 2021
aereal
added a commit
to aereal/ssmwrap
that referenced
this issue
Aug 17, 2021
expected behavior
We have these parameters in SSM parameter store:
/my/external-service-1/sercret-key
/my/external-service-2/secret-key
and run
ssmwrap -paths /my
then get these environment variables:MY_EXTERNAL_SERVICE_1_SECRET_KEY
MY_EXTERNAL_SERVCIE_2_SECRET_KEY
actual behavior
We only get
SECRET_KEY
that from/my/external-service-2/secret-key
and have no way to get/my/external-service-1/secret-key
.This is caused by
formatParametersAsEnvVars
that uses only a last part of the path for environment variable name.ssmwrap/dest_env.go
Lines 36 to 46 in 207423a
solution
We should use the entire path as environment variable name because parameter uniqueness is guaranteed by its entire path not only the last part of the path.
The text was updated successfully, but these errors were encountered: