Skip to content

Commit 1a0d076

Browse files
committed
feat(pulumi): expose rds cluster id
1 parent 19c4f95 commit 1a0d076

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

deployments/pulumi/pkg/storage/component_rds.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import (
1010
)
1111

1212
type RDSComponentArgs struct {
13-
CreateCluster *RDSClusterCreateArgs
14-
Database pulumix.Input[string]
13+
CreateCluster *RDSClusterCreateArgs
14+
Database pulumix.Input[string]
1515
}
1616

1717
type RDSDatabaseComponent struct {
@@ -131,6 +131,8 @@ func newRDSDatabaseComponent(ctx *pulumi.Context, args *RDSComponentArgs, opts .
131131
return nil, fmt.Errorf("creating RDS instance: %w", err)
132132
}
133133

134+
ctx.Export("rds-cluster-id", cmp.Cluster.ID())
135+
134136
if err := ctx.RegisterResourceOutputs(cmp, pulumi.Map{}); err != nil {
135137
return nil, fmt.Errorf("registering outputs: %w", err)
136138
}

0 commit comments

Comments
 (0)