8000 cfn: fix failing `test_mapping_ref_map_key` for multi-account/region by sannya-singal · Pull Request #11699 · localstack/localstack · GitHub
[go: up one dir, main page]

Skip to content

cfn: fix failing test_mapping_ref_map_key for multi-account/region #11699

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

Merged
merged 2 commits into from
Oct 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion tests/aws/templates/mappings/mapping-ref-map-key.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,28 @@ Mappings:
us-east-1:
A: "true"
B: "false"
us-east-2:
A: "true"
B: "false"
us-west-1:
A: "true"
B: "false"
us-west-2:
A: "true"
B: "false"
ap-southeast-2:
A: "true"
B: "false"
ap-northeast-1:
A: "true"
B: "false"
eu-central-1:
A: "true"
B: "false"
eu-west-1:
A: "true"
B: "false"

Conditions:
MyCondition: !Equals
- !FindInMap [ !Ref MapName, !Ref AWS::Region, !Ref MapKey]
Expand Down Expand Up @@ -32,4 +54,3 @@ Outputs:
TopicArn:
Value: !Ref MyTopic
Condition: MyCondition

Loading
0