mirror of
https://github.com/sidpalas/devops-directive-terraform-course.git
synced 2025-12-10 04:41:14 +00:00
- Remove minor version pin for postgres versions (i.e. 12.5 -> 12) - Update s3 config to use separate versioning and encryption terraform resources - Use bucket_prefix instead of bucket for bucket naming to avoid name conflicts Stream: https://youtu.be/KWwKPYuOGBw
12 lines
346 B
HCL
12 lines
346 B
HCL
resource "aws_db_instance" "db_instance" {
|
|
allocated_storage = 20
|
|
storage_type = "standard"
|
|
engine = "postgres"
|
|
engine_version = "12"
|
|
instance_class = "db.t2.micro"
|
|
name = var.db_name
|
|
username = var.db_user
|
|
password = var.db_pass
|
|
skip_final_snapshot = true
|
|
}
|