Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: remove leading
/
from SSM parameter names in policy ARNs (#1146)
## Description Using SSM parameter hierarchies (as described in https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-paramstore-hierarchies.html) results in an error. See #1128 Several workarounds exist, but using `trimprefix` makes them superfluous. Having a `/` as first character results in the above mentioned error. ## Verification Checked the ARN of parameter `/test/test`. It showed up as `arn:aws:ssm:eu-central-1:123456789012:parameter/test/test` in the console. So no `//` at first place. --------- Co-authored-by: kirkchong <kirk_ang_from.tp@tech.gov.sg> Co-authored-by: Matthias Kay <matthias.kay@hlag.com> Co-authored-by: Matthias Kay <github@matthiaskay.de>
- Loading branch information