mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
feat: add support of Cloudformation mapping and Fn::FindInMap function (#101)
This commit is contained in:
1 parent
48bee44634
commit
eef66983d9
3 files changed
+46
-3
No files matched your search
+14
-1
@@ -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": {
|
||||
|
||||
Reference in new issue
Block a user