Terraform resource: aws db instance

From wikieduonline
Jump to navigation Jump to search

Official example

resource "aws_db_instance" "default" {
  allocated_storage    = 10
  engine               = "mysql"
  engine_version       = "5.7"
  instance_class       = "db.t3.micro"
  db_name                 = "mydb"
  username             = "foo"
  password             = "foobarbaz"
  parameter_group_name = "default.mysql5.7"
  skip_final_snapshot  = true
}

Basic example

resource "aws_db_instance" "my_mariadb_instance" {
  allocated_storage    = 10
  engine               = "mariadb"
  instance_class       = "db.t3.micro"
  db_name              = "mydb"
  username             = "foo"
  password             = "foobarbaz"
  ][publicly_accessible]]  = false
  skip_final_snapshot  = true
}

Arguments

Related terms

See also

Advertising: