Skip to content

Commit

Permalink
Merge pull request #167 from sakthishanmugam/patch-1
Browse files Browse the repository at this point in the history
Update template.yaml to support AWS graviton instruction set architecture
  • Loading branch information
stationeros committed Oct 17, 2023
2 parents 4dbb8d9 + 975fc67 commit 14adeb1
Showing 1 changed file with 43 additions and 1 deletion.
44 changes: 43 additions & 1 deletion template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,9 @@ Resources:
Layers:
- !Ref CommonLambdaLayer
Timeout: 900
Architectures:
- arm64 # Specify arm64 for Graviton architecture

VpcConfig:
!If [UseVPCAndSubnetsCondition, {
SecurityGroupIds: !Split [ "," , !GetAtt LambdaSecurityGroup.GroupId ] ,
Expand All @@ -211,6 +214,9 @@ Resources:
Layers:
- !Ref CommonLambdaLayer
Timeout: 900
Architectures:
- arm64 # Specify arm64 for Graviton architecture

VpcConfig:
!If [UseVPCAndSubnetsCondition, {
SecurityGroupIds: !Split [ "," , !GetAtt LambdaSecurityGroup.GroupId ] ,
Expand All @@ -230,6 +236,9 @@ Resources:
Layers:
- !Ref CommonLambdaLayer
Timeout: 900
Architectures:
- arm64 # Specify arm64 for Graviton architecture

VpcConfig:
!If [UseVPCAndSubnetsCondition, {
SecurityGroupIds: !Split [ "," , !GetAtt LambdaSecurityGroup.GroupId ] ,
Expand All @@ -249,6 +258,9 @@ Resources:
Layers:
- !Ref CommonLambdaLayer
Timeout: 900
Architectures:
- arm64 # Specify arm64 for Graviton architecture

VpcConfig:
!If [UseVPCAndSubnetsCondition, {
SecurityGroupIds: !Split [ "," , !GetAtt LambdaSecurityGroup.GroupId ] ,
Expand All @@ -268,6 +280,9 @@ Resources:
Layers:
- !Ref CommonLambdaLayer
Timeout: 900
Architectures:
- arm64 # Specify arm64 for Graviton architecture

VpcConfig:
!If [UseVPCAndSubnetsCondition, {
SecurityGroupIds: !Split [ "," , !GetAtt LambdaSecurityGroup.GroupId ] ,
Expand All @@ -287,6 +302,9 @@ Resources:
Layers:
- !Ref CommonLambdaLayer
Timeout: 900
Architectures:
- arm64 # Specify arm64 for Graviton architecture

VpcConfig:
!If [UseVPCAndSubnetsCondition, {
SecurityGroupIds: !Split [ "," , !GetAtt LambdaSecurityGroup.GroupId ] ,
Expand All @@ -312,6 +330,9 @@ Resources:
Layers:
- !Ref CommonLambdaLayer
Timeout: 900
Architectures:
- arm64 # Specify arm64 for Graviton architecture

VpcConfig:
!If [UseVPCAndSubnetsCondition, {
SecurityGroupIds: !Split [ "," , !GetAtt LambdaSecurityGroup.GroupId ] ,
Expand All @@ -335,6 +356,9 @@ Resources:
Layers:
- !Ref CommonLambdaLayer
Timeout: 900
Architectures:
- arm64 # Specify arm64 for Graviton architecture

VpcConfig:
!If [UseVPCAndSubnetsCondition, {
SecurityGroupIds: !Split [ "," , !GetAtt LambdaSecurityGroup.GroupId ] ,
Expand All @@ -354,6 +378,9 @@ Resources:
Layers:
- !Ref CommonLambdaLayer
Timeout: 900
Architectures:
- arm64 # Specify arm64 for Graviton architecture

VpcConfig:
!If [UseVPCAndSubnetsCondition, {
SecurityGroupIds: !Split [ "," , !GetAtt LambdaSecurityGroup.GroupId ] ,
Expand All @@ -373,6 +400,9 @@ Resources:
Layers:
- !Ref CommonLambdaLayer
Timeout: 900
Architectures:
- arm64 # Specify arm64 for Graviton architecture

VpcConfig:
!If [UseVPCAndSubnetsCondition, {
SecurityGroupIds: !Split [ "," , !GetAtt LambdaSecurityGroup.GroupId ] ,
Expand All @@ -392,6 +422,9 @@ Resources:
Layers:
- !Ref CommonLambdaLayer
Timeout: 900
Architectures:
- arm64 # Specify arm64 for Graviton architecture

VpcConfig:
!If [UseVPCAndSubnetsCondition, {
SecurityGroupIds: !Split [ "," , !GetAtt LambdaSecurityGroup.GroupId ] ,
Expand All @@ -411,6 +444,9 @@ Resources:
Layers:
- !Ref CommonLambdaLayer
Timeout: 900
Architectures:
- arm64 # Specify arm64 for Graviton architecture

VpcConfig:
!If [UseVPCAndSubnetsCondition, {
SecurityGroupIds: !Split [ "," , !GetAtt LambdaSecurityGroup.GroupId ] ,
Expand Down Expand Up @@ -470,6 +506,9 @@ Resources:
Layers:
- !Ref CommonLambdaLayer
Timeout: 900
Architectures:
- arm64 # Specify arm64 for Graviton architecture

Environment:
Variables:
SNAPSHOT_EXPORT_TASK_ROLE: !GetAtt LambdaExecutionRole.Arn
Expand All @@ -491,6 +530,9 @@ Resources:
Layers:
- !Ref CommonLambdaLayer
Timeout: 900
Architectures:
- arm64 # Specify arm64 for Graviton architecture

Environment:
Variables:
SNAPSHOT_EXPORT_TASK_ROLE: !GetAtt LambdaExecutionRole.Arn
Expand Down Expand Up @@ -1224,4 +1266,4 @@ Resources:
"identifier": "identifier-Y",
"task": "create_snapshot",
"isCluster": true
}'
}'

0 comments on commit 14adeb1

Please sign in to comment.