Skip to content

Commit 149ecc6

Browse files
authored
Merge pull request #867 from PRX/feat/counts-lambda-node-upgrade-prod
Upgrade dt counts lambda to node 24 in prod
2 parents c31cd14 + e1786a4 commit 149ecc6

File tree

2 files changed

+3
-15
lines changed

2 files changed

+3
-15
lines changed

spire/templates/apps-100A.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -188,11 +188,7 @@ Resources:
188188
RootStackName: !Ref RootStackName
189189
RootStackId: !Ref RootStackId
190190
CodeS3Bucket: !Ref DeploymentPackageBucketName
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
191+
CodeS3ObjectKey: !Sub /prx/${EnvironmentTypeAbbreviation}/Spire/Dovetail-Counts/node-24/pkg/s3-object-key
196192
VpcId: !Ref VpcId
197193
VpcPrivateSubnet1Id: !Ref VpcPrivateSubnet1Id
198194
VpcPrivateSubnet2Id: !Ref VpcPrivateSubnet2Id

spire/templates/apps/dovetail-counts.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,7 @@ Resources:
6767
CountsFunction:
6868
Type: AWS::Serverless::Function
6969
Properties:
70-
Architectures:
71-
- Fn::If:
72-
- IsProduction
73-
- x86_64
74-
- arm64
70+
Architectures: [arm64]
7571
CodeUri:
7672
Bucket: !Ref CodeS3Bucket
7773
Key: !Ref CodeS3ObjectKey
@@ -101,11 +97,7 @@ Resources:
10197
- !Sub arn:${AWS::Partition}:lambda:${AWS::Region}:580247275435:layer:LambdaInsightsExtension:38
10298
- !Ref AWS::NoValue
10399
MemorySize: 2000
104-
Runtime:
105-
Fn::If:
106-
- IsProduction
107-
- nodejs16.x
108-
- nodejs24.x
100+
Runtime: nodejs24.x
109101
Policies:
110102
- arn:aws:iam::aws:policy/AmazonS3ReadOnlyAccess
111103
- arn:aws:iam::aws:policy/service-role/AWSLambdaKinesisExecutionRole

0 commit comments

Comments
 (0)