簡體   English   中英

AWS CloudFormation create-stack 命令導致未創建堆棧

[英]AWS CloudFormation create-stack command results in no stack created

我正在嘗試通過運行以下命令創建新的 AWS CodeBuild 堆棧:

aws cloudformation create-stack --stack-name codebuild-stack-1229a --disable-rollback --template-body file://codebuild.yml \
  --parameters \
    ParameterKey=DeploymentNamePrefix,ParameterValue=stack-1229a \
    ParameterKey=SourceBranch,ParameterValue=dev \
  --capabilities CAPABILITY_AUTO_EXPAND CAPABILITY_NAMED_IAM

命令返回:

{
    "StackId": "arn:aws-us-gov:cloudformation:us-gov-west-1:xxxxxxxxxxxx:stack/codebuild-stack-1229b/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx"
}

我將--debug開關添加到導致此 output 的命令(最后幾行):

2021-12-29 12:08:23,512 - MainThread - botocore.endpoint - DEBUG - Sending http request: <AWSPreparedRequest stream_output=False, method=POST, url=https://cloudformation.us-gov-west-1.amazonaws.com/, headers={'Content-Type': b'application/x-www-form-urlencoded; charset=utf-8', 'User-Agent': b'aws-cli/2.4.7 Python/3.8.8 Darwin/20.6.0 exe/x86_64 prompt/off command/cloudformation.create-stack', 'X-Amz-Date': b'20211229T180823Z', 'Authorization': b'AWS4-HMAC-SHA256 Credential=xxxxxxxxxxxx/20211229/us-gov-west-1/cloudformation/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=xxxxxxxxxxxx', 'Content-Length': '3850'}>
2021-12-29 12:08:23,512 - MainThread - botocore.httpsession - DEBUG - Certificate path: /usr/local/aws-cli/awscli/botocore/cacert.pem
2021-12-29 12:08:23,513 - MainThread - urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): cloudformation.us-gov-west-1.amazonaws.com:443
2021-12-29 12:08:24,200 - MainThread - urllib3.connectionpool - DEBUG - https://cloudformation.us-gov-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 402
2021-12-29 12:08:24,200 - MainThread - botocore.parsers - DEBUG - Response headers: {'x-amzn-RequestId': 'xxxxxxxx-xxxx-xxxx-xxxxx-xxxxxxxxxxxx', 'Content-Type': 'text/xml', 'Content-Length': '402', 'Date': 'Wed, 29 Dec 2021 18:08:23 GMT'}
2021-12-29 12:08:24,200 - MainThread - botocore.parsers - DEBUG - Response body:
b'<CreateStackResponse xmlns="http://cloudformation.amazonaws.com/doc/2010-05-15/">\n  <CreateStackResult>\n    <StackId>arn:aws-us-gov:cloudformation:us-gov-west-1:xxxxxxxxxxxx:stack/codebuild-stack-1229b/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx</StackId>\n  </CreateStackResult>\n  <ResponseMetadata>\n    <RequestId>xxxxxxxx-xxxx-xxxx-xxxxx-xxxxxxxxxxxx</RequestId>\n  </ResponseMetadata>\n</CreateStackResponse>\n'
2021-12-29 12:08:24,201 - MainThread - botocore.hooks - DEBUG - Event needs-retry.cloudformation.CreateStack: calling handler <bound method RetryHandler.needs_retry of <botocore.retries.standard.RetryHandler object at 0x7fe950eff9d0>>
2021-12-29 12:08:24,201 - MainThread - botocore.retries.standard - DEBUG - Not retrying request.
2021-12-29 12:08:24,201 - MainThread - botocore.hooks - DEBUG - Event after-call.cloudformation.CreateStack: calling handler <bound method RetryQuotaChecker.release_retry_quota of <botocore.retries.standard.RetryQuotaChecker object at 0x7fe950eff610>>
2021-12-29 12:08:24,201 - MainThread - awscli.formatter - DEBUG - RequestId: xxxxxxxx-xxxx-xxxx-xxxxx-xxxxxxxxxxxx
{
   "StackId": "arn:aws-us-gov:cloudformation:us-gov-west-1:xxxxxxxxxxxx:stack/codebuild-stack-1229b/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

我沒有看到任何錯誤或警告。 AWS CodeBuild 控制台不顯示該命令應該創建的構建項目。

我在哪里檢查是否有任何故障? 任何建議表示贊賞。

確保您位於正確的區域 - 在 CLI 和 web 控制台中。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM