Skip to content

Maintenance: Adding new AWS Regions to the Lambda Layers Deployment #1950

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

Closed
2 tasks done
leandrodamascena opened this issue Feb 23, 2023 · 8 comments · Fixed by #2122
Closed
2 tasks done

Maintenance: Adding new AWS Regions to the Lambda Layers Deployment #1950

leandrodamascena opened this issue Feb 23, 2023 · 8 comments · Fixed by #2122
Assignees
Labels
internal Maintenance changes

Comments

@leandrodamascena
Copy link
Contributor

leandrodamascena commented Feb 23, 2023

Summary

AWS recently launched new regions:

Asia Pacific (Melbourne)
ap-southeast-4
Asia Pacific (Hyderabad)
ap-south-2
Europe (Spain)
eu-south-2
Europe (Zurich)
eu-central-2
Middle East (UAE)
me-central-1

AWS Global Infrastructure Map

According to this AWS blog post, graviton2 (arm64) is not yet available in Spain and Zurich.

Why is this needed?

Deploy Lambda Layers to these new regions.

Which area does this relate to?

No response

Solution

No response

Acknowledgment

@leandrodamascena leandrodamascena added triage Pending triage from maintainers internal Maintenance changes and removed triage Pending triage from maintainers labels Feb 23, 2023
@leandrodamascena
Copy link
Contributor Author

@rubenfonseca do you think it is possible to prioritize this issue this week? I think this is very important for the new customers that are using Lambda in these new regions.

@leandrodamascena leandrodamascena changed the title Maintenance: Adding mew AWS Regions to the Lambda Layers Deployment Maintenance: Adding new AWS Regions to the Lambda Layers Deployment Apr 12, 2023
@rubenfonseca
Copy link
Contributor

I've been looking at this today. It would require big changes to support regions only with x86_64. So I'll start by adding support for the regions that support both architectures, and see if there's any workaround for the rest of the regions.

@rubenfonseca
Copy link
Contributor

Update: none of the new regions support ARM64 layers. Continuing to see if it's possible to support x86_64 only.

@leandrodamascena
Copy link
Contributor Author

Thank you for the update @rubenfonseca!

@rubenfonseca
Copy link
Contributor

Update: I've tried to change our CDK stacks in order to automatically detect and support regions that supported just one or both architectures. Unfortunately that proved impossible, since when running some of the code on the new regions, the CloudFormation stack doesn't even compile (you cannot even say compatibleArchitectures: ["x86_64"] in those instances, as it complains that you cannot even pass that flag).

So it becomes really hard to think about a scenario where we support regions with only x86_64. It's not impossible of course, but it would require a significant rewrite of our pipeline and CDK Layer stacks. I suggest we evaluate customer demand for those special regions and/or monitor as the new regions add support for arm64.

@leandrodamascena
Copy link
Contributor Author

leandrodamascena commented Apr 12, 2023

Hello @rubenfonseca! I agree with you that big changes in our pipeline can be very critical with an impact on new deployments.

I just wanted to know if we can anticipate customer demand and find a way to do it now. We have the update_layer_arn.sh script which is executable after the pipeline ends, do you think it's possible to add to that (or even create a new one) something like this:

curl $(aws lambda get-layer-version-by-arn --arn arn:aws:lambda:us-east-1:017000801446:layer:AWSLambdaPowertoolsPythonV2:VERSION --query Content.Location --output text) -o layer.zip

aws lambda publish-layer-version --layer-name AWSLambdaPowertoolsPythonV2 --description "PowertoolsLayer" --license-info "MIT" --zip-file fileb://layer.zip --compatible-runtimes python3.7 python3.8 python3.9 --region ap-southeast-4 (add other regions)
This isn't the best way to go about it I know, but we've managed to make the Powertools experience seamless for customers in any region. We also can create an issue to mention that it is a technical debt and monitor the arm64 architecture launch in the new regions.

Does it make sense to you? Is this suitable for now? It was just an idea I had, maybe this could even be a manual copy at this moment.

@github-actions
Copy link
Contributor

⚠️COMMENT VISIBILITY WARNING⚠️

This issue is now closed. Please be mindful that future comments are hard for our team to see.

If you need more assistance, please either tag a team member or open a new issue that references this one.

If you wish to keep having a conversation with other community members under this issue feel free to do so.

@github-actions github-actions bot added the pending-release Fix or implementation already in dev waiting to be released label Apr 14, 2023
@github-actions
Copy link
Contributor

This is now released under 2.14.0 version!

@github-actions github-actions bot removed the pending-release Fix or implementation already in dev waiting to be released label Apr 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Maintenance changes
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants