diff --git a/templates/assets/cloudformation/database.yml b/templates/assets/cloudformation/database.yml index bb398a08..5127c721 100644 --- a/templates/assets/cloudformation/database.yml +++ b/templates/assets/cloudformation/database.yml @@ -138,18 +138,18 @@ Resources: EngineMode: !Ref DatabaseEngineMode KmsKeyId: !Ref DatabaseKeyArn StorageEncrypted: true - ScalingConfiguration: + ScalingConfiguration: Fn::If: - IsServerless - MaxCapacity: !Ref ScalingMaxCapacity MinCapacity: !Ref ScalingMinCapacity SecondsUntilAutoPause: !Ref SecondsUntilAutoPause - AutoPause: - Fn::If: + AutoPause: + Fn::If: - IsServerlessAutoPause - 'true' - 'false' - - AWS::NoValue + - !Ref AWS::NoValue MasterUsername: !Ref DatabaseMasterUsername MasterUserPassword: !Ref DatabaseMasterPassword Tags: