Skip to content

Commit

Permalink
chore: upgrade lambda and codebuild default runtime from nodejs16.x t…
Browse files Browse the repository at this point in the history
…o nodejs18.x (#5429)

Resolves #5422 


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the Apache 2.0 License.
  • Loading branch information
iamhopaul123 authored Oct 31, 2023
1 parent 16da988 commit c30e076
Show file tree
Hide file tree
Showing 47 changed files with 101 additions and 100 deletions.
12 changes: 6 additions & 6 deletions internal/pkg/addon/package_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ Resources:
Timeout: 900
MemorySize: 512
Role: !GetAtt "TestRole.Arn"
Runtime: nodejs16.x
Runtime: nodejs18.x
`,
outTemplate: `
Resources:
Expand All @@ -96,7 +96,7 @@ Resources:
Timeout: 900
MemorySize: 512
Role: !GetAtt "TestRole.Arn"
Runtime: nodejs16.x
Runtime: nodejs18.x
`,
},
"AWS::Glue::Job, non-zipped file": {
Expand Down Expand Up @@ -225,7 +225,7 @@ Resources:
Timeout: 900
MemorySize: 512
Role: !GetAtt "TestRole.Arn"
Runtime: nodejs16.x
Runtime: nodejs18.x
`,
outTemplate: `
Resources:
Expand All @@ -247,7 +247,7 @@ Resources:
Timeout: 900
MemorySize: 512
Role: !GetAtt "TestRole.Arn"
Runtime: nodejs16.x
Runtime: nodejs18.x
`,
},
"Fn::Transform nested in a yaml mapping and sequence node": {
Expand Down Expand Up @@ -480,7 +480,7 @@ Resources:
Timeout: 900
MemorySize: 512
Role: !GetAtt "TestRole.Arn"
Runtime: nodejs16.x
Runtime: nodejs18.x
`
stack := &EnvironmentStack{
stack: stack{
Expand Down Expand Up @@ -511,7 +511,7 @@ Resources:
Timeout: 900
MemorySize: 512
Role: !GetAtt "TestRole.Arn"
Runtime: nodejs16.x
Runtime: nodejs18.x
`
require.NoError(t, err)
tmpl, err := stack.Template()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,7 @@ Resources:
Timeout: 900
MemorySize: 512
Role: !GetAtt 'CustomResourceRole.Arn'
Runtime: nodejs16.x
Runtime: nodejs18.x

CustomDomainFunction:
Condition: ManagedAliases
Expand All @@ -930,7 +930,7 @@ Resources:
Timeout: 600
MemorySize: 512
Role: !GetAtt 'CustomResourceRole.Arn'
Runtime: nodejs16.x
Runtime: nodejs18.x

DNSDelegationFunction:
Type: AWS::Lambda::Function
Expand All @@ -940,7 +940,7 @@ Resources:
Timeout: 600
MemorySize: 512
Role: !GetAtt 'CustomResourceRole.Arn'
Runtime: nodejs16.x
Runtime: nodejs18.x
DelegateDNSAction:
Metadata:
'aws:copilot:description': 'Delegate DNS for environment subdomain'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ Resources:
Timeout: 600
MemorySize: 512
Role: !GetAtt "UniqueJSONValuesFunctionRole.Arn"
Runtime: nodejs16.x
Runtime: nodejs18.x
UniqueAliasesAction:
Metadata:
"aws:copilot:description": "An action to get unique custom aliases for services in your environment"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1028,7 +1028,7 @@ Resources:
Timeout: 900
MemorySize: 512
Role: !GetAtt 'CustomResourceRole.Arn'
Runtime: nodejs16.x
Runtime: nodejs18.x

CustomDomainFunction:
Condition: ManagedAliases
Expand All @@ -1038,7 +1038,7 @@ Resources:
Timeout: 600
MemorySize: 512
Role: !GetAtt 'CustomResourceRole.Arn'
Runtime: nodejs16.x
Runtime: nodejs18.x

DNSDelegationFunction:
Type: AWS::Lambda::Function
Expand All @@ -1048,7 +1048,7 @@ Resources:
Timeout: 600
MemorySize: 512
Role: !GetAtt 'CustomResourceRole.Arn'
Runtime: nodejs16.x
Runtime: nodejs18.x
DelegateDNSAction:
Metadata:
'aws:copilot:description': 'Delegate DNS for environment subdomain'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,7 @@ Resources:
Timeout: 900
MemorySize: 512
Role: !GetAtt 'CustomResourceRole.Arn'
Runtime: nodejs16.x
Runtime: nodejs18.x

CustomDomainFunction:
Condition: ManagedAliases
Expand All @@ -935,7 +935,7 @@ Resources:
Timeout: 600
MemorySize: 512
Role: !GetAtt 'CustomResourceRole.Arn'
Runtime: nodejs16.x
Runtime: nodejs18.x

DNSDelegationFunction:
Type: AWS::Lambda::Function
Expand All @@ -945,7 +945,7 @@ Resources:
Timeout: 600
MemorySize: 512
Role: !GetAtt 'CustomResourceRole.Arn'
Runtime: nodejs16.x
Runtime: nodejs18.x

DelegateDNSAction:
Metadata:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ Resources:
Timeout: 900
MemorySize: 512
Role: !GetAtt 'CustomResourceRole.Arn'
Runtime: nodejs16.x
Runtime: nodejs18.x

CustomDomainFunction:
Condition: ManagedAliases
Expand All @@ -764,7 +764,7 @@ Resources:
Timeout: 600
MemorySize: 512
Role: !GetAtt 'CustomResourceRole.Arn'
Runtime: nodejs16.x
Runtime: nodejs18.x

DNSDelegationFunction:
Type: AWS::Lambda::Function
Expand All @@ -774,7 +774,7 @@ Resources:
Timeout: 600
MemorySize: 512
Role: !GetAtt 'CustomResourceRole.Arn'
Runtime: nodejs16.x
Runtime: nodejs18.x

DelegateDNSAction:
Metadata:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ Resources:
Type: LINUX_CONTAINER
ComputeType: BUILD_GENERAL1_SMALL
PrivilegedMode: true
Image: aws/codebuild/amazonlinux2-x86_64-standard:4.0
Image: aws/codebuild/amazonlinux2-x86_64-standard:5.0
EnvironmentVariables:
- Name: AWS_ACCOUNT_ID
Value: !Sub '${AWS::AccountId}'
Expand Down Expand Up @@ -237,7 +237,7 @@ Resources:
Type: NO_ARTIFACTS
Environment:
Type: LINUX_CONTAINER
Image: aws/codebuild/amazonlinux2-x86_64-standard:4.0
Image: aws/codebuild/amazonlinux2-x86_64-standard:5.0
ComputeType: BUILD_GENERAL1_SMALL
PrivilegedMode: true
Source:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ Resources:
Type: LINUX_CONTAINER
ComputeType: BUILD_GENERAL1_SMALL
PrivilegedMode: true
Image: aws/codebuild/amazonlinux2-x86_64-standard:4.0
Image: aws/codebuild/amazonlinux2-x86_64-standard:5.0
EnvironmentVariables:
- Name: AWS_ACCOUNT_ID
Value: !Sub '${AWS::AccountId}'
Expand Down Expand Up @@ -211,7 +211,7 @@ Resources:
Type: NO_ARTIFACTS
Environment:
Type: LINUX_CONTAINER
Image: aws/codebuild/amazonlinux2-x86_64-standard:4.0
Image: aws/codebuild/amazonlinux2-x86_64-standard:5.0
ComputeType: BUILD_GENERAL1_SMALL
PrivilegedMode: true
Source:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ Resources:
Type: NO_ARTIFACTS
Environment:
Type: LINUX_CONTAINER
Image: aws/codebuild/amazonlinux2-x86_64-standard:4.0
Image: aws/codebuild/amazonlinux2-x86_64-standard:5.0
ComputeType: BUILD_GENERAL1_SMALL
PrivilegedMode: true
Source:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ Resources:
Type: LINUX_CONTAINER
ComputeType: BUILD_GENERAL1_SMALL
PrivilegedMode: true
Image: aws/codebuild/amazonlinux2-x86_64-standard:4.0
Image: aws/codebuild/amazonlinux2-x86_64-standard:5.0
EnvironmentVariables:
- Name: AWS_ACCOUNT_ID
Value: !Sub '${AWS::AccountId}'
Expand Down Expand Up @@ -234,7 +234,7 @@ Resources:
Type: LINUX_CONTAINER
ComputeType: BUILD_GENERAL1_SMALL
PrivilegedMode: true
Image: aws/codebuild/amazonlinux2-x86_64-standard:4.0
Image: aws/codebuild/amazonlinux2-x86_64-standard:5.0
EnvironmentVariables:
- Name: AWS_ACCOUNT_ID
Value: !Sub '${AWS::AccountId}'
Expand Down Expand Up @@ -349,7 +349,7 @@ Resources:
Type: LINUX_CONTAINER
ComputeType: BUILD_GENERAL1_SMALL
PrivilegedMode: true
Image: aws/codebuild/amazonlinux2-x86_64-standard:4.0
Image: aws/codebuild/amazonlinux2-x86_64-standard:5.0
EnvironmentVariables:
- Name: AWS_ACCOUNT_ID
Value: !Sub '${AWS::AccountId}'
Expand Down Expand Up @@ -467,7 +467,7 @@ Resources:
Type: LINUX_CONTAINER
ComputeType: BUILD_GENERAL1_SMALL
PrivilegedMode: true
Image: aws/codebuild/amazonlinux2-x86_64-standard:4.0
Image: aws/codebuild/amazonlinux2-x86_64-standard:5.0
EnvironmentVariables:
- Name: AWS_ACCOUNT_ID
Value: !Sub '${AWS::AccountId}'
Expand Down Expand Up @@ -585,7 +585,7 @@ Resources:
Type: LINUX_CONTAINER
ComputeType: BUILD_GENERAL1_SMALL
PrivilegedMode: true
Image: aws/codebuild/amazonlinux2-x86_64-standard:4.0
Image: aws/codebuild/amazonlinux2-x86_64-standard:5.0
EnvironmentVariables:
- Name: AWS_ACCOUNT_ID
Value: !Sub '${AWS::AccountId}'
Expand Down Expand Up @@ -703,7 +703,7 @@ Resources:
Type: LINUX_CONTAINER
ComputeType: BUILD_GENERAL1_SMALL
PrivilegedMode: true
Image: aws/codebuild/amazonlinux2-x86_64-standard:4.0
Image: aws/codebuild/amazonlinux2-x86_64-standard:5.0
EnvironmentVariables:
- Name: AWS_ACCOUNT_ID
Value: !Sub '${AWS::AccountId}'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ Resources:
Type: NO_ARTIFACTS
Environment:
Type: LINUX_CONTAINER
Image: aws/codebuild/amazonlinux2-x86_64-standard:4.0
Image: aws/codebuild/amazonlinux2-x86_64-standard:5.0
ComputeType: BUILD_GENERAL1_SMALL
PrivilegedMode: true
Source:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ Resources:
Timeout: 600
MemorySize: 512
Role: !GetAtt "DynamicDesiredCountFunctionRole.Arn"
Runtime: nodejs16.x
Runtime: nodejs18.x
DynamicDesiredCountFunctionRole:
Metadata:
"aws:copilot:description": "An IAM Role for describing number of running tasks in your ECS service"
Expand Down Expand Up @@ -464,7 +464,7 @@ Resources:
Timeout: 600
MemorySize: 512
Role: !GetAtt "RulePriorityFunctionRole.Arn"
Runtime: nodejs16.x
Runtime: nodejs18.x
RulePriorityFunctionRole:
Metadata:
"aws:copilot:description": "An IAM Role to describe load balancer rules for assigning a priority"
Expand Down Expand Up @@ -568,7 +568,7 @@ Resources:
Timeout: 900
MemorySize: 512
Role: !GetAtt "EnvControllerRole.Arn"
Runtime: nodejs16.x
Runtime: nodejs18.x
EnvControllerRole:
Metadata:
"aws:copilot:description": "An IAM role to update your environment stack"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ Resources:
Timeout: 600
MemorySize: 512
Role: !GetAtt "RulePriorityFunctionRole.Arn"
Runtime: nodejs16.x
Runtime: nodejs18.x
RulePriorityFunctionRole:
Metadata:
"aws:copilot:description": "An IAM Role to describe load balancer rules for assigning a priority"
Expand Down Expand Up @@ -559,7 +559,7 @@ Resources:
Timeout: 900
MemorySize: 512
Role: !GetAtt "EnvControllerRole.Arn"
Runtime: nodejs16.x
Runtime: nodejs18.x
EnvControllerRole:
Metadata:
"aws:copilot:description": "An IAM role to update your environment stack"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ Resources:
Timeout: 600
MemorySize: 512
Role: !GetAtt "RulePriorityFunctionRole.Arn"
Runtime: nodejs16.x
Runtime: nodejs18.x
RulePriorityFunctionRole:
Metadata:
"aws:copilot:description": "An IAM Role to describe load balancer rules for assigning a priority"
Expand Down Expand Up @@ -449,7 +449,7 @@ Resources:
Timeout: 900
MemorySize: 512
Role: !GetAtt "EnvControllerRole.Arn"
Runtime: nodejs16.x
Runtime: nodejs18.x
EnvControllerRole:
Metadata:
"aws:copilot:description": "An IAM role to update your environment stack"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ Resources:
Timeout: 600
MemorySize: 512
Role: !GetAtt "RulePriorityFunctionRole.Arn"
Runtime: nodejs16.x
Runtime: nodejs18.x
RulePriorityFunctionRole:
Metadata:
'aws:copilot:description': "An IAM Role to describe load balancer rules for assigning a priority"
Expand Down Expand Up @@ -441,7 +441,7 @@ Resources:
Timeout: 900
MemorySize: 512
Role: !GetAtt 'EnvControllerRole.Arn'
Runtime: nodejs16.x
Runtime: nodejs18.x
EnvControllerRole:
Metadata:
'aws:copilot:description': "An IAM role to update your environment stack"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ Resources:
Timeout: 900
MemorySize: 512
Role: !GetAtt "EnvControllerRole.Arn"
Runtime: nodejs16.x
Runtime: nodejs18.x
EnvControllerRole:
Metadata:
"aws:copilot:description": "An IAM role to update your environment stack"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ Resources:
Timeout: 900
MemorySize: 512
Role: !GetAtt "EnvControllerRole.Arn"
Runtime: nodejs16.x
Runtime: nodejs18.x
EnvControllerRole:
Metadata:
"aws:copilot:description": "An IAM role to update your environment stack"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Resources:
Timeout: 900
MemorySize: 512
Role: !GetAtt 'EnvControllerRole.Arn'
Runtime: nodejs16.x
Runtime: nodejs18.x

EnvControllerRole:
Metadata:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ Resources:
Timeout: 900
MemorySize: 512
Role: !GetAtt 'EnvControllerRole.Arn'
Runtime: nodejs16.x
Runtime: nodejs18.x

EnvControllerRole:
Metadata:
Expand Down
Loading

0 comments on commit c30e076

Please sign in to comment.