Skip to content

Commit b557a9d

Browse files
committed
Add mongo host and port to the instance properties
1 parent 359e202 commit b557a9d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/mongo.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ export type MongoArgs = Pick<
3333
export class Mongo extends pulumi.ComponentResource {
3434
readonly name: string;
3535
readonly username: pulumi.Output<string>;
36+
readonly port: pulumi.Output<number>;
37+
readonly host: pulumi.Output<string>;
3638
readonly service: EcsService;
3739
readonly password: Password;
3840

@@ -53,7 +55,9 @@ export class Mongo extends pulumi.ComponentResource {
5355
const { username, password, privateSubnetIds, ...ecsServiceArgs } = args;
5456

5557
this.name = name;
58+
this.host = pulumi.output(`${name}.${name}`);
5659
this.username = pulumi.output(username);
60+
this.port = pulumi.output(port);
5761

5862
this.password = new Password(
5963
`${this.name}-mongo-password`,

0 commit comments

Comments
 (0)