@hiiretail/gcp-infra-cli 0.82.2 → 0.82.3

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.
@@ -1,5 +1,5 @@
1
1
  terraform {
2
- source = "git::https://github.com/extenda/tf-module-gcp-project//?ref=v1.0.8"
2
+ source = "git::https://github.com/extenda/tf-module-gcp-project//?ref=v1.1.0"
3
3
  }
4
4
 
5
5
  dependency "parent_folder" {
@@ -170,7 +170,7 @@ module.exports = class extends BaseGenerator {
170
170
  externalSub,
171
171
  } = this.answers;
172
172
 
173
- const dlqTopicName = `${getProjectId('prod').split('-')[0]}-common-dlq`;
173
+ const dlqTopicName = `dlq.${getProjectId('prod').split('-')[0]}.common`;
174
174
  let dlqTopic = `projects/${getProjectId('prod')}/topics/${dlqTopicName}`;
175
175
 
176
176
  const dlqTopicDirPath = path.join(process.cwd(), 'infra', 'prod', 'pubsub', dlqTopicName);
@@ -18,16 +18,17 @@ locals {
18
18
  inputs = merge (
19
19
  local.project_vars.locals,
20
20
  {
21
- topic = "${local.common_vars.locals.clan_name}-common-dlq"
21
+ topic = "dlq.${local.common_vars.locals.clan_name}.common"
22
22
  create_subscriptions = true
23
23
  create_topic = true
24
24
  push_subscriptions = [
25
25
  {
26
- name = "dlq-message-handler-subscription",
26
+ name = "dlq.${local.common_vars.locals.clan_name}.common+dlq.message-handler",
27
27
  push_endpoint = "https://europe-west1-sre-prod-5462.cloudfunctions.net/dlq-message-handler",
28
28
  audience = "https://europe-west1-sre-prod-5462.cloudfunctions.net/dlq-message-handler",
29
29
  expiration_policy = "",
30
30
  oidc_service_account_email = "pubsub-dlq-handler@${local.project_vars.locals.project_id}.iam.gserviceaccount.com",
31
+ filter = "attributes.Consumer = \"dlq.${local.common_vars.locals.clan_name}.common+dlq.message-handler OR NOT attributes:Consumer\"",
31
32
  },
32
33
  ],
33
34
  topic_labels = {
@@ -1,5 +1,5 @@
1
1
  terraform {
2
- source = "git::https://github.com/extenda/tf-module-gcp-project//?ref=v1.0.8"
2
+ source = "git::https://github.com/extenda/tf-module-gcp-project//?ref=v1.1.0"
3
3
  }
4
4
 
5
5
  dependency "tribe_folder" {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hiiretail/gcp-infra-cli",
3
- "version": "0.82.2",
3
+ "version": "0.82.3",
4
4
  "description": "Infrastructure as code generator for GCP.",
5
5
  "main": "src/cli.js",
6
6
  "bin": {