Skip to content

Commit 7aad995

Browse files
authored
Merge pull request #862 from PRX/feat/counts-lambda-upgrade-stag
Change staging counts lambda to diferent build
2 parents e586276 + 25fd97b commit 7aad995

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

spire/templates/apps-100A.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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

spire/templates/apps/dovetail-counts.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)