Skip to content

Conversation

@leandrodamascena
Copy link
Contributor

Issue number: #6859

Summary

Changes

Fix script that update layer version number.

User experience

Please share what the user experience looks like before and after this change

Checklist

If your change doesn't seem to apply, please leave them unchecked.

Is this a breaking change?

RFC issue number:

Checklist:

  • Migration process documented
  • Implement warnings (if it can live side by side)

Acknowledgment

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.

@leandrodamascena leandrodamascena self-assigned this Jun 25, 2025
@leandrodamascena leandrodamascena requested a review from a team as a code owner June 25, 2025 14:22
@boring-cyborg boring-cyborg bot added the documentation Improvements or additions to documentation label Jun 25, 2025
@pull-request-size pull-request-size bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jun 25, 2025
@leandrodamascena leandrodamascena linked an issue Jun 25, 2025 that may be closed by this pull request
@github-actions github-actions bot added internal Maintenance changes and removed documentation Improvements or additions to documentation labels Jun 25, 2025
@boring-cyborg boring-cyborg bot added the documentation Improvements or additions to documentation label Jun 25, 2025
@leandrodamascena leandrodamascena merged commit 9975c14 into develop Jun 25, 2025
5 checks passed
@leandrodamascena leandrodamascena deleted the docs/fix-gh-action-layer-number branch June 25, 2025 14:57
@github-actions github-actions bot removed the documentation Improvements or additions to documentation label Jun 25, 2025
@sonarqubecloud
Copy link

amin-farjadi pushed a commit to amin-farjadi/powertools-lambda-python that referenced this pull request Jun 26, 2025
oyiz-michael added a commit to oyiz-michael/powertools-lambda-python that referenced this pull request Nov 28, 2025
Fixes aws-powertools#7650

This extends the fix from aws-powertools#6868 to handle all AWS partitions, not just
commercial AWS. The previous fix only updated layer ARNs with specific
python versions (e.g., python312) but missed the template placeholders
with {python_version} for China and GovCloud partitions.

Changes:
- Updated hardcoded layer versions from :18 to :27 in docs/index.md
- Extended update_layer_arn_v3.sh to handle AWS China (arn:aws-cn)
  and GovCloud (arn:aws-us-gov) layer ARNs
- Added sed patterns for both specific versions and {python_version}
  placeholders across all AWS partitions

The automation now correctly updates layer versions for:
- Commercial AWS: arn:aws:lambda:{region}:017000801446:layer:...
- AWS China: arn:aws-cn:lambda:cn-north-1:498634801083:layer:...
- GovCloud East: arn:aws-us-gov:lambda:us-gov-east-1:165087284144:layer:...
- GovCloud West: arn:aws-us-gov:lambda:us-gov-west-1:165093116878:layer:...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal Maintenance changes size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Layer Version is Wrong in Docs

2 participants