Skip to content

aws.cloudformation.describe_stack_set_operation

Example SQL Queries

SELECT * FROM
aws.cloudformation.describe_stack_set_operation
WHERE
"stack_set_name" = 'VALUE'
AND "operation_id" = 'VALUE';

Description

Returns the description of the specified StackSet operation.

Table Definition

Column NameColumn Data Type
operation_id Required Input Column

The unique ID of the stack set operation.

VARCHAR
stack_set_name Required Input Column

The name or the unique stack ID of the stack set for the stack operation.

VARCHAR
call_as Input Column

[Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account.

By default, SELF is specified. Use SELF for stack sets with self-managed permissions.

  • If you are signed in to the management account, specify SELF.

  • If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN.

    Your Amazon Web Services account must be registered as a delegated administrator in the management account. For more information, see Register a delegated administrator in the CloudFormation User Guide.

VARCHAR
_aws_profile Input Column

The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role.

STRUCT(
"type" VARCHAR,
"name" VARCHAR,
"account_id" VARCHAR,
"via_profile_name" VARCHAR,
"assumed_role_arn" VARCHAR,
"organization" STRUCT(
"account_name" VARCHAR,
"id" VARCHAR,
"tags" STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[],
"master_account" STRUCT(
"id" VARCHAR,
"email" VARCHAR
),
"parents" STRUCT(
"type" VARCHAR,
"id" VARCHAR,
"name" VARCHAR,
"tags" STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[]
)[]
)
)
Show child fields
_aws_profile.account_id

The AWS account id

_aws_profile.assumed_role_arn

The ARN of the assumed role

_aws_profile.name

The unique name of the profile.

_aws_profile.organization

Information about this profile's membership in the AWS organization.

Show child fields
_aws_profile.organization.account_name

The name of account speciifed by the organization

_aws_profile.organization.id

The organization id

_aws_profile.organization.master_account
Show child fields
_aws_profile.organization.master_account.email

The organization master account email address

_aws_profile.organization.master_account.id

The organization master account id

_aws_profile.organization.parents[]
Show child fields
_aws_profile.organization.parents[].id

The id of the parent

_aws_profile.organization.parents[].name

The name of the parent

_aws_profile.organization.parents[].tags[]
Show child fields
_aws_profile.organization.parents[].tags[].key
_aws_profile.organization.parents[].tags[].value
_aws_profile.organization.parents[].type

The type of parent can be an organization unit or a root

_aws_profile.organization.tags[]
Show child fields
_aws_profile.organization.tags[].key
_aws_profile.organization.tags[].value
_aws_profile.type

The type of profile, either 'credentials' or 'assumed_role'

_aws_profile.via_profile_name

This IAM role for this profile is assumed by first utilizing another profile with this name to obtain credentials.

_aws_region Input Column

The AWS region to use.

VARCHAR
stack_set_operation

The specified stack set operation.

STRUCT(
"operation_id" VARCHAR,
"stack_set_id" VARCHAR,
"action" VARCHAR,
"status" VARCHAR,
"operation_preferences" STRUCT(
"region_concurrency_type" VARCHAR,
"region_order" VARCHAR[],
"failure_tolerance_count" BIGINT,
"failure_tolerance_percentage" BIGINT,
"max_concurrent_count" BIGINT,
"max_concurrent_percentage" BIGINT,
"concurrency_mode" VARCHAR
),
"retain_stacks" BOOLEAN,
"administration_role_arn" VARCHAR,
"execution_role_name" VARCHAR,
"creation_timestamp" TIMESTAMP_S,
"end_timestamp" TIMESTAMP_S,
"deployment_targets" STRUCT(
"accounts" VARCHAR[],
"accounts_url" VARCHAR,
"organizational_unit_ids" VARCHAR[],
"account_filter_type" VARCHAR
),
"stack_set_drift_detection_details" STRUCT(
"drift_status" VARCHAR,
"drift_detection_status" VARCHAR,
"last_drift_check_timestamp" TIMESTAMP_S,
"total_stack_instances_count" BIGINT,
"drifted_stack_instances_count" BIGINT,
"in_sync_stack_instances_count" BIGINT,
"in_progress_stack_instances_count" BIGINT,
"failed_stack_instances_count" BIGINT
),
"status_reason" VARCHAR,
"status_details" STRUCT(
"failed_stack_instances_count" BIGINT
)
)
Show child fields
stack_set_operation.action

The type of stack set operation: CREATE, UPDATE, or DELETE. Create and delete operations affect only the specified stack set instances that are associated with the specified stack set. Update operations affect both the stack set itself, in addition to all associated stack set instances.

stack_set_operation.administration_role_arn

The Amazon Resource Name (ARN) of the IAM role used to perform this stack set operation.

Use customized administrator roles to control which users or groups can manage specific stack sets within the same administrator account. For more information, see Define Permissions for Multiple Administrators in the CloudFormation User Guide.

stack_set_operation.creation_timestamp

The time at which the operation was initiated. Note that the creation times for the stack set operation might differ from the creation time of the individual stacks themselves. This is because CloudFormation needs to perform preparatory work for the operation, such as dispatching the work to the requested Regions, before actually creating the first stacks.

stack_set_operation.deployment_targets

[Service-managed permissions] The Organizations accounts affected by the stack operation.

Show child fields
stack_set_operation.deployment_targets.account_filter_type

Limit deployment targets to individual accounts or include additional accounts with provided OUs.

The following is a list of possible values for the AccountFilterType operation.

  • INTERSECTION: StackSets deploys to the accounts specified in Accounts parameter.

  • DIFFERENCE: StackSets excludes the accounts specified in Accounts parameter. This enables user to avoid certain accounts within an OU such as suspended accounts.

  • UNION: StackSets includes additional accounts deployment targets.

    This is the default value if AccountFilterType is not provided. This enables user to update an entire OU and individual accounts from a different OU in one request, which used to be two separate requests.

  • NONE: Deploys to all the accounts in specified organizational units (OU).

stack_set_operation.deployment_targets.accounts[]
stack_set_operation.deployment_targets.accounts_url

Returns the value of the AccountsUrl property.

stack_set_operation.deployment_targets.organizational_unit_ids[]
stack_set_operation.end_timestamp

The time at which the stack set operation ended, across all accounts and Regions specified. Note that this doesn't necessarily mean that the stack set operation was successful, or even attempted, in each account or Region.

stack_set_operation.execution_role_name

The name of the IAM execution role used to create or update the stack set.

Use customized execution roles to control which stack resources users and groups can include in their stack sets.

stack_set_operation.operation_id

The unique ID of a stack set operation.

stack_set_operation.operation_preferences

The preferences for how CloudFormation performs this stack set operation.

Show child fields
stack_set_operation.operation_preferences.concurrency_mode

Specifies how the concurrency level behaves during the operation execution.

  • STRICT_FAILURE_TOLERANCE: This option dynamically lowers the concurrency level to ensure the number of failed accounts never exceeds the value of FailureToleranceCount +1. The initial actual concurrency is set to the lower of either the value of the MaxConcurrentCount, or the value of FailureToleranceCount +1. The actual concurrency is then reduced proportionally by the number of failures. This is the default behavior.

    If failure tolerance or Maximum concurrent accounts are set to percentages, the behavior is similar.

  • SOFT_FAILURE_TOLERANCE: This option decouples FailureToleranceCount from the actual concurrency. This allows stack set operations to run at the concurrency level set by the MaxConcurrentCount value, or MaxConcurrentPercentage, regardless of the number of failures.

stack_set_operation.operation_preferences.failure_tolerance_count

The number of accounts, per Region, for which this operation can fail before CloudFormation stops the operation in that Region. If the operation is stopped in a Region, CloudFormation doesn't attempt the operation in any subsequent Regions.

Conditional: You must specify either FailureToleranceCount or FailureTolerancePercentage (but not both).

By default, 0 is specified.

stack_set_operation.operation_preferences.failure_tolerance_percentage

The percentage of accounts, per Region, for which this stack operation can fail before CloudFormation stops the operation in that Region. If the operation is stopped in a Region, CloudFormation doesn't attempt the operation in any subsequent Regions.

When calculating the number of accounts based on the specified percentage, CloudFormation rounds down to the next whole number.

Conditional: You must specify either FailureToleranceCount or FailureTolerancePercentage, but not both.

By default, 0 is specified.

stack_set_operation.operation_preferences.max_concurrent_count

The maximum number of accounts in which to perform this operation at one time. This can depend on the value of FailureToleranceCount depending on your ConcurrencyMode. MaxConcurrentCount is at most one more than the FailureToleranceCount if you're using STRICT_FAILURE_TOLERANCE.

Note that this setting lets you specify the maximum for operations. For large deployments, under certain circumstances the actual number of accounts acted upon concurrently may be lower due to service throttling.

Conditional: You must specify either MaxConcurrentCount or MaxConcurrentPercentage, but not both.

By default, 1 is specified.

stack_set_operation.operation_preferences.max_concurrent_percentage

The maximum percentage of accounts in which to perform this operation at one time.

When calculating the number of accounts based on the specified percentage, CloudFormation rounds down to the next whole number. This is true except in cases where rounding down would result is zero. In this case, CloudFormation sets the number as one instead.

Note that this setting lets you specify the maximum for operations. For large deployments, under certain circumstances the actual number of accounts acted upon concurrently may be lower due to service throttling.

Conditional: You must specify either MaxConcurrentCount or MaxConcurrentPercentage, but not both.

By default, 1 is specified.

stack_set_operation.operation_preferences.region_concurrency_type

The concurrency type of deploying StackSets operations in Regions, could be in parallel or one Region at a time.

stack_set_operation.operation_preferences.region_order[]
stack_set_operation.retain_stacks

For stack set operations of action type DELETE, specifies whether to remove the stack instances from the specified stack set, but doesn't delete the stacks. You can't re-associate a retained stack, or add an existing, saved stack to a new stack set.

stack_set_operation.stack_set_drift_detection_details

Detailed information about the drift status of the stack set. This includes information about drift operations currently being performed on the stack set.

This information will only be present for stack set operations whose Action type is DETECT_DRIFT.

For more information, see Detecting Unmanaged Changes in Stack Sets in the CloudFormation User Guide.

Show child fields
stack_set_operation.stack_set_drift_detection_details.drift_detection_status

The status of the stack set drift detection operation.

  • COMPLETED: The drift detection operation completed without failing on any stack instances.

  • FAILED: The drift detection operation exceeded the specified failure tolerance.

  • PARTIAL_SUCCESS: The drift detection operation completed without exceeding the failure tolerance for the operation.

  • IN_PROGRESS: The drift detection operation is currently being performed.

  • STOPPED: The user has canceled the drift detection operation.

stack_set_operation.stack_set_drift_detection_details.drift_status

Status of the stack set's actual configuration compared to its expected template and parameter configuration. A stack set is considered to have drifted if one or more of its stack instances have drifted from their expected template and parameter configuration.

  • DRIFTED: One or more of the stack instances belonging to the stack set stack differs from the expected template and parameter configuration. A stack instance is considered to have drifted if one or more of the resources in the associated stack have drifted.

  • NOT_CHECKED: CloudFormation hasn't checked the stack set for drift.

  • IN_SYNC: All of the stack instances belonging to the stack set stack match from the expected template and parameter configuration.

stack_set_operation.stack_set_drift_detection_details.drifted_stack_instances_count

The number of stack instances that have drifted from the expected template and parameter configuration of the stack set. A stack instance is considered to have drifted if one or more of the resources in the associated stack don't match their expected configuration.

stack_set_operation.stack_set_drift_detection_details.failed_stack_instances_count

The number of stack instances for which the drift detection operation failed.

stack_set_operation.stack_set_drift_detection_details.in_progress_stack_instances_count

The number of stack instances that are currently being checked for drift.

stack_set_operation.stack_set_drift_detection_details.in_sync_stack_instances_count

The number of stack instances which match the expected template and parameter configuration of the stack set.

stack_set_operation.stack_set_drift_detection_details.last_drift_check_timestamp

Most recent time when CloudFormation performed a drift detection operation on the stack set. This value will be NULL for any stack set on which drift detection hasn't yet been performed.

stack_set_operation.stack_set_drift_detection_details.total_stack_instances_count

The total number of stack instances belonging to this stack set.

The total number of stack instances is equal to the total of:

  • Stack instances that match the stack set configuration.

  • Stack instances that have drifted from the stack set configuration.

  • Stack instances where the drift detection operation has failed.

  • Stack instances currently being checked for drift.

stack_set_operation.stack_set_id

The ID of the stack set.

stack_set_operation.status

The status of the operation.

  • FAILED: The operation exceeded the specified failure tolerance. The failure tolerance value that you've set for an operation is applied for each Region during stack create and update operations. If the number of failed stacks within a Region exceeds the failure tolerance, the status of the operation in the Region is set to FAILED. This in turn sets the status of the operation as a whole to FAILED, and CloudFormation cancels the operation in any remaining Regions.

  • QUEUED: [Service-managed permissions] For automatic deployments that require a sequence of operations, the operation is queued to be performed. For more information, see the stack set operation status codes in the CloudFormation User Guide.

  • RUNNING: The operation is currently being performed.

  • STOPPED: The user has canceled the operation.

  • STOPPING: The operation is in the process of stopping, at user request.

  • SUCCEEDED: The operation completed creating or updating all the specified stacks without exceeding the failure tolerance for the operation.

stack_set_operation.status_details

Detailed information about the StackSet operation.

Show child fields
stack_set_operation.status_details.failed_stack_instances_count

The number of stack instances for which the StackSet operation failed.

stack_set_operation.status_reason

The status of the operation in details.