CmdID / aws / aws cloudformation
aws cloudformation describe-stack-instance
Returns the stack instance that's associated with the specified StackSet, Amazon Web Services account, and Amazon Web Services Region. AWS CLI reference
1 example 4 options Its page in the AWS CLI reference
Examples
To describe a stack instance
The following describe-stack-instance example describes an instance of the specified stack set in the specified account and Region. The stack set is in the current region and account, and the instance is in the us-west-2 region in account 123456789012.
aws cloudformation describe-stack-instance --stack-set-name my-stack-set --stack-instance-account 123456789012 --stack-instance-region us-west-2Identify--stack-set-nameThe name or the unique stack ID of the StackSet that you want to get stack instance information for.--stack-instance-accountThe ID of an Amazon Web Services account that's associated with this stack instance.--stack-instance-regionThe name of a Region that's associated with this stack instance.Its output
{
"StackInstance": {
"StackSetId": "enable-config:a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
"Region": "us-west-2",
"Account": "123456789012",
"StackId": "arn:aws:cloudformation:us-west-2:123456789012:stack/StackSet-enable-config-e6cac20f-xmpl-46e9-8314-53e0d4591532/a1b2c3d4-5678-90ab-cdef-EXAMPLE22222",
"ParameterOverrides": [],
"Status": "OUTDATED",
"StatusReason": "ResourceLogicalId:ConfigBucket, ResourceType:AWS::S3::Bucket, ResourceStatusReason:You have attempted to create more buckets than allowed (Service: Amazon S3; Status Code: 400; Error Code: TooManyBuckets; Request ID: F7F21CXMPL580224; S3 Extended Request ID: egd/Fdt89BXMPLyiqbMNljVk55Yqqvi3NYW2nKLUVWhUGEhNfCmZdyj967lhriaG/dWMobSO40o=)."
}
}For more information, see StackSets concepts in the AWS CloudFormation User Guide.
Options
--call-as[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.--stack-instance-accountThe ID of an Amazon Web Services account that's associated with this stack instance.--stack-instance-regionThe name of a Region that's associated with this stack instance.--stack-set-nameThe name or the unique stack ID of the StackSet that you want to get stack instance information for.