@studion/infra-code-blocks 0.1.6 → 0.1.7

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.
@@ -88,7 +88,7 @@ class Project extends pulumi.ComponentResource {
88
88
  createWebServerPrerequisites() {
89
89
  const stack = pulumi.getStack();
90
90
  this.cluster = new aws.ecs.Cluster(`${this.name}-cluster`, {
91
- name: `${stack}.${this.name}`,
91
+ name: `${this.name}-${stack}`,
92
92
  tags: constants_1.commonTags,
93
93
  }, { parent: this });
94
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: `${stack}.${argsWithDefaults.dbName}`,
19
+ databaseName: `${argsWithDefaults.dbName}-${stack}`,
20
20
  region: argsWithDefaults.region,
21
21
  eviction: true,
22
22
  tls: true,
@@ -225,7 +225,7 @@ class WebServer extends pulumi.ComponentResource {
225
225
  throw Error('Incorrect EcsService size argument');
226
226
  });
227
227
  const taskDefinition = new aws.ecs.TaskDefinition(`${this.name}-task-definition`, {
228
- family: `${stack}.${this.name}-task-definition`,
228
+ family: `${this.name}-task-definition-${stack}`,
229
229
  networkMode: 'awsvpc',
230
230
  executionRoleArn: taskExecutionRole.arn,
231
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.6",
3
+ "version": "0.1.7",
4
4
  "description": "Studion common infra components",
5
5
  "keywords": [
6
6
  "infrastructure",