web-dev-qa-db-ja.com

SAMデプロイメントに失敗しましたエラー-ウェイターStackCreateCompleteが失敗しました:ウェイターがターミナルエラー状態になりました

SAMにパッケージを展開しようとすると、クラウド形成コンソールで最初のステータスがROLLBACK_IN_PROGRESSになり、その後ROLLBACK_COMPLETEに変更されます。

スタックを削除して再試行してみましたが、毎回同じ問題が発生します。端末のエラーは次のようになります-

Sourcing local options from ./SAMToolkit.devenv
SAM_PARAM_PKG environment variable not set
SAMToolkit will operate in legacy mode.
Please set SAM_PARAM_PKG in your .devenv file to run modern packaging.
Run 'sam help package' for more information
Runtime: Java
Attempting to assume role from AWS Identity Broker using account 634668058279
Assumed role from AWS Identity Broker successfully.
Deploying stack sam-dev* from template: /home/***/1.0/runtime/sam/template.yml
sam-additional-artifacts-url.txt was not found, which is fine if there is no additional artifacts uploaded
Replacing BATS::SAM placeholders in template...
Uploading template build/private/tmp/sam-toolkit.yml to s3://***/sam-toolkit.yml
make_bucket failed: s3://sam-dev* An error occurred (BucketAlreadyOwnedByYou) when calling the CreateBucket operation: Your previous request to create the named bucket succeeded and you already own it.
upload: build/private/tmp/sam-toolkit.yml to s3://sam-dev*/sam-toolkit.yml

An error occurred (ValidationError) when calling the DescribeStacks operation: Stack with id sam-dev* does not exist
sam-dev* will be created.
Creating ChangeSet ChangeSet-2020-01-20T12-25-56Z
Deploying stack sam-dev*. Follow in console: https://aws-identity-broker.Amazon.com/federation/634668058279/CloudFormation
ChangeSet ChangeSet-2020-01-20T12-25-56Z in sam-dev* succeeded
            "StackStatus": "REVIEW_IN_PROGRESS",
sam-dev* reached REVIEW_IN_PROGRESS
Deploying stack sam-dev*. Follow in console: https://console.aws.Amazon.com/cloudformation/home?region=us-west-2
Waiting for stack-create-complete

Waiter StackCreateComplete failed: Waiter encountered a terminal failure state

Command failed.
Please see the logs above.
2
Vikash Yadav

LambdaのイベントソースとしてSQSを設定しましたが、このような権限を提供していません

    - Effect: Allow
      Action:
      - sqs:ReceiveMessage
      - sqs:DeleteMessage
      - sqs:GetQueueAttributes
      Resource: "*" 

ラムダポリシー。

「CloudFormation」サービスの「イベント」タブでこのエラーが見つかりました。

2
Vikash Yadav