Skip to content

Commit 71ba9ac

Browse files
committed
fix example
1 parent eb99e93 commit 71ba9ac

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/complete-postgres/main.tf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ ephemeral "aws_secretsmanager_secret_version" "db_password" {
169169
module "db_write_only" {
170170
source = "../../"
171171

172-
identifier = local.name
172+
identifier = "${local.name}-write-only"
173173

174174
# All available versions: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_PostgreSQL.html#PostgreSQL.Concepts
175175
engine = "postgres"
@@ -179,6 +179,8 @@ module "db_write_only" {
179179
major_engine_version = "14" # DB option group
180180
instance_class = "db.t4g.large"
181181

182+
allocated_storage = 20
183+
182184
# NOTE: Do NOT use 'user' as the value for 'username' as it throws:
183185
# "Error creating DB Instance: InvalidParameterValue: MasterUsername
184186
# user cannot be used as it is a reserved word used by the engine"

0 commit comments

Comments
 (0)