From 194a9aaea51d45f6bb2bef0d6c5f39e3d23ddd9a Mon Sep 17 00:00:00 2001 From: larisa17 <42570262+larisa17@users.noreply.github.com> Date: Thu, 19 Sep 2024 22:10:50 +0300 Subject: [PATCH] update tags (#83) * update tags * update default tags * update default tags --- infra/aws/index.ts | 9 +-------- infra/aws/tags.ts | 13 +++++++++++++ 2 files changed, 14 insertions(+), 8 deletions(-) create mode 100644 infra/aws/tags.ts diff --git a/infra/aws/index.ts b/infra/aws/index.ts index cc10eb1..d8538dc 100644 --- a/infra/aws/index.ts +++ b/infra/aws/index.ts @@ -1,15 +1,8 @@ import * as pulumi from "@pulumi/pulumi"; import * as op from "@1password/op-js"; +import { stack, defaultTags } from "./tags"; import { secretsManager, amplify } from "infra-libs"; -const stack = pulumi.getStack(); - -const defaultTags = { - ManagedBy: "pulumi", - PulumiStack: stack, - Project: "id-staking-v2", -}; - const PASSPORT_APP_GITHUB_URL = op.read.parse(`op://DevOps/passport-${stack}-env/ci-staking/STAKING_APP_GITHUB_URL`); const PASSPORT_APP_GITHUB_ACCESS_TOKEN_FOR_AMPLIFY = op.read.parse( `op://DevOps/passport-xyz-${stack}-secrets/ci-staking/STAKING_APP_GITHUB_ACCESS_TOKEN_FOR_AMPLIFY` diff --git a/infra/aws/tags.ts b/infra/aws/tags.ts new file mode 100644 index 0000000..d6b0e66 --- /dev/null +++ b/infra/aws/tags.ts @@ -0,0 +1,13 @@ + +import * as pulumi from "@pulumi/pulumi"; + +export const stack = pulumi.getStack(); + +export const defaultTags = { + Application: "id-staking-v2", + Repo: "https://github.com/passportxyz/id-staking-v2-app", + PulumiStack: stack, + Environment: stack, + ManagedBy: "pulumi", + Name: "missing", +};