Skip to content

Instantly share code, notes, and snippets.

@cmaster11
Created April 18, 2024 05:52
Show Gist options
  • Save cmaster11/1c2fb81e4ed699d75d7fb48eca062552 to your computer and use it in GitHub Desktop.
Save cmaster11/1c2fb81e4ed699d75d7fb48eca062552 to your computer and use it in GitHub Desktop.
Markdium-CDK: Force-tagging stacks with a repository name
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