File tree Expand file tree Collapse file tree
tests/golden/templates/language_extensions/foreach_static_zip Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11AWSTemplateFormatVersion : ' 2010-09-09'
22Resources :
3- AlphaFunction :
4- Properties :
5- Code : <<BUILT_ARTIFACT>>
6- Handler : app.handler
7- Role :
8- Fn::GetAtt :
9- - AlphaFunctionRole
10- - Arn
11- Runtime : python3.11
12- Tags :
13- - Key : lambda:createdBy
14- Value : SAM
15- Type : AWS::Lambda::Function
16- AlphaFunctionRole :
17- Properties :
18- AssumeRolePolicyDocument :
19- Statement :
20- - Action :
21- - sts:AssumeRole
22- Effect : Allow
23- Principal :
24- Service :
25- - lambda.amazonaws.com
26- Version : ' 2012-10-17'
27- ManagedPolicyArns :
28- - arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole
29- Tags :
30- - Key : lambda:createdBy
31- Value : SAM
32- Type : AWS::IAM::Role
33- BetaFunction :
34- Properties :
35- Code : <<BUILT_ARTIFACT>>
36- Handler : app.handler
37- Role :
38- Fn::GetAtt :
39- - BetaFunctionRole
40- - Arn
41- Runtime : python3.11
42- Tags :
43- - Key : lambda:createdBy
44- Value : SAM
45- Type : AWS::Lambda::Function
46- BetaFunctionRole :
47- Properties :
48- AssumeRolePolicyDocument :
49- Statement :
50- - Action :
51- - sts:AssumeRole
52- Effect : Allow
53- Principal :
54- Service :
55- - lambda.amazonaws.com
56- Version : ' 2012-10-17'
57- ManagedPolicyArns :
58- - arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole
59- Tags :
60- - Key : lambda:createdBy
61- Value : SAM
62- Type : AWS::IAM::Role
3+ Fn::ForEach::Workers :
4+ - WorkerName
5+ - - Alpha
6+ - Beta
7+ - ${WorkerName}Function :
8+ Properties :
9+ CodeUri : <<BUILT_ARTIFACT>>
10+ Handler : app.handler
11+ Runtime : python3.11
12+ Type : AWS::Serverless::Function
13+ Transform :
14+ - AWS::LanguageExtensions
15+ - AWS::Serverless-2016-10-31
Original file line number Diff line number Diff line change 11AWSTemplateFormatVersion : ' 2010-09-09'
22Resources :
3- AlphaFunction :
4- Properties :
5- Code :
6- S3Bucket : golden-bucket
7- S3Key : 5e959f785bd23fcb9c18696f2b6855d4c9fbe5130a1e06aff5c4aa4d0091383c
8- Handler : app.handler
9- Role :
10- Fn::GetAtt :
11- - AlphaFunctionRole
12- - Arn
13- Runtime : python3.11
14- Tags :
15- - Key : lambda:createdBy
16- Value : SAM
17- Type : AWS::Lambda::Function
18- AlphaFunctionRole :
19- Properties :
20- AssumeRolePolicyDocument :
21- Statement :
22- - Action :
23- - sts:AssumeRole
24- Effect : Allow
25- Principal :
26- Service :
27- - lambda.amazonaws.com
28- Version : ' 2012-10-17'
29- ManagedPolicyArns :
30- - arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole
31- Tags :
32- - Key : lambda:createdBy
33- Value : SAM
34- Type : AWS::IAM::Role
35- BetaFunction :
36- Properties :
37- Code :
38- S3Bucket : golden-bucket
39- S3Key : 0169c64c6d32a8001c8f727f32f9b538ba4e1479e47262b4258f969a345a3f51
40- Handler : app.handler
41- Role :
42- Fn::GetAtt :
43- - BetaFunctionRole
44- - Arn
45- Runtime : python3.11
46- Tags :
47- - Key : lambda:createdBy
48- Value : SAM
49- Type : AWS::Lambda::Function
50- BetaFunctionRole :
51- Properties :
52- AssumeRolePolicyDocument :
53- Statement :
54- - Action :
55- - sts:AssumeRole
56- Effect : Allow
57- Principal :
58- Service :
59- - lambda.amazonaws.com
60- Version : ' 2012-10-17'
61- ManagedPolicyArns :
62- - arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole
63- Tags :
64- - Key : lambda:createdBy
65- Value : SAM
66- Type : AWS::IAM::Role
3+ Fn::ForEach::Workers :
4+ - WorkerName
5+ - - Alpha
6+ - Beta
7+ - ${WorkerName}Function :
8+ Properties :
9+ CodeUri : s3://golden-bucket/a199f4d73e5f32885341a8e279ab4d1ece42eebb187c5cde13ecbb95bcf49481
10+ Handler : app.handler
11+ Runtime : python3.11
12+ Type : AWS::Serverless::Function
13+ Transform :
14+ - AWS::LanguageExtensions
15+ - AWS::Serverless-2016-10-31
You can’t perform that action at this time.
0 commit comments