From 11a548a1b5826555bd6e2ea945234e1997c8bcb4 Mon Sep 17 00:00:00 2001 From: Andrew Hammond <445764+ahammond@users.noreply.github.com> Date: Mon, 27 May 2024 16:19:07 -0700 Subject: [PATCH] chore(doc): usStaging for cdk-diff --- docs/cdk-diff/README.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/docs/cdk-diff/README.md b/docs/cdk-diff/README.md index f85c9c2c..31c8f3f7 100644 --- a/docs/cdk-diff/README.md +++ b/docs/cdk-diff/README.md @@ -28,21 +28,19 @@ Details follow. + oidcRoleArn: `arn:aws:iam::${core.Environment.usQa.account}:role/${name}-github-actions-role`, + labelToApplyWhenNoDiffPresent: 'no-changes-qa', + stackSearchString: 'Qa', - roleDuration: 1800, // Set this value to a desired value only if the diff workflow is expected to take longer than 900 seconds. + }, + { + name: 'staging', -+ oidcRoleArn: `arn:aws:iam::${core.Environment.globalStaging.account}:role/${name}-github-actions-role`, ++ oidcRoleArn: `arn:aws:iam::${core.Environment.usStaging.account}:role/${name}-github-actions-role`, + labelToApplyWhenNoDiffPresent: 'no-changes-staging', -+ stackSearchString: 'Staging', - roleDuration: 1800, // Set this value to a desired value only if the diff workflow is expected to take longer than 900 seconds. ++ stackSearchString: 'UsStaging', + }, + { + name: 'prod', + oidcRoleArn: `arn:aws:iam::${core.Environment.globalProd.account}:role/${name}-github-actions-role`, + labelToApplyWhenNoDiffPresent: 'no-changes-prod', + stackSearchString: 'Prod', - roleDuration: 1800, // Set this value to a desired value only if the diff workflow is expected to take longer than 900 seconds. ++ roleDuration: 1800, // Set this value to a desired value only if the diff workflow is expected to take longer than 900 seconds. + }, + ], + createOidcRoleStack: true, @@ -63,7 +61,7 @@ This is to make sure you OIDC stages don't conflict with your service. }); + const oidcPermissions = githubPipeline.addWave('OIDC-GitHub-Actions-Permissions'); -+ [core.Environment.usQa, core.Environment.globalProd].forEach((factory) => { ++ [core.Environment.usQa, core.Environment.usStaging, core.Environment.globalProd].forEach((factory) => { + const namedEnv = factory('us-east-1'); + const stageId = cdkPipeline.getUniqueStageIdentifier(namedEnv).addPrefix(['oidc']); + oidcPermissions.addStage(