-
-
Notifications
You must be signed in to change notification settings - Fork 331
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: remove leading /
from SSM parameter names in policy ARNs
#1146
Conversation
Hey @Kqirk! 👋 Thank you for your contribution to the project. Please refer to the contribution rules for a quick overview of the process. Make sure that this PR clearly explains:
With submitting this PR you confirm that you hold the rights of the code added and agree that it will published under this LICENSE. The following ChatOps commands are supported:
Simply add a comment with the command in the first line. If you need to pass more information, separate it with a blank line from the command. This message was generated automatically. You are welcome to improve it. |
ce09ee5
to
f9ea0dd
Compare
/
from SSM parameter names in policy ARNs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding this fix to the project and getting rid of all the workarounds.
🤖 I have created a release *beep* *boop* --- ## [7.9.0](7.8.0...7.9.0) (2024-07-22) ### Features * add support for configuring runner worker root device name ([#1140](#1140)) ([a1f8266](a1f8266)) ### Bug Fixes * increase timeout for EC2 termination lambda ([#1156](#1156)) ([2bf6d3d](2bf6d3d)) * remove leading `/` from SSM parameter names in policy ARNs ([#1146](#1146)) ([beea51d](beea51d)) * use existing Runner package for Amazon Linux 2023 as default ([#1155](#1155)) ([c001183](c001183)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --------- Co-authored-by: cattle-ops-releaser-2[bot] <134548870+cattle-ops-releaser-2[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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 asarn:aws:ssm:eu-central-1:123456789012:parameter/test/test
in the console. So no//
at first place.