Difference between revisions of "Terraform resource: aws db instance"
Jump to navigation
Jump to search
↑ 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
Line 70: | Line 70: | ||
* [[tf show]] | grep .rds.amazonaws.com | * [[tf show]] | grep .rds.amazonaws.com | ||
* [[Master password]] | * [[Master password]] | ||
+ | * [[google_sql_database_instance]] | ||
== See also == | == See also == |
Latest revision as of 11:49, 7 November 2024
Terraform resource: aws_db_instance
Contents
Official example[edit]
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[edit]
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[edit]
instance_class
(required)multi_az
(optional)engine
:aurora, aurora-mysql, aurora-postgresql, mysql, mariadb, postgres
allocated_storage
[1] (required)max_allocated_storage
(optional) [2]db_name
(optional)password
backup_retention_period
: [0-35][3]vpc_security_group_ids
iam_database_authentication_enabled
db_subnet_group_name
(optional)enabled_cloudwatch_logs_exports
monitoring_role_arn
- Enhanced monitoring:
monitoring_interval
(default 0) ca_cert_identifier
(Optional) The identifier of the CA certificate for the DB instance.
Errors[edit]
Related terms[edit]
aws rds create-db-instance
- CloudFormation
AWS::RDS::DBInstance
aws rds describe-db-instances
- Terraform resource: aws_db_security_group
- Terraform module: rds
Error: Error creating DB Instance
enable_dns_hostnames = true
enable_dns_support = true
google_sql_user
- tf show | grep .rds.amazonaws.com
- Master password
- google_sql_database_instance
See also[edit]
aws_db_instance, instance_class, allocated_storage, InvalidParameterCombination , backup_retention_period, publicly_accessible
- Terraform RDS, Terraform module: rds,
aws_db_instance, aws_rds_cluster
,aws_rds_cluster_instance, aws_db_parameter_group, aws_db_subnet_group
,aws_rds_global_cluster, aws_rds_cluster_parameter_group
- Terraform AWS resources: IAM, Net, EC2, ECS, ECR, S3, Route53, ACM, CloudWatch, CloudFront SES, RDS, DLM
- Terraform AWS modules:
vpc, rds
,rds-aurora, cdn, EKS, IAM
Advertising: