Describe what happened
Auto-naming doesn't work for RDS instance resource. When I omit the identifier parameter in the constructor, it creates a DB instance with a random identifier based on the logical name even though I have this in my Pulumi.yaml:
config:
pulumi:autonaming:
value:
pattern: ${stack}-${name}
providers:
aws:
resources:
"aws:ssm/parameter:Parameter":
pattern: /${stack}/${name}
Tried also enforcing the naming pattern but without success.
Moreover, changing the identifier in Pulumi program after the resource is created doesn't lead to its update -- the DB instance identifier stays the same.
Sample program
rds = aws.rds.Instance(
"rds",
# identifier=pulumi.get_stack(), <-- leaving this out leads to a random identifier with a pattern "rdsXXXXX"
instance_class="db.t4g.micro",
storage_type="gp3",
allocated_storage=20,
engine="postgres",
engine_version="18.4",
allow_major_version_upgrade=False,
auto_minor_version_upgrade=True,
multi_az=True,
db_subnet_group_name=rds_subnet_group.name,
vpc_security_group_ids=[rds_security_group.id],
db_name="mydb",
username="postgres",
password="*****",
skip_final_snapshot=True,
deletion_protection=True
)
Log output
No response
Affected Resource(s)
No response
Output of pulumi about
CLI
Version 3.245.0
Go Version go1.26.4
Go Compiler gc
Plugins
KIND NAME VERSION
resource aws 7.32.0
resource aws-tags 3.0.0
resource command 1.2.1
resource docker-build 0.0.18
resource grafana 2.31.0
language python 3.245.0
Host
OS ubuntu
Version 24.04
Arch x86_64
This project is written in python: executable='/*****/.venv/bin/python' version='3.14.0' toolchain='Uv' toolchainVersion='0.11.3' typechecker='None'
Current Stack: *****
...
Backend
Name *****
URL s3://*****
User *****
Organizations
Token type personal
Dependencies:
NAME VERSION
pulumi 3.245.0
pulumi-aws 7.32.0
pulumi-aws-tags 3.0.0
pulumi-command 1.2.1
pulumi-docker-build 0.0.18
pulumiverse-grafana 2.31.0
tldextract 5.3.1
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
Describe what happened
Auto-naming doesn't work for RDS instance resource. When I omit the
identifierparameter in the constructor, it creates a DB instance with a random identifier based on the logical name even though I have this in myPulumi.yaml:Tried also enforcing the naming pattern but without success.
Moreover, changing the identifier in Pulumi program after the resource is created doesn't lead to its update -- the DB instance identifier stays the same.
Sample program
Log output
No response
Affected Resource(s)
No response
Output of
pulumi aboutAdditional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).