aws / aws-rfdk

The Render Farm Deployment Kit on AWS is a library for use with the AWS Cloud Development Kit that helps you define your render farm cloud infrastructure as code.
https://docs.aws.amazon.com/rfdk/index.html
Apache License 2.0
105 stars 38 forks source link

ci: update region denylist for lambda layers #1171

Closed marofke closed 6 months ago

marofke commented 6 months ago

Problem

Lambda layers were failing to publish with:

UnrecognizedClientException: The security token included in the request is invalid

It turns out this error was caused by lambda layers trying to be added to new AWS regions, which are deactivated by default. See a list of new regions here: https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-regions.html

Solution

Updated the deny list of regions to attempt publishing lambda layers to, as new regions have been added since the last RFDK release. Added a log statement so it's clear which region has failed.

Testing


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license