Repository navigation
fix(ci): add missing dollar signs in SSM parameter path variables - #7695
leandrodamascena merged 1 commit into
Conversation
Fixes aws-powertools#7689 When adding Python 3.14 support in commit a58cef7, the SSM parameter creation workflow was refactored to use environment variables instead of GitHub Actions expressions. However, 10 out of 12 lines were missing the dollar sign ($) prefix on the PACKAGE_VERSION variable. This caused version 3.23.0 SSM parameters to be created with the literal string 'PACKAGE_VERSION' in the path instead of the actual version number. For example, instead of: /aws/service/powertools/python/x86_64/python3.13/3.23.0 The workflow created: /aws/service/powertools/python/x86_64/python3.13/PACKAGE_VERSION This affected: - ARM64: Python 3.11, 3.12, 3.13, 3.14 (4 versions) - x86_64: Python 3.9, 3.10, 3.11, 3.12, 3.13, 3.14 (6 versions) Only ARM64 Python 3.9 and 3.10 worked correctly. Verified by checking AWS SSM - the incorrectly named parameters exist and the correctly named version parameters are missing.
|
|
Hey @Iamrodos thanks for sending this PR! I was taking a look on this. I merged this and run the parameter workflow again. |
|
@leandrodamascena thanks for the merge and running the update. FYI I found this because dependabot trigger because of the PyPi update. I use the SSM in my CloudFormation to specify the specific layer. However I have a lint check on my CF that verifies that the layer actually exists, due to the "potential 48 hour delay" in it being available. After waiting quite a while, I figured there was something wrong and started to investigate the missing parameter. Love PowerTools! |



Issue number: closes #7689
Summary
Changes
Fixed a typo in
.github/workflows/update_ssm.ymlwhere 10 out of 12 SSM parameter path variables were missing the$prefix onPACKAGE_VERSION.When adding Python 3.14 support in commit a58cef7, the workflow was refactored to use shell environment variables instead of GitHub Actions expressions. However, during this refactor, the
$symbol was accidentally omitted on most lines, causing the literal string "PACKAGE_VERSION" to be used in parameter paths instead of the actual semantic version (e.g., "3.23.0").Lines fixed:
User experience
Before:
Users looking for version-specific SSM parameters for Python 3.11-3.14 (ARM64) and all x86_64 versions cannot find them for release 3.23.0.
For example, querying
aws ssm get-parameter --name "/aws/service/powertools/python/x86_64/python3.13/3.23.0" --region us-east-1returnsParameterNotFoundInstead, incorrectly named parameters exist at
/aws/service/powertools/python/x86_64/python3.13/PACKAGE_VERSIONAfter:
Future releases will create correctly named SSM parameters that users can reference in their CloudFormation templates and infrastructure code.
Note:
This fix prevents the issue in future releases. The v3.23.0 parameters will need to be recreated separately by re-running the update_ssm workflow for that version.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.