-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
APIGW: fix Integration connectionId not being returned #13233
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
Conversation
Test Results - Preflight, Unit22 298 tests +6 20 555 ✅ +6 16m 27s ⏱️ +53s Results for commit a494e53. ± Comparison against base commit 928f470. This pull request removes 1 and adds 7 tests. Note that renamed tests count towards both.♻️ This comment has been updated with latest results. |
LocalStack Community integration with Pro 2 files ± 0 2 suites ±0 16m 22s ⏱️ - 1h 42m 41s Results for commit a494e53. ± Comparison against base commit 928f470. This pull request removes 3633 and adds 1 tests. Note that renamed tests count towards both.♻️ This comment has been updated with latest results. |
Test Results (amd64) - Integration, Bootstrap 5 files ± 0 5 suites ±0 35m 25s ⏱️ - 2h 3m 8s Results for commit a494e53. ± Comparison against base commit 928f470. This pull request removes 3983 and adds 1 tests. Note that renamed tests count towards both.♻️ This comment has been updated with latest results. |
cloutierMat
left a comment
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.
Thanks for jumping on this.
I just left one comment regarding update_integration. I think the update method itself will work and update the value, but we should probably also add it to the returned values. Once that is added we are good to go! 👍
|
|
||
| return response | ||
|
|
||
| def update_integration( |
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.
We should probably return the value in update integration as well as it might impact some Terraform code somewhere 😉
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.
Good catch, will update 👍
Motivation
This has been reported with #13218
We are forwarding calls to
PutIntegrationto moto, but it doesn't save theconnectionIdparameter when the integration is of typeVPC_LINK.The linked issue is a bigger one, as LocalStack does not support NLB yet, so we technically don't fully support APIGW Private Integration with VPC Links, as it requires a link to the NLB via
targetArns, but are not validating this as of now.See https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-api-with-vpclink-cli.html
Changes
connectionIdto the moto model to be able to retrieve inget_integration