fix function get azs cloudformation template #10595
Conversation
Morijarti
left a comment
There was a problem hiding this comment.
I'm ok with hard-coding us-east-1 if it's crashing pipeline, but we should see about resolving issue in how we are fetching azs in non default regions.
I guess that would be change in ec2 provider.
Thanks for the review @Morijarti! So we are getting the correct azs for non-default regions but the issue is with snapshot being generated for |
@sannya-singal should we than perhaps make test parametrizable so we are doing snapshot testing in multi-region or maybe improve transformers so it changes all mentions of region to region:1 I'm more for updating snapshots, rather than limiting tests deployments to certain us-east-1 |
Yes so we already have a TODO for that as mentioned in the PR description but currently we get an empty list. |
Motivation
The cfn test to check the template engine
test_get_azs_functiongenerates a snapshot againstus-east-1AWS region. But when it is run against localstack for different AZs of non-default region values it results in error after the merge of #10586 which instead of just expanding values from a to f, now usesconnect_to().ec2.describe_availability_zones(...)to get AZs of a specified region.According to previous commits in this file, we can see that this is a known gap and there is already a TODO added:
When run against different non default regions in LS, the workflow throws an error here:
Changes
This PR deploys
functions_get_azs.ymlspecifically inus-east-1and regenerates the snapshots.