Skip to content

Commit

Permalink
Refactor AWS RDS configuration: update database name and credentials,…
Browse files Browse the repository at this point in the history
… remove unused security group and subnet group resources
  • Loading branch information
quang-ng committed Dec 23, 2024
1 parent 4be3021 commit 2204a89
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 43 deletions.
21 changes: 21 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,24 @@ uv.lock
local-test-data/*
dsst_etl.log
debug.log


# Local .terraform directories
**/.terraform/*

# .tfstate files
*.tfstate
*.tfstate.*

# Crash log files
crash.log

# Exclude sensitive variables files
*.tfvars
*.tfvars.json

# Ignore override files
override.tf
override.tf.json
*_override.tf
*_override.tf.json
43 changes: 0 additions & 43 deletions .terraform/rds.tf

This file was deleted.

24 changes: 24 additions & 0 deletions terraform/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions terraform/rds.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
provider "aws" {
region = "us-east-1"
}

resource "aws_db_instance" "postgres" {
allocated_storage = 20
engine = "postgres"
engine_version = "13.3"
instance_class = "db.t3.micro"
db_name = "dsst_etl"
username = "postgres"
password = "postgres"
parameter_group_name = "default.postgres13"
skip_final_snapshot = true
publicly_accessible = true
}

0 comments on commit 2204a89

Please sign in to comment.