Skip to content

Commit

Permalink
Update postgres_db.py
Browse files Browse the repository at this point in the history
  • Loading branch information
vyshnavi-pvr committed Dec 4, 2023
1 parent 998d897 commit 9b71a81
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions postgres_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,11 @@ def __init__(self, name: str, username: str, password: str, security_group_id: s
storage_type="gp2",
username=username,
password=password,
vpc_security_group_ids=[security_group_id], # replace with actual VPC security group ID(s)
db_subnet_group_name=self.db_subnet_group.name, # replace with actual DB Subnet group name
vpc_security_group_ids=[security_group_id],
db_subnet_group_name=self.db_subnet_group.name,
parameter_group_name=self.parameter_group.id,
delete_automated_backups=True,
skip_final_snapshot = True,
deletion_protection=False,
)

# # Export the name and address of the RDS instance
# pulumi.export("dbInstanceName", rds_instance.name)
# pulumi.export("dbInstanceAddress", rds_instance.address)

# # Export the parameter group ID for use in other resources or programs
# pulumi.export("parameter_group_id", parameter_group.id)

0 comments on commit 9b71a81

Please sign in to comment.