Skip to content

Instantly share code, notes, and snippets.

@IronCore864
Created Jun 13, 2021
Embed
What would you like to do?
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