You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my template.yaml file I'm configuring a AWS::RDS::DBCluster with engine: aurora-postgresql and ServerlessV2ScalingConfiguration
in ServerlessV2ScalingConfiguration I'm trying to use SecondsUntilAutoPause to set it to 900 seconds
When running sam validate - the validation failed with error:
[E3002: Resource properties are invalid] (Additional properties are not allowed ('SecondsUntilAutoPause' was unexpected)) matched 83]
Steps to reproduce:
In your template.yaml file add AWS::RDS::DBCluster with engine: aurora-postgresql
Use ServerlessV2ScalingConfiguration to define serverless V2, and under it define SecondsUntilAutoPause: 300
Observed result:
[[E3002: Resource properties are invalid] (Additional properties are not allowed ('SecondsUntilAutoPause' was unexpected)) matched 83]
Expected result:
Validation passs
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
Hey @MrLesh, thanks for reaching out. Auto-pause is a new feature and I want to make sure that you're using the right Aurora PostgreSQL version. It is supported on the engine version starting 13.15. More details are mentioned here. Can you please share the engine version you are currently using to help solve the issue in more detail.
so when deploying this the default version is 15.4 (which is not supported).
To make it work I had to add: EngineVersion: '15.7'
and reduce the MinCapacity to 0. then the validation passed and I was able to deploy.
When adding to that "SecondsUntilAutoPause" the validation failes.
We are aware this is a issue with CFN schema, where the current CFN schema in SAM CLI is outdated, we will release a new version of SAM CLI next week and it should solve this issue. Thanks for reporting
Description:
In my template.yaml file I'm configuring a AWS::RDS::DBCluster with engine: aurora-postgresql and ServerlessV2ScalingConfiguration
in ServerlessV2ScalingConfiguration I'm trying to use SecondsUntilAutoPause to set it to 900 seconds
When running sam validate - the validation failed with error:
[E3002: Resource properties are invalid] (Additional properties are not allowed ('SecondsUntilAutoPause' was unexpected)) matched 83]
Steps to reproduce:
In your template.yaml file add AWS::RDS::DBCluster with engine: aurora-postgresql
Use ServerlessV2ScalingConfiguration to define serverless V2, and under it define SecondsUntilAutoPause: 300
Observed result:
[[E3002: Resource properties are invalid] (Additional properties are not allowed ('SecondsUntilAutoPause' was unexpected)) matched 83]
Expected result:
Validation passs
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
sam --version
: 1.132.0Add --debug flag to command you are running
The text was updated successfully, but these errors were encountered: