@studion/infra-code-blocks 0.1.5 → 0.1.6

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.
@@ -86,8 +86,9 @@ class Project extends pulumi.ComponentResource {
86
86
  });
87
87
  }
88
88
  createWebServerPrerequisites() {
89
+ const stack = pulumi.getStack();
89
90
  this.cluster = new aws.ecs.Cluster(`${this.name}-cluster`, {
90
- name: this.name,
91
+ name: `${stack}.${this.name}`,
91
92
  tags: constants_1.commonTags,
92
93
  }, { parent: this });
93
94
  }
@@ -16,7 +16,7 @@ class Redis extends pulumi.ComponentResource {
16
16
  const stack = pulumi.getStack();
17
17
  const argsWithDefaults = Object.assign({}, defaults, args);
18
18
  this.instance = new upstash.RedisDatabase(name, {
19
- databaseName: argsWithDefaults.dbName,
19
+ databaseName: `${stack}.${argsWithDefaults.dbName}`,
20
20
  region: argsWithDefaults.region,
21
21
  eviction: true,
22
22
  tls: true,
@@ -155,6 +155,7 @@ class WebServer extends pulumi.ComponentResource {
155
155
  }
156
156
  createTaskDefinition(args) {
157
157
  const argsWithDefaults = Object.assign({}, defaults, args);
158
+ const stack = pulumi.getStack();
158
159
  const secretManagerSecretsInlinePolicy = {
159
160
  name: `${this.name}-secret-manager-access`,
160
161
  policy: JSON.stringify({
@@ -224,7 +225,7 @@ class WebServer extends pulumi.ComponentResource {
224
225
  throw Error('Incorrect EcsService size argument');
225
226
  });
226
227
  const taskDefinition = new aws.ecs.TaskDefinition(`${this.name}-task-definition`, {
227
- family: `${this.name}-task-definition`,
228
+ family: `${stack}.${this.name}-task-definition`,
228
229
  networkMode: 'awsvpc',
229
230
  executionRoleArn: taskExecutionRole.arn,
230
231
  taskRoleArn: taskRole.arn,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@studion/infra-code-blocks",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "Studion common infra components",
5
5
  "keywords": [
6
6
  "infrastructure",