Search code examples
aws-cloudformationamazon-rdsamazon-aurora

CloudFormation AWS::RDS::DBInstance Error "Specifying IOPs is not allowed for this engine"


I have this CloudFormation code

  DatabasePrimaryInstanceAurora0:
    Type: AWS::RDS::DBInstance
    Condition: IsEnvPRO
    Properties:
      Engine: aurora-postgresql
      DBClusterIdentifier: !Ref Aurora0
      DBInstanceClass: db.t4g.medium
      DBInstanceIdentifier: postgres0-0
      DBSubnetGroupName: rds1
      StorageType: gp3

According with this https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-storagetype , we are good to go but I got that error from cloudFormation

Resource handler returned message: "Invalid storage type: gp3 (Service: Rds, Status Code: 400, Request ID: 6b75124d-2e57-47fd-bbf3-54ab4f217a82)" (RequestToken: f72ffede-b654-a065-0c5e-cf91c05473d9, HandlerErrorCode: InvalidRequest)

Thanks to @9bO3av5fw5 I added

      Iops: 3000

But then I got...

Resource handler returned message: "Specifying IOPs is not allowed for this engine (Service: Rds, Status Code: 400, Request ID: 2a558dd8-9e6c-47c8-bef0-af674f05760b)" (RequestToken: 53f0e15e-53b7-d9f5-4817-9d2dcc34bef3, HandlerErrorCode: InvalidRequest)

My Engine:

     Engine: aurora-postgresql
     EngineMode: provisioned

Solution

  • The Answer is here https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html

    General Purpose SSD gp3 storage is supported on Single-AZ and Multi-AZ DB instances, but isn't supported on Multi-AZ DB clusters. For more information, see Multi-AZ deployments for high availability and Multi-AZ DB cluster deployments.