Skip to content

Instantly share code, notes, and snippets.

@IronCore864
Created June 13, 2021 11:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IronCore864/e5f4701b77f5325b52299e0c27a9fcdb to your computer and use it in GitHub Desktop.
Save IronCore864/e5f4701b77f5325b52299e0c27a9fcdb to your computer and use it in GitHub Desktop.
variable "password" {
type = string
default = "foobarbaz"
}
resource "aws_db_instance" "default" {
allocated_storage = 10
engine = "mysql"
engine_version = "5.7"
instance_class = "db.t3.micro"
name = "mydb"
username = "foo"
password = var.password
parameter_group_name = "default.mysql5.7"
skip_final_snapshot = true
db_subnet_group_name = aws_db_subnet_group.default.name
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment