forked from aws-cloudformation/cfn-lint
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctions_findinmap.yaml
More file actions
30 lines (30 loc) · 839 Bytes
/
functions_findinmap.yaml
File metadata and controls
30 lines (30 loc) · 839 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
---
AWSTemplateFormatVersion: "2010-09-09"
Description: >
Test Good Sub Strings
Mappings:
myMap:
us-east-1:
32: ami-1234567
64: ami-abcdefg
Resources:
myInstance1:
Type: AWS::EC2::Instance
Properties:
ImageId: !FindInMap [ !FindInMap [ myMap, !Ref 'AWS::Region', !Ref 'AWS::Region' ], !Ref 'AWS::Region', 32 ]
myInstance2:
Type: AWS::EC2::Instance
Properties:
ImageId:
Fn::FindInMap:
- !FindInMap [ myMap, !Ref 'AWS::Region', !Ref 'AWS::Region' ]
- !FindInMap [ myMap, !Ref 'AWS::Region', !Ref 'AWS::Region' ]
- !FindInMap [ myMap, !Ref 'AWS::Region', !Ref 'AWS::Region' ]
myInstance3:
Type: AWS::EC2::Instance
Properties:
ImageId:
Fn::FindInMap:
- !Ref myInstance1
- !Ref myInstance1
- !Ref myInstance1