RDS Instance and Cluster

Creating a single az instance with minimal parameters

resources:
  - type: aws_rds_db_instance
    name: mysql-db1
    props:
      db_instance_identifier: "my-mysql-db"
      engine: "mysql"
      engine_version: "8.0.35"
      db_instance_class: "db.t3.micro"
      allocated_storage: 100
      storage_type: "gp2"
      db_name: "mydb"
      master_username: "admin"
      master_user_password: "MyPassword123!"
      db_subnet_group_name: "my-existing-subnet-group"

Example price for above configuration

mysql-db1 (action: create)
=> Price (Compute - price: $0.017/Hrs, monthly: $12.65)
=> Price (Storage - price: $0.115/GB-Mo, quantity: 200, monthly: $23.00)

Creating a multi az instance with minimal parameters

Example price for above configuration

Creating a multi az cluster with minimal parameters

Example price for above configuration

Last updated

Was this helpful?