File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed
Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -188,7 +188,11 @@ Resources:
188188 RootStackName : !Ref RootStackName
189189 RootStackId : !Ref RootStackId
190190 CodeS3Bucket : !Ref DeploymentPackageBucketName
191- CodeS3ObjectKey : !Sub /prx/${EnvironmentTypeAbbreviation}/Spire/Dovetail-Counts/pkg/s3-object-key
191+ CodeS3ObjectKey :
192+ Fn::If :
193+ - IsStaging
194+ - !Sub /prx/${EnvironmentTypeAbbreviation}/Spire/Dovetail-Counts/node-24/pkg/s3-object-key
195+ - !Sub /prx/${EnvironmentTypeAbbreviation}/Spire/Dovetail-Counts/pkg/s3-object-key
192196 VpcId : !Ref VpcId
193197 VpcPrivateSubnet1Id : !Ref VpcPrivateSubnet1Id
194198 VpcPrivateSubnet2Id : !Ref VpcPrivateSubnet2Id
Original file line number Diff line number Diff line change @@ -67,6 +67,11 @@ Resources:
6767 CountsFunction :
6868 Type : AWS::Serverless::Function
6969 Properties :
70+ Architectures :
71+ - Fn::If :
72+ - IsProduction
73+ - x86_64
74+ - arm64
7075 CodeUri :
7176 Bucket : !Ref CodeS3Bucket
7277 Key : !Ref CodeS3ObjectKey
@@ -96,7 +101,11 @@ Resources:
96101 - !Sub arn:${AWS::Partition}:lambda:${AWS::Region}:580247275435:layer:LambdaInsightsExtension:38
97102 - !Ref AWS::NoValue
98103 MemorySize : 2000
99- Runtime : nodejs16.x
104+ Runtime :
105+ Fn::If :
106+ - IsProduction
107+ - nodejs16.x
108+ - nodejs24.x
100109 Policies :
101110 - arn:aws:iam::aws:policy/AmazonS3ReadOnlyAccess
102111 - arn:aws:iam::aws:policy/service-role/AWSLambdaKinesisExecutionRole
You can’t perform that action at this time.
0 commit comments