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
feat(aws-codepipeline-actions): Added region as prop of LambdaInvokeAction #18229
Conversation
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.
This is a good attempt, but the region should be taken from the Function
passed in the lambda
property, not separately 🙂.
That sounds ideal however it would cause an error on any pipeline stack that does not have Error: Resolution error: Resolution error: Resolution error: Pipeline stack which uses cross-environment actions must have an explicitly set region. In this case we're allowing the user to configure the |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Yep, that's expected behavior, like the error message says. If you provide a Lambda function from a specific region, you must also tell us what region the pipeline is in, because if the two are different, this means this is a cross-region CodePipeline, and we must do some additional stuff to make it work. The construct handles all of that in its implementation, but we need to have a specific region to make sure the pipeline is indeed cross-region. We already take the region from the Lambda function here, so I'm curious what is causing the incorrect behavior in the original issue. |
Summary
This PR adds the missing prop
region
to theLambdaInvokeAction
.Fixes: #18228
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license