@studion/infra-code-blocks 0.6.0 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -59,11 +59,11 @@ export type EcsServiceArgs = {
|
|
|
59
59
|
* please use the `secrets` property.
|
|
60
60
|
* Defaults to [].
|
|
61
61
|
*/
|
|
62
|
-
environment?: aws.ecs.KeyValuePair[]
|
|
62
|
+
environment?: pulumi.Input<aws.ecs.KeyValuePair[]>;
|
|
63
63
|
/**
|
|
64
64
|
* The secrets to pass to the container. Defaults to [].
|
|
65
65
|
*/
|
|
66
|
-
secrets?: aws.ecs.Secret[]
|
|
66
|
+
secrets?: pulumi.Input<aws.ecs.Secret[]>;
|
|
67
67
|
/**
|
|
68
68
|
* Enable service auto discovery and assign DNS record to service.
|
|
69
69
|
* Defaults to false.
|
|
@@ -26,8 +26,9 @@ export type MongoArgs = Pick<EcsServiceArgs, 'size' | 'clusterId' | 'clusterName
|
|
|
26
26
|
persistentStorageVolumePath?: pulumi.Input<string>;
|
|
27
27
|
};
|
|
28
28
|
export declare class Mongo extends pulumi.ComponentResource {
|
|
29
|
-
name: string;
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
readonly name: string;
|
|
30
|
+
readonly username: pulumi.Output<string>;
|
|
31
|
+
readonly service: EcsService;
|
|
32
|
+
readonly password: Password;
|
|
32
33
|
constructor(name: string, args: MongoArgs, opts?: pulumi.ComponentResourceOptions);
|
|
33
34
|
}
|
package/dist/components/mongo.js
CHANGED
|
@@ -24,6 +24,7 @@ class Mongo extends pulumi.ComponentResource {
|
|
|
24
24
|
const persistentStorageVolumePath = args.persistentStorageVolumePath || '/data/db';
|
|
25
25
|
const { username, password, privateSubnetIds } = args, ecsServiceArgs = __rest(args, ["username", "password", "privateSubnetIds"]);
|
|
26
26
|
this.name = name;
|
|
27
|
+
this.username = pulumi.output(username);
|
|
27
28
|
this.password = new password_1.Password(`${this.name}-mongo-password`, { value: password }, { parent: this });
|
|
28
29
|
this.service = new ecs_service_1.EcsService(name, Object.assign(Object.assign({}, ecsServiceArgs), { port,
|
|
29
30
|
image, desiredCount: 1, autoscaling: { enabled: false }, enableServiceAutoDiscovery: true, persistentStorageVolumePath, dockerCommand: ['mongod', '--port', port.toString()], assignPublicIp: false, subnetIds: privateSubnetIds, environment: [
|