I am currently working on deploying a Aurora postgres instance in AWS thanks to Terraform.
Here is my declaration
resource "aws_db_instance" "postgreDatabase" {
name = "validName"
storage_type = "gp2"
allocated_storage = "25"
engine = "aurora-postgresql"
engine_version = "10.5"
instance_class = "db.r4.large"
username = "validUsername"
password = "validPassword"
}
Using this declaration throws the following error:
aws_db_instance.postgreDatabase: Error creating DB Instance: StorageTypeNotSupported: Invalid storage type: gp2
If i change the engine to
engine = "postgres"
, it works fine but i need an aurora instance.
Any idea on what is wrong with my declaration here ?
Thank you very much.