Difference between revisions of "Terraform resource: aws db instance"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
 
* https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/db_instance
 
* https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/db_instance
 +
 +
== Official examples ==
 +
<pre>
 +
resource "aws_db_instance" "default" {
 +
  allocated_storage    = 10
 +
  engine              = "mysql"
 +
  engine_version      = "5.7"
 +
  instance_class      = "db.t3.micro"
 +
  name                = "mydb"
 +
  username            = "foo"
 +
  password            = "foobarbaz"
 +
  parameter_group_name = "default.mysql5.7"
 +
  skip_final_snapshot  = true
 +
}
 +
</pre>
  
 
== Arguments ==
 
== Arguments ==

Revision as of 09:33, 26 April 2022

Official examples

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

Arguments


Related terms

See also

  • https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/db_instance#backup_retention_period
  • Advertising: