fix clouformation ec2 tests for ap-northeast-1 and validate against AWS#10563
fix clouformation ec2 tests for ap-northeast-1 and validate against AWS#10563sannya-singal merged 2 commits intomasterfrom
ap-northeast-1 and validate against AWS#10563Conversation
test_vpc_creates_default_sg and validate against AWSap-northeast-1 and validate against AWS
|
we need to update the region values in: |
There was a problem hiding this comment.
LGTM as not to block pipeline.
However after adding missing subnet to moto, we should revert these changes
"ap-northeast-1": [
Zone(
region_name="ap-northeast-1",
name="ap-northeast-1a",
zone_id="apne1-az4",
),
Zone(
region_name="ap-northeast-1",
name="ap-northeast-1c",
zone_id="apne1-az1",
),
Zone(
region_name="ap-northeast-1",
name="ap-northeast-1d",
zone_id="apne1-az2",
),
],
in moto/ec2/models/availability_zones_and_regions.py:143
it's a bit weird that we have 1a, 1c and 1d, but not 1b on the list
|
when we check the availability zones for |
|
another fix for this could be selecting 1c instead here, what do you think @Morijarti |
|
It would fix it in this case, but I think then that the real issue is in how |
|
I'm with @Morijarti probably it would be best if you just extend the functionality of Fn::GetAZs instead of limiting the test just to force |
Hey @pinzon! Thanks for the review. I and @Morijarti had a discussion today regarding the root cause of the issue, which is not clear. For now this has been marked approved to unblock #10546 and created a backlog item for this. |
Motivation
Test
test_vpc_creates_default_sgandtest_transit_gateway_attachmentfail when run in the workflow for region:ap-northeast-1and throws aStackDeployError.Changes
This PR validates test:
test_vpc_creates_default_sgagainst AWS and deploys both the tests specifically inus-east-1.