Doc AWS SDK 예제 GitHub 리포지토리에서 더 많은 SDK 예제를 사용할 수 있습니다. AWS
기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.
AWS SDK 또는 CLI와 DescribeStacks
함께 사용
다음 코드 예제는 DescribeStacks
의 사용 방법을 보여 줍니다.
- AWS CLI
-
AWS CloudFormation 스택 설명
다음
describe-stacks
명령에서는myteststack
스택에 대한 요약 정보를 보여줍니다.aws cloudformation describe-stacks --stack-name
myteststack
출력:
{ "Stacks": [ { "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/myteststack/466df9e0-0dff-08e3-8e2f-5088487c4896", "Description": "AWS CloudFormation Sample Template S3_Bucket: Sample template showing how to create a publicly accessible S3 bucket. **WARNING** This template creates an S3 bucket. You will be billed for the AWS resources used if you create a stack from this template.", "Tags": [], "Outputs": [ { "Description": "Name of S3 bucket to hold website content", "OutputKey": "BucketName", "OutputValue": "myteststack-s3bucket-jssofi1zie2w" } ], "StackStatusReason": null, "CreationTime": "2013-08-23T01:02:15.422Z", "Capabilities": [], "StackName": "myteststack", "StackStatus": "CREATE_COMPLETE", "DisableRollback": false } ] }
자세한 내용을 알아보려면 AWS CloudFormation 사용 설명서의 스택을 참조하세요.
-
API 세부 정보는 AWS CLI 명령 참조의 DescribeStacks
를 참조하세요.
-