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

From wikieduonline
Jump to navigation Jump to search
Line 43: Line 43:
 
* <code>[[db_subnet_group_name]]</code> (optional)
 
* <code>[[db_subnet_group_name]]</code> (optional)
 
* <code>[[enabled_cloudwatch_logs_exports]]</code>
 
* <code>[[enabled_cloudwatch_logs_exports]]</code>
 +
 +
== Errors ==
 +
* <code>[[will be created]]</code>
 +
* <code>[[InvalidParameterCombination]]</code>
 +
* <code>[[InstanceType]]</code>
 +
* <code>[[Warning: Redundant ignore changes element]]</code>
  
 
== Related terms ==
 
== Related terms ==
Line 54: Line 60:
 
* <code>[[enable_dns_support]]  = true</code>
 
* <code>[[enable_dns_support]]  = true</code>
 
* [[Warning: Redundant ignore changes element]]
 
* [[Warning: Redundant ignore changes element]]
* <code>[[will be created]]</code>
 
* <code>[[InvalidParameterCombination]]</code>
 
* <code>[[InstanceType]]</code>
 
* <code>[[Warning: Redundant ignore changes element]]</code>
 
 
* <code>[[google_sql_user]]</code>
 
* <code>[[google_sql_user]]</code>
 
* [[tf show]] | grep .rds.amazonaws.com
 
* [[tf show]] | grep .rds.amazonaws.com

Revision as of 11:01, 2 May 2023

Terraform resource: aws_db_instance

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
}

Selected arguments

Errors

Related terms

See also

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