AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::SSMQuickSetup::LifecycleAutomation

CfnLifecycleAutomation

Creates a lifecycle automation resource that executes SSM Automation documents during CloudFormation stack operations. This resource replaces inline AWS Lambda custom resources and provides a managed way to handle lifecycle events in Quick Setup configurations.

Import

import { CfnLifecycleAutomation } from 'aws-cdk-lib/aws-ssmquicksetup';

Or use the module namespace:

import * as ssmquicksetup from 'aws-cdk-lib/aws-ssmquicksetup';
// ssmquicksetup.CfnLifecycleAutomation

Properties

Configuration passed to the constructor as CfnLifecycleAutomationProps.

automationDocumentRequired
string

The name of the SSM Automation document to execute in response to CloudFormation lifecycle events (CREATE, UPDATE, DELETE).

automationParametersRequired
IResolvable | { [key: string]: string[] }

A map of key-value parameters passed to the Automation document during execution. Each parameter name maps to a list of values, even for single values. Parameters can include configuration-specific values for your automation workflow.

resourceKeyRequired
string

A unique identifier used for generating the SSM Association name. This ensures uniqueness when multiple lifecycle automation resources exist in the same stack.

tagsOptional
{ [key: string]: string }

Tags applied to the underlying SSM Association created by this resource. Tags help identify and organize automation executions.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

LevelL1 (CloudFormation)
Moduleaws-ssmquicksetup
CFN TypeAWS::SSMQuickSetup::LifecycleAutomation
Properties4

Related Constructs

External Links