Header menu logo FsCDK

Tags Module

Global tagging helpers for consistent resource tagging across stacks. **Rationale:** - Tags enable cost allocation and resource organization - Consistent tagging simplifies governance and compliance - Tags help with automation and resource discovery - Standard tags improve operational visibility **Best Practices:** - Apply tags at stack level for inheritance - Use consistent tag names across organization - Include: project, environment, owner, cost-center - Avoid PII or sensitive data in tags

Types

Type Description

StandardTags

Standard tag set for FsCDK resources

Functions and values

Function or value Description

applyCustomTags construct tags

Full Usage: applyCustomTags construct tags

Parameters:
    construct : IConstruct
    tags : (string * string) list

Applies custom tags to a construct

construct : IConstruct
tags : (string * string) list

applyStandardTags construct tags

Full Usage: applyStandardTags construct tags

Parameters:

Applies standard tags to a construct (stack or resource)

construct : IConstruct
tags : StandardTags

createTags project environment owner

Full Usage: createTags project environment owner

Parameters:
    project : string
    environment : string
    owner : string option

Returns: StandardTags

Creates standard tags from environment and project info

project : string
environment : string
owner : string option
Returns: StandardTags

defaultTags

Full Usage: defaultTags

Returns: StandardTags

Default tags applied to all FsCDK resources

Returns: StandardTags

removeStandardTags construct

Full Usage: removeStandardTags construct

Parameters:

Removes all FsCDK standard tags from a construct

construct : IConstruct

removeTag construct key

Full Usage: removeTag construct key

Parameters:

Removes a tag from a construct

construct : IConstruct
key : string

tagStack stack project environment owner

Full Usage: tagStack stack project environment owner

Parameters:
    stack : Stack
    project : string
    environment : string
    owner : string option

Applies tags to a stack with standard conventions

stack : Stack
project : string
environment : string
owner : string option

Type something to start searching.