pulumi-aws
pulumi-aws copied to clipboard
AWS RDS Cluster has undefined outputs
What happened?
The outputs of the RDS cluster instance are undefined, even though the typescript declarations mark them as defined string outputs:
- https://github.com/pulumi/pulumi-aws/blob/58cb20764dbd721d91c53cd932b4f495de0aefa5/sdk/nodejs/rds/cluster.ts#L251
- https://github.com/pulumi/pulumi-aws/blob/58cb20764dbd721d91c53cd932b4f495de0aefa5/sdk/nodejs/rds/cluster.ts#L339
Steps to reproduce
const masterUsername = "TestUser";
const cluster = new aws.rds.Cluster(
"mycluster",
{
clusterIdentifier,
backupRetentionPeriod,
skipFinalSnapshot: true,
engine: "aurora-postgresql",
engineMode: "provisioned",
engineVersion: dbEngineVersion,
masterUsername,
masterPassword: this.masterPassword.result,
port,
storageEncrypted: true
},
{
deleteBeforeReplace: true,
}
);
pulumi.interpolate`Your database name is '${cluster.databaseName}' and your master user is '${cluster.masterUsername}'`.apply(msg => console.log(msg));
Expected Behavior
Outputs in log:
Your database name is 'postgres' and your master user is 'TestUser'
Actual Behavior
Outputs in log with undefined values:
Your database name is 'undefined' and your master user is 'undefined'
Output of pulumi about
CLI
Version 3.38.0
Go Version go1.19
Go Compiler gc
Plugins NAME VERSION nodejs unknown
Host
OS darwin
Version 12.5
Arch arm64
This project is written in nodejs: executable='/Users/gsuess/.nvm/versions/node/v18.7.0/bin/node' version='v18.7.0'
Additional context
This is a trivial bug, so I did not try to isolate it, but let me know if you have trouble reproducing this. I can then then isolating the issue.
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).
Hey @gsuess
I will have a look at the upstream provider and see what I can find - it could be due to the fact that the TF resource is used for many different scenarios :/
Paul