diff --git a/internal/pkg/addon/package_test.go b/internal/pkg/addon/package_test.go index 67a01c17693..7325648c185 100644 --- a/internal/pkg/addon/package_test.go +++ b/internal/pkg/addon/package_test.go @@ -80,7 +80,7 @@ Resources: Timeout: 900 MemorySize: 512 Role: !GetAtt "TestRole.Arn" - Runtime: nodejs20.x + Runtime: nodejs22.x `, outTemplate: ` Resources: @@ -96,7 +96,7 @@ Resources: Timeout: 900 MemorySize: 512 Role: !GetAtt "TestRole.Arn" - Runtime: nodejs20.x + Runtime: nodejs22.x `, }, "AWS::Glue::Job, non-zipped file": { @@ -225,7 +225,7 @@ Resources: Timeout: 900 MemorySize: 512 Role: !GetAtt "TestRole.Arn" - Runtime: nodejs20.x + Runtime: nodejs22.x `, outTemplate: ` Resources: @@ -247,7 +247,7 @@ Resources: Timeout: 900 MemorySize: 512 Role: !GetAtt "TestRole.Arn" - Runtime: nodejs20.x + Runtime: nodejs22.x `, }, "Fn::Transform nested in a yaml mapping and sequence node": { @@ -480,7 +480,7 @@ Resources: Timeout: 900 MemorySize: 512 Role: !GetAtt "TestRole.Arn" - Runtime: nodejs20.x + Runtime: nodejs22.x ` stack := &EnvironmentStack{ stack: stack{ @@ -511,7 +511,7 @@ Resources: Timeout: 900 MemorySize: 512 Role: !GetAtt "TestRole.Arn" - Runtime: nodejs20.x + Runtime: nodejs22.x ` require.NoError(t, err) tmpl, err := stack.Template() diff --git a/internal/pkg/deploy/cloudformation/stack/testdata/environments/template-with-basic-manifest.yml b/internal/pkg/deploy/cloudformation/stack/testdata/environments/template-with-basic-manifest.yml index dc78bfd307c..0d68bef41bc 100644 --- a/internal/pkg/deploy/cloudformation/stack/testdata/environments/template-with-basic-manifest.yml +++ b/internal/pkg/deploy/cloudformation/stack/testdata/environments/template-with-basic-manifest.yml @@ -942,7 +942,7 @@ Resources: Timeout: 900 MemorySize: 512 Role: !GetAtt 'CustomResourceRole.Arn' - Runtime: nodejs20.x + Runtime: nodejs22.x CustomDomainFunction: Condition: ManagedAliases @@ -952,7 +952,7 @@ Resources: Timeout: 600 MemorySize: 512 Role: !GetAtt 'CustomResourceRole.Arn' - Runtime: nodejs20.x + Runtime: nodejs22.x DNSDelegationFunction: Type: AWS::Lambda::Function @@ -962,7 +962,7 @@ Resources: Timeout: 600 MemorySize: 512 Role: !GetAtt 'CustomResourceRole.Arn' - Runtime: nodejs20.x + Runtime: nodejs22.x DelegateDNSAction: Metadata: 'aws:copilot:description': 'Delegate DNS for environment subdomain' diff --git a/internal/pkg/deploy/cloudformation/stack/testdata/environments/template-with-cloudfront-observability.yml b/internal/pkg/deploy/cloudformation/stack/testdata/environments/template-with-cloudfront-observability.yml index e2932ba41a3..d98264f0bab 100644 --- a/internal/pkg/deploy/cloudformation/stack/testdata/environments/template-with-cloudfront-observability.yml +++ b/internal/pkg/deploy/cloudformation/stack/testdata/environments/template-with-cloudfront-observability.yml @@ -312,7 +312,7 @@ Resources: Timeout: 600 MemorySize: 512 Role: !GetAtt "UniqueJSONValuesFunctionRole.Arn" - Runtime: nodejs20.x + Runtime: nodejs22.x UniqueAliasesAction: Metadata: "aws:copilot:description": "An action to get unique custom aliases for services in your environment" diff --git a/internal/pkg/deploy/cloudformation/stack/testdata/environments/template-with-default-access-log-config.yml b/internal/pkg/deploy/cloudformation/stack/testdata/environments/template-with-default-access-log-config.yml index 5bf2c8f65e8..4a81add007c 100644 --- a/internal/pkg/deploy/cloudformation/stack/testdata/environments/template-with-default-access-log-config.yml +++ b/internal/pkg/deploy/cloudformation/stack/testdata/environments/template-with-default-access-log-config.yml @@ -788,7 +788,7 @@ Resources: Timeout: 900 MemorySize: 512 Role: !GetAtt 'ELBAccessLogsBucketCleanerRole.Arn' - Runtime: nodejs20.x + Runtime: nodejs22.x ELBAccessLogsBucketCleanerRole: Metadata: @@ -1098,7 +1098,7 @@ Resources: Timeout: 900 MemorySize: 512 Role: !GetAtt 'CustomResourceRole.Arn' - Runtime: nodejs20.x + Runtime: nodejs22.x CustomDomainFunction: Condition: ManagedAliases @@ -1108,7 +1108,7 @@ Resources: Timeout: 600 MemorySize: 512 Role: !GetAtt 'CustomResourceRole.Arn' - Runtime: nodejs20.x + Runtime: nodejs22.x DNSDelegationFunction: Type: AWS::Lambda::Function @@ -1118,7 +1118,7 @@ Resources: Timeout: 600 MemorySize: 512 Role: !GetAtt 'CustomResourceRole.Arn' - Runtime: nodejs20.x + Runtime: nodejs22.x DelegateDNSAction: Metadata: 'aws:copilot:description': 'Delegate DNS for environment subdomain' diff --git a/internal/pkg/deploy/cloudformation/stack/testdata/environments/template-with-defaultvpc-flowlogs.yml b/internal/pkg/deploy/cloudformation/stack/testdata/environments/template-with-defaultvpc-flowlogs.yml index 4e87fbe78a0..5075194330c 100644 --- a/internal/pkg/deploy/cloudformation/stack/testdata/environments/template-with-defaultvpc-flowlogs.yml +++ b/internal/pkg/deploy/cloudformation/stack/testdata/environments/template-with-defaultvpc-flowlogs.yml @@ -947,7 +947,7 @@ Resources: Timeout: 900 MemorySize: 512 Role: !GetAtt 'CustomResourceRole.Arn' - Runtime: nodejs20.x + Runtime: nodejs22.x CustomDomainFunction: Condition: ManagedAliases @@ -957,7 +957,7 @@ Resources: Timeout: 600 MemorySize: 512 Role: !GetAtt 'CustomResourceRole.Arn' - Runtime: nodejs20.x + Runtime: nodejs22.x DNSDelegationFunction: Type: AWS::Lambda::Function @@ -967,7 +967,7 @@ Resources: Timeout: 600 MemorySize: 512 Role: !GetAtt 'CustomResourceRole.Arn' - Runtime: nodejs20.x + Runtime: nodejs22.x DelegateDNSAction: Metadata: diff --git a/internal/pkg/deploy/cloudformation/stack/testdata/environments/template-with-importedvpc-flowlogs.yml b/internal/pkg/deploy/cloudformation/stack/testdata/environments/template-with-importedvpc-flowlogs.yml index 01ef9df8868..34fceb0de58 100644 --- a/internal/pkg/deploy/cloudformation/stack/testdata/environments/template-with-importedvpc-flowlogs.yml +++ b/internal/pkg/deploy/cloudformation/stack/testdata/environments/template-with-importedvpc-flowlogs.yml @@ -776,7 +776,7 @@ Resources: Timeout: 900 MemorySize: 512 Role: !GetAtt 'CustomResourceRole.Arn' - Runtime: nodejs20.x + Runtime: nodejs22.x CustomDomainFunction: Condition: ManagedAliases @@ -786,7 +786,7 @@ Resources: Timeout: 600 MemorySize: 512 Role: !GetAtt 'CustomResourceRole.Arn' - Runtime: nodejs20.x + Runtime: nodejs22.x DNSDelegationFunction: Type: AWS::Lambda::Function @@ -796,7 +796,7 @@ Resources: Timeout: 600 MemorySize: 512 Role: !GetAtt 'CustomResourceRole.Arn' - Runtime: nodejs20.x + Runtime: nodejs22.x DelegateDNSAction: Metadata: diff --git a/internal/pkg/deploy/cloudformation/stack/testdata/workloads/backend/http-autoscaling-template.yml b/internal/pkg/deploy/cloudformation/stack/testdata/workloads/backend/http-autoscaling-template.yml index ad6be24b384..803a0ebe197 100644 --- a/internal/pkg/deploy/cloudformation/stack/testdata/workloads/backend/http-autoscaling-template.yml +++ b/internal/pkg/deploy/cloudformation/stack/testdata/workloads/backend/http-autoscaling-template.yml @@ -292,7 +292,7 @@ Resources: Timeout: 600 MemorySize: 512 Role: !GetAtt "DynamicDesiredCountFunctionRole.Arn" - Runtime: nodejs20.x + Runtime: nodejs22.x DynamicDesiredCountFunctionRole: Metadata: "aws:copilot:description": "An IAM Role for describing number of running tasks in your ECS service" @@ -471,7 +471,7 @@ Resources: Timeout: 600 MemorySize: 512 Role: !GetAtt "RulePriorityFunctionRole.Arn" - Runtime: nodejs20.x + Runtime: nodejs22.x RulePriorityFunctionRole: Metadata: "aws:copilot:description": "An IAM Role to describe load balancer rules for assigning a priority" @@ -575,7 +575,7 @@ Resources: Timeout: 900 MemorySize: 512 Role: !GetAtt "EnvControllerRole.Arn" - Runtime: nodejs20.x + Runtime: nodejs22.x EnvControllerRole: Metadata: "aws:copilot:description": "An IAM role to update your environment stack" diff --git a/internal/pkg/deploy/cloudformation/stack/testdata/workloads/backend/http-full-config-template.yml b/internal/pkg/deploy/cloudformation/stack/testdata/workloads/backend/http-full-config-template.yml index 7cdc3183d70..04eac0141a2 100644 --- a/internal/pkg/deploy/cloudformation/stack/testdata/workloads/backend/http-full-config-template.yml +++ b/internal/pkg/deploy/cloudformation/stack/testdata/workloads/backend/http-full-config-template.yml @@ -436,7 +436,7 @@ Resources: Timeout: 600 MemorySize: 512 Role: !GetAtt "RulePriorityFunctionRole.Arn" - Runtime: nodejs20.x + Runtime: nodejs22.x RulePriorityFunctionRole: Metadata: "aws:copilot:description": "An IAM Role to describe load balancer rules for assigning a priority" @@ -568,7 +568,7 @@ Resources: Timeout: 900 MemorySize: 512 Role: !GetAtt "EnvControllerRole.Arn" - Runtime: nodejs20.x + Runtime: nodejs22.x EnvControllerRole: Metadata: "aws:copilot:description": "An IAM role to update your environment stack" diff --git a/internal/pkg/deploy/cloudformation/stack/testdata/workloads/backend/http-only-path-template.yml b/internal/pkg/deploy/cloudformation/stack/testdata/workloads/backend/http-only-path-template.yml index f00357168da..fad63aa6b8e 100644 --- a/internal/pkg/deploy/cloudformation/stack/testdata/workloads/backend/http-only-path-template.yml +++ b/internal/pkg/deploy/cloudformation/stack/testdata/workloads/backend/http-only-path-template.yml @@ -352,7 +352,7 @@ Resources: Timeout: 600 MemorySize: 512 Role: !GetAtt "RulePriorityFunctionRole.Arn" - Runtime: nodejs20.x + Runtime: nodejs22.x RulePriorityFunctionRole: Metadata: "aws:copilot:description": "An IAM Role to describe load balancer rules for assigning a priority" @@ -456,7 +456,7 @@ Resources: Timeout: 900 MemorySize: 512 Role: !GetAtt "EnvControllerRole.Arn" - Runtime: nodejs20.x + Runtime: nodejs22.x EnvControllerRole: Metadata: "aws:copilot:description": "An IAM role to update your environment stack" diff --git a/internal/pkg/deploy/cloudformation/stack/testdata/workloads/backend/https-path-alias-template.yml b/internal/pkg/deploy/cloudformation/stack/testdata/workloads/backend/https-path-alias-template.yml index dd50d75a705..6746ba7de8f 100644 --- a/internal/pkg/deploy/cloudformation/stack/testdata/workloads/backend/https-path-alias-template.yml +++ b/internal/pkg/deploy/cloudformation/stack/testdata/workloads/backend/https-path-alias-template.yml @@ -249,7 +249,7 @@ Resources: Timeout: 600 MemorySize: 512 Role: !GetAtt "RulePriorityFunctionRole.Arn" - Runtime: nodejs20.x + Runtime: nodejs22.x RulePriorityFunctionRole: Metadata: 'aws:copilot:description': "An IAM Role to describe load balancer rules for assigning a priority" @@ -447,7 +447,7 @@ Resources: Timeout: 900 MemorySize: 512 Role: !GetAtt 'EnvControllerRole.Arn' - Runtime: nodejs20.x + Runtime: nodejs22.x EnvControllerRole: Metadata: 'aws:copilot:description': "An IAM role to update your environment stack" diff --git a/internal/pkg/deploy/cloudformation/stack/testdata/workloads/backend/simple-template-without-port-config.yml b/internal/pkg/deploy/cloudformation/stack/testdata/workloads/backend/simple-template-without-port-config.yml index 403dec901aa..de924faebba 100644 --- a/internal/pkg/deploy/cloudformation/stack/testdata/workloads/backend/simple-template-without-port-config.yml +++ b/internal/pkg/deploy/cloudformation/stack/testdata/workloads/backend/simple-template-without-port-config.yml @@ -346,7 +346,7 @@ Resources: Timeout: 900 MemorySize: 512 Role: !GetAtt "EnvControllerRole.Arn" - Runtime: nodejs20.x + Runtime: nodejs22.x EnvControllerRole: Metadata: "aws:copilot:description": "An IAM role to update your environment stack" diff --git a/internal/pkg/deploy/cloudformation/stack/testdata/workloads/backend/simple-template.yml b/internal/pkg/deploy/cloudformation/stack/testdata/workloads/backend/simple-template.yml index 2caa7ae92ae..cd2faf48af3 100644 --- a/internal/pkg/deploy/cloudformation/stack/testdata/workloads/backend/simple-template.yml +++ b/internal/pkg/deploy/cloudformation/stack/testdata/workloads/backend/simple-template.yml @@ -356,7 +356,7 @@ Resources: Timeout: 900 MemorySize: 512 Role: !GetAtt "EnvControllerRole.Arn" - Runtime: nodejs20.x + Runtime: nodejs22.x EnvControllerRole: Metadata: "aws:copilot:description": "An IAM role to update your environment stack" diff --git a/internal/pkg/deploy/cloudformation/stack/testdata/workloads/job-test.stack.yml b/internal/pkg/deploy/cloudformation/stack/testdata/workloads/job-test.stack.yml index 9f250c61896..89f189c3265 100644 --- a/internal/pkg/deploy/cloudformation/stack/testdata/workloads/job-test.stack.yml +++ b/internal/pkg/deploy/cloudformation/stack/testdata/workloads/job-test.stack.yml @@ -73,7 +73,7 @@ Resources: Timeout: 900 MemorySize: 512 Role: !GetAtt 'EnvControllerRole.Arn' - Runtime: nodejs20.x + Runtime: nodejs22.x EnvControllerRole: Metadata: diff --git a/internal/pkg/deploy/cloudformation/stack/testdata/workloads/rdws-test.stack.yml b/internal/pkg/deploy/cloudformation/stack/testdata/workloads/rdws-test.stack.yml index 25e66c1347e..df7ee260ccd 100644 --- a/internal/pkg/deploy/cloudformation/stack/testdata/workloads/rdws-test.stack.yml +++ b/internal/pkg/deploy/cloudformation/stack/testdata/workloads/rdws-test.stack.yml @@ -293,7 +293,7 @@ Resources: Timeout: 900 MemorySize: 512 Role: !GetAtt 'EnvControllerRole.Arn' - Runtime: nodejs20.x + Runtime: nodejs22.x EnvControllerRole: Metadata: diff --git a/internal/pkg/deploy/cloudformation/stack/testdata/workloads/static-site-test.stack.yml b/internal/pkg/deploy/cloudformation/stack/testdata/workloads/static-site-test.stack.yml index dec24845ee8..2d44345e805 100644 --- a/internal/pkg/deploy/cloudformation/stack/testdata/workloads/static-site-test.stack.yml +++ b/internal/pkg/deploy/cloudformation/stack/testdata/workloads/static-site-test.stack.yml @@ -144,7 +144,7 @@ Resources: Properties: Handler: index.handler Role: !GetAtt TriggerStateMachineFunctionRole.Arn - Runtime: nodejs20.x + Runtime: nodejs22.x Timeout: 900 MemorySize: 512 diff --git a/internal/pkg/deploy/cloudformation/stack/testdata/workloads/static-site.stack.yml b/internal/pkg/deploy/cloudformation/stack/testdata/workloads/static-site.stack.yml index 0e7291e8ea0..158c7cf9317 100644 --- a/internal/pkg/deploy/cloudformation/stack/testdata/workloads/static-site.stack.yml +++ b/internal/pkg/deploy/cloudformation/stack/testdata/workloads/static-site.stack.yml @@ -144,7 +144,7 @@ Resources: Properties: Handler: index.handler Role: !GetAtt TriggerStateMachineFunctionRole.Arn - Runtime: nodejs20.x + Runtime: nodejs22.x Timeout: 900 MemorySize: 512 @@ -386,7 +386,7 @@ Resources: Timeout: 900 MemorySize: 512 Role: !GetAtt 'CustomDomainRole.Arn' - Runtime: nodejs20.x + Runtime: nodejs22.x CustomDomainRole: Metadata: @@ -448,7 +448,7 @@ Resources: Timeout: 900 MemorySize: 512 Role: !GetAtt 'CertificateValidatorRole.Arn' - Runtime: nodejs20.x + Runtime: nodejs22.x CertificateValidatorRole: Metadata: diff --git a/internal/pkg/deploy/cloudformation/stack/testdata/workloads/svc-grpc-test.stack.yml b/internal/pkg/deploy/cloudformation/stack/testdata/workloads/svc-grpc-test.stack.yml index 8d1839d5833..f02821c5a6a 100644 --- a/internal/pkg/deploy/cloudformation/stack/testdata/workloads/svc-grpc-test.stack.yml +++ b/internal/pkg/deploy/cloudformation/stack/testdata/workloads/svc-grpc-test.stack.yml @@ -259,7 +259,7 @@ Resources: # If a bucket URL is specified, that means the template exists. Timeout: 600 MemorySize: 512 Role: !GetAtt 'DynamicDesiredCountFunctionRole.Arn' - Runtime: nodejs20.x + Runtime: nodejs22.x DynamicDesiredCountFunctionRole: Metadata: 'aws:copilot:description': "An IAM Role for describing number of running tasks in your ECS service" @@ -364,7 +364,7 @@ Resources: # If a bucket URL is specified, that means the template exists. Timeout: 900 MemorySize: 512 Role: !GetAtt 'EnvControllerRole.Arn' - Runtime: nodejs20.x + Runtime: nodejs22.x EnvControllerRole: Metadata: 'aws:copilot:description': "An IAM role to update your environment stack" @@ -482,7 +482,7 @@ Resources: # If a bucket URL is specified, that means the template exists. Timeout: 600 MemorySize: 512 Role: !GetAtt 'RulePriorityFunctionRole.Arn' - Runtime: nodejs20.x + Runtime: nodejs22.x RulePriorityFunctionRole: Metadata: 'aws:copilot:description': "An IAM Role to describe load balancer rules for assigning a priority" diff --git a/internal/pkg/deploy/cloudformation/stack/testdata/workloads/svc-nlb-dev.stack.yml b/internal/pkg/deploy/cloudformation/stack/testdata/workloads/svc-nlb-dev.stack.yml index 33410dca2d6..39d9d9ca2ff 100644 --- a/internal/pkg/deploy/cloudformation/stack/testdata/workloads/svc-nlb-dev.stack.yml +++ b/internal/pkg/deploy/cloudformation/stack/testdata/workloads/svc-nlb-dev.stack.yml @@ -246,7 +246,7 @@ Resources: # If a bucket URL is specified, that means the template exists. Timeout: 900 MemorySize: 512 Role: !GetAtt 'EnvControllerRole.Arn' - Runtime: nodejs20.x + Runtime: nodejs22.x EnvControllerRole: Metadata: 'aws:copilot:description': "An IAM role to update your environment stack" @@ -373,7 +373,7 @@ Resources: # If a bucket URL is specified, that means the template exists. Timeout: 600 MemorySize: 512 Role: !GetAtt 'RulePriorityFunctionRole.Arn' - Runtime: nodejs20.x + Runtime: nodejs22.x RulePriorityFunctionRole: Metadata: 'aws:copilot:description': "An IAM Role to describe load balancer rules for assigning a priority" diff --git a/internal/pkg/deploy/cloudformation/stack/testdata/workloads/svc-nlb-prod.stack.yml b/internal/pkg/deploy/cloudformation/stack/testdata/workloads/svc-nlb-prod.stack.yml index 142d584c7bd..e990687938d 100644 --- a/internal/pkg/deploy/cloudformation/stack/testdata/workloads/svc-nlb-prod.stack.yml +++ b/internal/pkg/deploy/cloudformation/stack/testdata/workloads/svc-nlb-prod.stack.yml @@ -348,7 +348,7 @@ Resources: # If a bucket URL is specified, that means the template exists. Timeout: 900 MemorySize: 512 Role: !GetAtt 'EnvControllerRole.Arn' - Runtime: nodejs20.x + Runtime: nodejs22.x EnvControllerRole: Metadata: 'aws:copilot:description': "An IAM role to update your environment stack" @@ -637,7 +637,7 @@ Resources: # If a bucket URL is specified, that means the template exists. Timeout: 900 MemorySize: 512 Role: !GetAtt 'NLBCustomDomainRole.Arn' - Runtime: nodejs20.x + Runtime: nodejs22.x NLBCustomDomainRole: Metadata: 'aws:copilot:description': "An IAM role to update the environment Route 53 hosted zone" @@ -702,7 +702,7 @@ Resources: # If a bucket URL is specified, that means the template exists. Timeout: 900 MemorySize: 512 Role: !GetAtt 'NLBCertValidatorRole.Arn' - Runtime: nodejs20.x + Runtime: nodejs22.x NLBCertValidatorRole: Metadata: 'aws:copilot:description': "An IAM role to request and validate a certificate for your service" diff --git a/internal/pkg/deploy/cloudformation/stack/testdata/workloads/svc-nlb-test.stack.yml b/internal/pkg/deploy/cloudformation/stack/testdata/workloads/svc-nlb-test.stack.yml index 2b0fb7d694b..6df70f84e87 100644 --- a/internal/pkg/deploy/cloudformation/stack/testdata/workloads/svc-nlb-test.stack.yml +++ b/internal/pkg/deploy/cloudformation/stack/testdata/workloads/svc-nlb-test.stack.yml @@ -241,7 +241,7 @@ Resources: # If a bucket URL is specified, that means the template exists. Timeout: 900 MemorySize: 512 Role: !GetAtt 'EnvControllerRole.Arn' - Runtime: nodejs20.x + Runtime: nodejs22.x EnvControllerRole: Metadata: 'aws:copilot:description': "An IAM role to update your environment stack" @@ -525,7 +525,7 @@ Resources: # If a bucket URL is specified, that means the template exists. Timeout: 900 MemorySize: 512 Role: !GetAtt 'NLBCertValidatorRole.Arn' - Runtime: nodejs20.x + Runtime: nodejs22.x NLBCertValidatorRole: Metadata: 'aws:copilot:description': "An IAM role to request and validate a certificate for your service" diff --git a/internal/pkg/deploy/cloudformation/stack/testdata/workloads/svc-prod.stack.yml b/internal/pkg/deploy/cloudformation/stack/testdata/workloads/svc-prod.stack.yml index a75581e1ac2..d725be5a8b1 100644 --- a/internal/pkg/deploy/cloudformation/stack/testdata/workloads/svc-prod.stack.yml +++ b/internal/pkg/deploy/cloudformation/stack/testdata/workloads/svc-prod.stack.yml @@ -481,7 +481,7 @@ Resources: # If a bucket URL is specified, that means the template exists. Timeout: 600 MemorySize: 512 Role: !GetAtt 'DynamicDesiredCountFunctionRole.Arn' - Runtime: nodejs20.x + Runtime: nodejs22.x DynamicDesiredCountFunctionRole: Metadata: 'aws:copilot:description': "An IAM Role for describing number of running tasks in your ECS service" @@ -586,7 +586,7 @@ Resources: # If a bucket URL is specified, that means the template exists. Timeout: 900 MemorySize: 512 Role: !GetAtt 'EnvControllerRole.Arn' - Runtime: nodejs20.x + Runtime: nodejs22.x EnvControllerRole: Metadata: 'aws:copilot:description': "An IAM role to update your environment stack" @@ -760,7 +760,7 @@ Resources: # If a bucket URL is specified, that means the template exists. Timeout: 600 MemorySize: 512 Role: !GetAtt 'RulePriorityFunctionRole.Arn' - Runtime: nodejs20.x + Runtime: nodejs22.x RulePriorityFunctionRole: Type: AWS::IAM::Role Metadata: diff --git a/internal/pkg/deploy/cloudformation/stack/testdata/workloads/svc-staging.stack.yml b/internal/pkg/deploy/cloudformation/stack/testdata/workloads/svc-staging.stack.yml index 0a386b0de28..f8caf2b8682 100644 --- a/internal/pkg/deploy/cloudformation/stack/testdata/workloads/svc-staging.stack.yml +++ b/internal/pkg/deploy/cloudformation/stack/testdata/workloads/svc-staging.stack.yml @@ -259,7 +259,7 @@ Resources: # If a bucket URL is specified, that means the template exists. Timeout: 900 MemorySize: 512 Role: !GetAtt 'EnvControllerRole.Arn' - Runtime: nodejs20.x + Runtime: nodejs22.x EnvControllerRole: Metadata: 'aws:copilot:description': "An IAM role to update your environment stack" @@ -399,7 +399,7 @@ Resources: # If a bucket URL is specified, that means the template exists. Timeout: 600 MemorySize: 512 Role: !GetAtt 'RulePriorityFunctionRole.Arn' - Runtime: nodejs20.x + Runtime: nodejs22.x RulePriorityFunctionRole: Metadata: 'aws:copilot:description': "An IAM Role to describe load balancer rules for assigning a priority" diff --git a/internal/pkg/deploy/cloudformation/stack/testdata/workloads/svc-test.stack.yml b/internal/pkg/deploy/cloudformation/stack/testdata/workloads/svc-test.stack.yml index 0f1eae8f4a7..b35509591df 100644 --- a/internal/pkg/deploy/cloudformation/stack/testdata/workloads/svc-test.stack.yml +++ b/internal/pkg/deploy/cloudformation/stack/testdata/workloads/svc-test.stack.yml @@ -260,7 +260,7 @@ Resources: # If a bucket URL is specified, that means the template exists. Timeout: 600 MemorySize: 512 Role: !GetAtt 'DynamicDesiredCountFunctionRole.Arn' - Runtime: nodejs20.x + Runtime: nodejs22.x DynamicDesiredCountFunctionRole: Metadata: 'aws:copilot:description': "An IAM Role for describing number of running tasks in your ECS service" @@ -383,7 +383,7 @@ Resources: # If a bucket URL is specified, that means the template exists. Timeout: 900 MemorySize: 512 Role: !GetAtt 'EnvControllerRole.Arn' - Runtime: nodejs20.x + Runtime: nodejs22.x EnvControllerRole: Metadata: 'aws:copilot:description': "An IAM role to update your environment stack" @@ -524,7 +524,7 @@ Resources: # If a bucket URL is specified, that means the template exists. Timeout: 600 MemorySize: 512 Role: !GetAtt "RulePriorityFunctionRole.Arn" - Runtime: nodejs20.x + Runtime: nodejs22.x RulePriorityFunctionRole: Metadata: 'aws:copilot:description': "An IAM Role to describe load balancer rules for assigning a priority" diff --git a/internal/pkg/deploy/cloudformation/stack/testdata/workloads/windows-svc-test.stack.yml b/internal/pkg/deploy/cloudformation/stack/testdata/workloads/windows-svc-test.stack.yml index 7f87d95f83a..5a297790e2d 100644 --- a/internal/pkg/deploy/cloudformation/stack/testdata/workloads/windows-svc-test.stack.yml +++ b/internal/pkg/deploy/cloudformation/stack/testdata/workloads/windows-svc-test.stack.yml @@ -238,7 +238,7 @@ Resources: # If a bucket URL is specified, that means the template exists. Timeout: 900 MemorySize: 512 Role: !GetAtt 'EnvControllerRole.Arn' - Runtime: nodejs20.x + Runtime: nodejs22.x EnvControllerRole: Metadata: 'aws:copilot:description': "An IAM role to update your environment stack" @@ -354,7 +354,7 @@ Resources: # If a bucket URL is specified, that means the template exists. Timeout: 600 MemorySize: 512 Role: !GetAtt 'RulePriorityFunctionRole.Arn' - Runtime: nodejs20.x + Runtime: nodejs22.x RulePriorityFunctionRole: Metadata: 'aws:copilot:description': "An IAM Role to describe load balancer rules for assigning a priority" diff --git a/internal/pkg/deploy/cloudformation/stack/testdata/workloads/worker-test.stack.yml b/internal/pkg/deploy/cloudformation/stack/testdata/workloads/worker-test.stack.yml index 6af621abe6b..85cdeef038e 100644 --- a/internal/pkg/deploy/cloudformation/stack/testdata/workloads/worker-test.stack.yml +++ b/internal/pkg/deploy/cloudformation/stack/testdata/workloads/worker-test.stack.yml @@ -385,7 +385,7 @@ Resources: Timeout: 600 MemorySize: 512 Role: !GetAtt 'DynamicDesiredCountFunctionRole.Arn' - Runtime: nodejs20.x + Runtime: nodejs22.x DynamicDesiredCountFunctionRole: Metadata: 'aws:copilot:description': "An IAM Role for describing number of running tasks in your ECS service" @@ -479,7 +479,7 @@ Resources: Timeout: 600 MemorySize: 512 Role: !GetAtt BacklogPerTaskCalculatorRole.Arn - Runtime: nodejs20.x + Runtime: nodejs22.x Environment: Variables: CLUSTER_NAME: @@ -1211,7 +1211,7 @@ Resources: Timeout: 900 MemorySize: 512 Role: !GetAtt 'EnvControllerRole.Arn' - Runtime: nodejs20.x + Runtime: nodejs22.x EnvControllerRole: Metadata: 'aws:copilot:description': "An IAM role to update your environment stack" diff --git a/internal/pkg/template/templates/environment/partials/cdn-resources.yml b/internal/pkg/template/templates/environment/partials/cdn-resources.yml index fab820c57d4..0b69a5f8bcf 100644 --- a/internal/pkg/template/templates/environment/partials/cdn-resources.yml +++ b/internal/pkg/template/templates/environment/partials/cdn-resources.yml @@ -34,7 +34,7 @@ UniqueJSONValuesFunction: Timeout: 600 MemorySize: 512 Role: !GetAtt 'UniqueJSONValuesFunctionRole.Arn' - Runtime: nodejs20.x + Runtime: nodejs22.x UniqueAliasesAction: Metadata: @@ -139,7 +139,7 @@ CertificateReplicatorFunction: Timeout: 900 MemorySize: 512 Role: !GetAtt 'CustomResourceRole.Arn' - Runtime: nodejs20.x + Runtime: nodejs22.x CertificateReplicator: Metadata: diff --git a/internal/pkg/template/templates/environment/partials/elb-access-logs.yml b/internal/pkg/template/templates/environment/partials/elb-access-logs.yml index e0fb71d86a3..fc50c0eef1b 100644 --- a/internal/pkg/template/templates/environment/partials/elb-access-logs.yml +++ b/internal/pkg/template/templates/environment/partials/elb-access-logs.yml @@ -63,7 +63,7 @@ BucketCleanerFunction: Timeout: 900 MemorySize: 512 Role: !GetAtt 'ELBAccessLogsBucketCleanerRole.Arn' - Runtime: nodejs20.x + Runtime: nodejs22.x ELBAccessLogsBucketCleanerRole: Metadata: diff --git a/internal/pkg/template/templates/environment/partials/lambdas.yml b/internal/pkg/template/templates/environment/partials/lambdas.yml index 6b0b6a8199a..5ce676c0969 100644 --- a/internal/pkg/template/templates/environment/partials/lambdas.yml +++ b/internal/pkg/template/templates/environment/partials/lambdas.yml @@ -11,7 +11,7 @@ CertificateValidationFunction: Timeout: 900 MemorySize: 512 Role: !GetAtt 'CustomResourceRole.Arn' - Runtime: nodejs20.x + Runtime: nodejs22.x CustomDomainFunction: Condition: ManagedAliases @@ -26,7 +26,7 @@ CustomDomainFunction: Timeout: 600 MemorySize: 512 Role: !GetAtt 'CustomResourceRole.Arn' - Runtime: nodejs20.x + Runtime: nodejs22.x DNSDelegationFunction: Type: AWS::Lambda::Function @@ -41,4 +41,4 @@ DNSDelegationFunction: Timeout: 600 MemorySize: 512 Role: !GetAtt 'CustomResourceRole.Arn' - Runtime: nodejs20.x + Runtime: nodejs22.x diff --git a/internal/pkg/template/templates/workloads/partials/cf/alb.yml b/internal/pkg/template/templates/workloads/partials/cf/alb.yml index 7041887fd7f..49cc4c75bee 100644 --- a/internal/pkg/template/templates/workloads/partials/cf/alb.yml +++ b/internal/pkg/template/templates/workloads/partials/cf/alb.yml @@ -62,7 +62,7 @@ RulePriorityFunction: Timeout: 600 MemorySize: 512 Role: !GetAtt "RulePriorityFunctionRole.Arn" - Runtime: nodejs20.x + Runtime: nodejs22.x RulePriorityFunctionRole: Metadata: diff --git a/internal/pkg/template/templates/workloads/partials/cf/autoscaling.yml b/internal/pkg/template/templates/workloads/partials/cf/autoscaling.yml index 249c4a95bc7..4a7e54dce9e 100644 --- a/internal/pkg/template/templates/workloads/partials/cf/autoscaling.yml +++ b/internal/pkg/template/templates/workloads/partials/cf/autoscaling.yml @@ -26,7 +26,7 @@ DynamicDesiredCountFunction: Timeout: 600 MemorySize: 512 Role: !GetAtt 'DynamicDesiredCountFunctionRole.Arn' - Runtime: nodejs20.x + Runtime: nodejs22.x DynamicDesiredCountFunctionRole: Metadata: @@ -182,7 +182,7 @@ BacklogPerTaskCalculatorFunction: Timeout: 600 MemorySize: 512 Role: !GetAtt BacklogPerTaskCalculatorRole.Arn - Runtime: nodejs20.x + Runtime: nodejs22.x Environment: Variables: CLUSTER_NAME: diff --git a/internal/pkg/template/templates/workloads/partials/cf/env-controller.yml b/internal/pkg/template/templates/workloads/partials/cf/env-controller.yml index 908d81cb6b2..9b751c530cf 100644 --- a/internal/pkg/template/templates/workloads/partials/cf/env-controller.yml +++ b/internal/pkg/template/templates/workloads/partials/cf/env-controller.yml @@ -24,7 +24,7 @@ EnvControllerFunction: Timeout: 900 MemorySize: 512 Role: !GetAtt 'EnvControllerRole.Arn' - Runtime: nodejs20.x + Runtime: nodejs22.x EnvControllerRole: Metadata: diff --git a/internal/pkg/template/templates/workloads/partials/cf/nlb.yml b/internal/pkg/template/templates/workloads/partials/cf/nlb.yml index b09c42d827f..ab6d937ab04 100644 --- a/internal/pkg/template/templates/workloads/partials/cf/nlb.yml +++ b/internal/pkg/template/templates/workloads/partials/cf/nlb.yml @@ -153,7 +153,7 @@ NLBCustomDomainFunction: Timeout: 900 MemorySize: 512 Role: !GetAtt 'NLBCustomDomainRole.Arn' - Runtime: nodejs20.x + Runtime: nodejs22.x NLBCustomDomainRole: Metadata: @@ -233,7 +233,7 @@ NLBCertValidatorFunction: Timeout: 900 MemorySize: 512 Role: !GetAtt 'NLBCertValidatorRole.Arn' - Runtime: nodejs20.x + Runtime: nodejs22.x NLBCertValidatorRole: Metadata: diff --git a/internal/pkg/template/templates/workloads/services/rd-web/cf.yml b/internal/pkg/template/templates/workloads/services/rd-web/cf.yml index f0e47e3380f..970ba61603f 100644 --- a/internal/pkg/template/templates/workloads/services/rd-web/cf.yml +++ b/internal/pkg/template/templates/workloads/services/rd-web/cf.yml @@ -227,7 +227,7 @@ Resources: Timeout: 900 MemorySize: 512 Role: !GetAtt CustomResourceRole.Arn - Runtime: nodejs20.x + Runtime: nodejs22.x Layers: - {{ .AWSSDKLayer }} diff --git a/internal/pkg/template/templates/workloads/services/static-site/cf.yml b/internal/pkg/template/templates/workloads/services/static-site/cf.yml index 794ce589910..fc04c5adf85 100644 --- a/internal/pkg/template/templates/workloads/services/static-site/cf.yml +++ b/internal/pkg/template/templates/workloads/services/static-site/cf.yml @@ -166,7 +166,7 @@ Resources: Properties: Handler: index.handler Role: !GetAtt TriggerStateMachineFunctionRole.Arn - Runtime: nodejs20.x + Runtime: nodejs22.x Timeout: 900 MemorySize: 512 {{- with $cr := index .CustomResources "TriggerStateMachineFunction" }} @@ -430,7 +430,7 @@ Resources: Timeout: 900 MemorySize: 512 Role: !GetAtt 'CustomDomainRole.Arn' - Runtime: nodejs20.x + Runtime: nodejs22.x CustomDomainRole: Metadata: @@ -501,7 +501,7 @@ Resources: Timeout: 900 MemorySize: 512 Role: !GetAtt 'CertificateValidatorRole.Arn' - Runtime: nodejs20.x + Runtime: nodejs22.x CertificateValidatorRole: Metadata: diff --git a/site/content/docs/developing/addons/package.en.md b/site/content/docs/developing/addons/package.en.md index a29179b38c6..326ac944847 100644 --- a/site/content/docs/developing/addons/package.en.md +++ b/site/content/docs/developing/addons/package.en.md @@ -20,7 +20,7 @@ For example, to deploy a javascript Lambda function alongside a copilot service, Timeout: 900 MemorySize: 512 Role: !GetAtt "ExampleFunctionRole.Arn" - Runtime: nodejs20.x + Runtime: nodejs22.x ``` === "lambdas/example/index.js" @@ -82,7 +82,7 @@ This architecture could be useful if you have a service that needs to minimize l Timeout: 60 MemorySize: 512 Role: !GetAtt "recordProcessorRole.Arn" - Runtime: nodejs20.x + Runtime: nodejs22.x recordProcessorRole: Type: AWS::IAM::Role diff --git a/site/content/docs/developing/addons/package.ja.md b/site/content/docs/developing/addons/package.ja.md index 145ec7188b3..ae4b41f2b1a 100644 --- a/site/content/docs/developing/addons/package.ja.md +++ b/site/content/docs/developing/addons/package.ja.md @@ -20,7 +20,7 @@ Copilot は、Addon テンプレートから参照されるローカルファイ Timeout: 900 MemorySize: 512 Role: !GetAtt "ExampleFunctionRole.Arn" - Runtime: nodejs20.x + Runtime: nodejs22.x ``` === "lambdas/example/index.js" @@ -84,7 +84,7 @@ zip が必要な一部のリソース (`AWS::Serverless::Function` など) で Timeout: 60 MemorySize: 512 Role: !GetAtt "recordProcessorRole.Arn" - Runtime: nodejs20.x + Runtime: nodejs22.x recordProcessorRole: Type: AWS::IAM::Role