def tag()

in lib/tagging.py [0:0]


def tag(stack, target_environment: str):
    """
    Adds a tag to all constructs in the stack

    @param stack: The stack to tag
    @param target_environment: The environment the stack is deployed to
    """
    cdk.Tags.of(stack).add(*get_tag(COST_CENTER, target_environment))
    cdk.Tags.of(stack).add(*get_tag(TAG_ENVIRONMENT, target_environment))
    cdk.Tags.of(stack).add(*get_tag(TEAM, target_environment))
    cdk.Tags.of(stack).add(*get_tag(APPLICATION, target_environment))