Skip to main content

stack_events

Creates, updates, deletes, gets or lists a stack_events resource.

Overview

Namestack_events
TypeResource
Idaws.cloudformation.stack_events

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
client_request_tokenstringThe token passed to the operation that generated this event. All events triggered by a given stack operation are assigned the same client request token, which you can use to track operations. For example, if you execute a CreateStack operation with the token token1, then all the StackEvents generated by that operation will have ClientRequestToken set as token1. In the console, stack operations display the client request token on the Events tab. Stack operations that are initiated from the console use the token format Console-StackOperation-ID, which helps you easily identify the stack operation . For example, if you create a stack using the console, each stack event would be assigned the same token in the following format: Console-CreateStack-7f59c3cf-00d2-40c7-b2ff-e75db0987002.
detailed_statusstringAn optional field that contains information about the detailed status of the stack event. CONFIGURATION_COMPLETE - all of the resources in the stack have reached that event. For more information, see Understand CloudFormation stack creation events in the CloudFormation User Guide. VALIDATION_FAILED - template validation failed because of invalid properties in the template. The ResourceStatusReason field shows what properties are defined incorrectly.
event_idstringThe unique identifier of this event.
hook_failure_modestringSpecify the Hook failure mode for non-compliant resources in the followings ways. FAIL Stops provisioning resources. WARN Allows provisioning to continue with a warning message.
hook_invocation_idstringThe unique identifier of the Hook invocation.
hook_invocation_pointstringThe specific point in the provisioning process where the Hook is invoked.
hook_statusstringProvides the status of the change set Hook.
hook_status_reasonstringProvides the reason for the Hook status.
hook_typestringThe name of the Hook.
logical_resource_idstringThe logical name of the resource specified in the template.
operation_idstringThe unique identifier of the operation that generated this stack event.
physical_resource_idstringThe name or unique identifier associated with the physical instance of the resource.
resource_propertiesstringBLOB of the properties used to create the resource.
resource_statusstringCurrent status of the resource.
resource_status_reasonstringSuccess/failure message associated with the resource.
resource_typestringType of resource. For more information, see Amazon Web Services resource and property types reference in the CloudFormation User Guide.
stack_idstringThe unique ID name of the instance of the stack.
stack_namestringThe name associated with a stack.
timestampstringTime the status was updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_stack_eventsselectStackName, regionNextTokenReturns all stack related events for a specified stack in reverse chronological order. For more information about a stack's event history, see Understand CloudFormation stack creation events in the CloudFormation User Guide. You can list events for stacks that have failed to create or have been deleted by specifying the unique stack identifier (stack ID).

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
StackNamestringThe name or the unique stack ID that's associated with the stack, which aren't always interchangeable: Running stacks: You can specify either the stack's name or its unique stack ID. Deleted stacks: You must specify the unique stack ID.
regionstringAWS region (default: us-east-1)
NextTokenstringThe token for the next set of items to return. (You received this token from a previous call.)

SELECT examples

Returns all stack related events for a specified stack in reverse chronological order. For more information about a stack's event history, see Understand CloudFormation stack creation events in the CloudFormation User Guide. You can list events for stacks that have failed to create or have been deleted by specifying the unique stack identifier (stack ID).

SELECT
client_request_token,
detailed_status,
event_id,
hook_failure_mode,
hook_invocation_id,
hook_invocation_point,
hook_status,
hook_status_reason,
hook_type,
logical_resource_id,
operation_id,
physical_resource_id,
resource_properties,
resource_status,
resource_status_reason,
resource_type,
stack_id,
stack_name,
timestamp
FROM aws.cloudformation.stack_events
WHERE StackName = '{{ StackName }}' -- required
AND region = '{{ region }}' -- required
AND NextToken = '{{ NextToken }}'
;