Skip to content

Commit

Permalink
Allow creation of the security group rule to be disabled (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrnorm authored Sep 23, 2024
1 parent 8341309 commit 55ab27b
Show file tree
Hide file tree
Showing 5 changed files with 475 additions and 662 deletions.
5 changes: 5 additions & 0 deletions .changeset/good-geese-appear.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@common-fate/terraform-commonfate-proxy-resource-rds": minor
---

Allow creation of the security group rule to be disabled, by setting the 'create_security_group_rule' variable to false.
48 changes: 48 additions & 0 deletions .terraform.lock.hcl

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

1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ data "aws_db_instance" "database" {

// Add network access for the proxy to the database instance
resource "aws_security_group_rule" "postgres_access_from_proxy" {
count = var.create_security_group_rule ? 1 : 0
type = "ingress"
from_port = data.aws_db_instance.database.port
to_port = data.aws_db_instance.database.port
Expand Down
Loading

0 comments on commit 55ab27b

Please sign in to comment.