Created
April 18, 2024 05:52
-
-
Save cmaster11/1c2fb81e4ed699d75d7fb48eca062552 to your computer and use it in GitHub Desktop.
Markdium-CDK: Force-tagging stacks with a repository name
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as cdk from 'aws-cdk-lib'; | |
import { KiwiStack } from '../lib/stack'; | |
import { getSynthesizer } from '../lib/synthesizer'; | |
const app = new cdk.App(); | |
async function main() { | |
new KiwiStack(app, 'MyStack', { | |
// Use the current environment variables to figure out which account | |
// and region we want to deploy to | |
env: { | |
account: process.env.CDK_DEFAULT_ACCOUNT, | |
region: process.env.CDK_DEFAULT_REGION | |
}, | |
// Use our custom tagging synthesizer | |
synthesizer: await getSynthesizer() | |
}); | |
} | |
void main(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment