@hiiretail/gcp-infra-cli 0.76.3 → 0.77.0

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.
@@ -200,7 +200,7 @@ module.exports = class extends BaseGenerator {
200
200
  });
201
201
  }
202
202
 
203
- const projectId = getProjectId(env);
203
+ let projectId = getProjectId(env);
204
204
  let oidcEmail = `${oidcName}@${projectId}.iam.gserviceaccount.com`;
205
205
  let pushEndpoint = '';
206
206
  if (env === 'prod' && pushOrPull === 'push') {
@@ -245,8 +245,8 @@ module.exports = class extends BaseGenerator {
245
245
  await handleSubscribers(env, this.answers, oidcEmail, pushEndpoint, `${subscriptionDirPath}/subscribers.yaml`, dlqTopic);
246
246
  }
247
247
  if (createResource === 'subscription' && externalSub === 'yes') {
248
- const externalDirPath = path.join(process.cwd(), 'infra', env, 'pubsub', existingTopic, clanName);
249
-
248
+ const externalDirPath = path.join(process.cwd(), 'infra', 'prod', 'pubsub', existingTopic, `${clanName}-${env}`);
249
+ projectId = getProjectId('prod');
250
250
  if (!fs.existsSync(externalDirPath)) {
251
251
  fs.mkdirSync(externalDirPath);
252
252
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hiiretail/gcp-infra-cli",
3
- "version": "0.76.3",
3
+ "version": "0.77.0",
4
4
  "description": "Infrastructure as code generator for GCP.",
5
5
  "main": "src/cli.js",
6
6
  "bin": {