feat: add support of Cloudformation mapping and Fn::FindInMap function (#101)

This commit is contained in:
Ilya Bryzgalov authored and GitHub committed 2026-04-01 01:24:47 -05:00
1 parent 48bee44634
commit eef66983d9
3 files changed
+46 -3

No files matched your search

@@ -28,11 +28,24 @@ class CloudFormationIntegrationTest {
void createStack_withS3AndSqs() {
String template = """
{
"Mappings": {
"Env": {
"us-east-1": {
"Name": "test"
}
}
},
"Resources": {
"MyBucket": {
"Type": "AWS::S3::Bucket",
"Properties": {
"BucketName": "cf-test-bucket"
"BucketName": {
"Fn::Sub": ["cf-${env}-bucket", {
"env": {
"Fn::FindInMap": ["Env", { "Ref" : "AWS::Region" }, "Name"]
}
}]
}
}
},
"MyQueue": {