shell AWS在创建Alexa技能时无法创建和更新堆栈(主动事件API)

irlmq6kh  于 2023-02-05  发布在  Shell
关注(0)|答案(1)|浏览(84)

我正在设置一个技能,其中包括我正在创建的Amazon Alexa技能的主动事件API。我正在跟踪此guide。此问题的两个重要文件是deploy.sh和pingme.yaml
当我deploy.sh在git bash中运行www.example.com文件时,输出如下

Waiting for changeset to be created..
Waiting for stack create/update to complete

Failed to create/update the stack. Run the following command
to fetch the list of events leading up to the failure
aws cloudformation describe-stack-events --stack-name PingMe

当我运行这个命令时,它只是重复一系列json代码,这些代码遵循类似的格式(尽管值不同),除了这一部分

"ResourceStatus": "CREATE_FAILED",
            "ResourceStatusReason": "Resource handler returned message: \"Error occurred while GetObject. S3 Error Code: PermanentRedirect. S3 Error Message: The bucket is in this region: eu-west-1. Please use this region to retry the request (Service: Lambda, Status Code: 400, Request ID: SOME_ID)\" (RequestToken: SOME_TOKE, HandlerErrorCode: InvalidRequest)",

我在如何使用AWS上有点卡住了,我在CLOUD_FORMATION控制台中得到的唯一输出是ROLLBACK_COMPLETE,旁边有一个红色的X(意味着它只是一个空堆栈)。我猜它是在说我没有在正确的区域,即使指南说使用弗吉尼亚州(美国)的位置?
我在想,我为AWS帐户创建的用户在权限策略中缺少了什么?当我设置AWS CLI时,它要求提供访问和密钥。我非常肯定,当我运行脚本时,一些新角色会自动创建。(如果可能的话)
运行脚本确实为我的AWS用户做了一些事情,因为它显示了我第一次运行脚本时的活动。

$ aws cloudformation describe-stack-events --stack-name PingMe
{
    "StackEvents": [
        {
            "StackId": "arn:aws:cloudformation:us-east-1:879047331400:stack/PingMe/6c4478c0-a3dd-11ed-b213-0ad3dd0b0587",
            "EventId": "963a5aa0-a3dd-11ed-bcfe-0abfc587127d",
            "StackName": "PingMe",
            "LogicalResourceId": "PingMe",
            "PhysicalResourceId": "arn:aws:cloudformation:us-east-1:879047331400:stack/PingMe/6c4478c0-a3dd-11ed-b213-0ad3dd0b0587",
            "ResourceType": "AWS::CloudFormation::Stack",
            "Timestamp": "2023-02-03T16:12:42.181000+00:00",
            "ResourceStatus": "ROLLBACK_COMPLETE"
        },
        {
            "StackId": "arn:aws:cloudformation:us-east-1:879047331400:stack/PingMe/6c4478c0-a3dd-11ed-b213-0ad3dd0b0587",
            "EventId": "DatabaseTable-DELETE_COMPLETE-2023-02-03T16:12:41.562Z",
            "StackName": "PingMe",
            "LogicalResourceId": "DatabaseTable",
            "PhysicalResourceId": "askPingMe",
            "ResourceType": "AWS::DynamoDB::Table",
            "Timestamp": "2023-02-03T16:12:41.562000+00:00",
            "ResourceStatus": "DELETE_COMPLETE",
            "ResourceProperties": "{\"TableName\":\"askPingMe\",\"AttributeDefinitions\":[{\"AttributeType\":\"S\",\"AttributeName\":\"id\"}],\"ProvisionedThroughput\":{\"WriteCapacityUnits\":\"5\",\"ReadCapacityUnits\":\"5\"},\"KeySchema\":[{\"KeyType\":\"HASH\",\"AttributeName\":\"id\"}]}"
        },
        {
            "StackId": "arn:aws:cloudformation:us-east-1:879047331400:stack/PingMe/6c4478c0-a3dd-11ed-b213-0ad3dd0b0587",
            "EventId": "askLambdaFunctionRole-DELETE_COMPLETE-2023-02-03T16:12:39.141Z",
            "StackName": "PingMe",
            "LogicalResourceId": "askLambdaFunctionRole",
            "PhysicalResourceId": "PingMe-askLambdaFunctionRole-9Q23FH86B7GK",
            "ResourceType": "AWS::IAM::Role",
            "Timestamp": "2023-02-03T16:12:39.141000+00:00",
            "ResourceStatus": "DELETE_COMPLETE",
            "ResourceProperties": "{\"ManagedPolicyArns\":[\"arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole\"],\"Policies\":[{\"PolicyName\":\"askLambdaFunctionRolePolicy0\",\"PolicyDocument\":{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":[\"dynamodb:GetItem\",\"dynamodb:PutItem\",\"dynamodb:UpdateItem\",\"dynamodb:DeleteItem\"],\"Resource\":[\"arn:aws:dynamodb:*:*:table/askPingMe\"],\"Effect\":\"Allow\"}]}}],\"AssumeRolePolicyDocument\":{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":[\"sts:AssumeRole\"],\"Effect\":\"Allow\",\"Principal\":{\"Service\":[\"lambda.amazonaws.com\"]}}]},\"Tags\":[{\"Value\":\"SAM\",\"Key\":\"lambda:createdBy\"}]}"
        },
        {
            "StackId": "arn:aws:cloudformation:us-east-1:879047331400:stack/PingMe/6c4478c0-a3dd-11ed-b213-0ad3dd0b0587",
            "EventId": "askLambdaFunctionRole-DELETE_IN_PROGRESS-2023-02-03T16:12:36.955Z",
            "StackName": "PingMe",
            "LogicalResourceId": "askLambdaFunctionRole",
            "PhysicalResourceId": "PingMe-askLambdaFunctionRole-9Q23FH86B7GK",
            "ResourceType": "AWS::IAM::Role",
            "Timestamp": "2023-02-03T16:12:36.955000+00:00",
            "ResourceStatus": "DELETE_IN_PROGRESS",
            "ResourceProperties": "{\"ManagedPolicyArns\":[\"arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole\"],\"Policies\":[{\"PolicyName\":\"askLambdaFunctionRolePolicy0\",\"PolicyDocument\":{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":[\"dynamodb:GetItem\",\"dynamodb:PutItem\",\"dynamodb:UpdateItem\",\"dynamodb:DeleteItem\"],\"Resource\":[\"arn:aws:dynamodb:*:*:table/askPingMe\"],\"Effect\":\"Allow\"}]}}],\"AssumeRolePolicyDocument\":{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":[\"sts:AssumeRole\"],\"Effect\":\"Allow\",\"Principal\":{\"Service\":[\"lambda.amazonaws.com\"]}}]},\"Tags\":[{\"Value\":\"SAM\",\"Key\":\"lambda:createdBy\"}]}"
        },
        {
            "StackId": "arn:aws:cloudformation:us-east-1:879047331400:stack/PingMe/6c4478c0-a3dd-11ed-b213-0ad3dd0b0587",
            "EventId": "askLambdaFunction-DELETE_COMPLETE-2023-02-03T16:12:36.093Z",
            "StackName": "PingMe",
            "LogicalResourceId": "askLambdaFunction",
            "PhysicalResourceId": "ask-custom-PingMe",
            "ResourceType": "AWS::Lambda::Function",
            "Timestamp": "2023-02-03T16:12:36.093000+00:00",
            "ResourceStatus": "DELETE_COMPLETE",
            "ResourceProperties": "{\"Role\":\"arn:aws:iam::879047331400:role/PingMe-askLambdaFunctionRole-9Q23FH86B7GK\",\"FunctionName\":\"ask-custom-PingMe\",\"MemorySize\":\"128\",\"Runtime\":\"nodejs12.x\",\"Description\":\"Alexa Skill Lambda function\",\"Timeout\":\"7\",\"Handler\":\"index.handler\",\"Environment\":{\"Variables\":{\"DYNAMODB_TABLE\":\"askPingMe\"}},\"Code\":{\"S3Bucket\":\"ask-samples-resources\",\"S3Key\":\"code-packages/proactive-events-skill.zip\"},\"Tags\":[{\"Value\":\"SAM\",\"Key\":\"lambda:createdBy\"}]}"
        },
        {
            "StackId": "arn:aws:cloudformation:us-east-1:879047331400:stack/PingMe/6c4478c0-a3dd-11ed-b213-0ad3dd0b0587",
            "EventId": "askLambdaFunction-DELETE_IN_PROGRESS-2023-02-03T16:12:29.828Z",
            "StackName": "PingMe",
            "LogicalResourceId": "askLambdaFunction",
            "PhysicalResourceId": "ask-custom-PingMe",
            "ResourceType": "AWS::Lambda::Function",
            "Timestamp": "2023-02-03T16:12:29.828000+00:00",
            "ResourceStatus": "DELETE_IN_PROGRESS",
            "ResourceProperties": "{\"Role\":\"arn:aws:iam::879047331400:role/PingMe-askLambdaFunctionRole-9Q23FH86B7GK\",\"FunctionName\":\"ask-custom-PingMe\",\"MemorySize\":\"128\",\"Runtime\":\"nodejs12.x\",\"Description\":\"Alexa Skill Lambda function\",\"Timeout\":\"7\",\"Handler\":\"index.handler\",\"Environment\":{\"Variables\":{\"DYNAMODB_TABLE\":\"askPingMe\"}},\"Code\":{\"S3Bucket\":\"ask-samples-resources\",\"S3Key\":\"code-packages/proactive-events-skill.zip\"},\"Tags\":[{\"Value\":\"SAM\",\"Key\":\"lambda:createdBy\"}]}"
        },
        {
            "StackId": "arn:aws:cloudformation:us-east-1:879047331400:stack/PingMe/6c4478c0-a3dd-11ed-b213-0ad3dd0b0587",
            "EventId": "DatabaseTable-DELETE_IN_PROGRESS-2023-02-03T16:12:29.616Z",
            "StackName": "PingMe",
            "LogicalResourceId": "DatabaseTable",
            "PhysicalResourceId": "askPingMe",
            "ResourceType": "AWS::DynamoDB::Table",
            "Timestamp": "2023-02-03T16:12:29.616000+00:00",
            "ResourceStatus": "DELETE_IN_PROGRESS",
            "ResourceProperties": "{\"TableName\":\"askPingMe\",\"AttributeDefinitions\":[{\"AttributeType\":\"S\",\"AttributeName\":\"id\"}],\"ProvisionedThroughput\":{\"WriteCapacityUnits\":\"5\",\"ReadCapacityUnits\":\"5\"},\"KeySchema\":[{\"KeyType\":\"HASH\",\"AttributeName\":\"id\"}]}"
        },
        {
            "StackId": "arn:aws:cloudformation:us-east-1:879047331400:stack/PingMe/6c4478c0-a3dd-11ed-b213-0ad3dd0b0587",
            "EventId": "832ba950-a3dd-11ed-9584-12dec653b89d",
            "StackName": "PingMe",
            "LogicalResourceId": "PingMe",
            "PhysicalResourceId": "arn:aws:cloudformation:us-east-1:879047331400:stack/PingMe/6c4478c0-a3dd-11ed-b213-0ad3dd0b0587",
            "ResourceType": "AWS::CloudFormation::Stack",
            "Timestamp": "2023-02-03T16:12:10.209000+00:00",
            "ResourceStatus": "ROLLBACK_IN_PROGRESS",
            "ResourceStatusReason": "The following resource(s) failed to create: [askLambdaFunction]. Rollback requested by user."
        },
        {
            "StackId": "arn:aws:cloudformation:us-east-1:879047331400:stack/PingMe/6c4478c0-a3dd-11ed-b213-0ad3dd0b0587",
            "EventId": "askLambdaFunction-CREATE_FAILED-2023-02-03T16:12:09.166Z",
            "StackName": "PingMe",
            "LogicalResourceId": "askLambdaFunction",
            "PhysicalResourceId": "ask-custom-PingMe",
            "ResourceType": "AWS::Lambda::Function",
            "Timestamp": "2023-02-03T16:12:09.166000+00:00",
            "ResourceStatus": "CREATE_FAILED",
            "ResourceStatusReason": "Resource handler returned message: \"Error occurred while GetObject. S3 Error Code: PermanentRedirect. S3 Error Message: The bucket is in this region: eu-west-1. Please use this region to retry the request (Service: Lambda, Status Code: 400, Request ID: 14b9a860-96e3-4a3b-9a08-c304f4c5619b)\" (RequestToken: 3e646029-0f43-e11c-eb17-cb8ceadba19a, HandlerErrorCode: InvalidRequest)",
            "ResourceProperties": "{\"Role\":\"arn:aws:iam::879047331400:role/PingMe-askLambdaFunctionRole-9Q23FH86B7GK\",\"FunctionName\":\"ask-custom-PingMe\",\"MemorySize\":\"128\",\"Runtime\":\"nodejs12.x\",\"Description\":\"Alexa Skill Lambda function\",\"Timeout\":\"7\",\"Handler\":\"index.handler\",\"Environment\":{\"Variables\":{\"DYNAMODB_TABLE\":\"askPingMe\"}},\"Code\":{\"S3Bucket\":\"ask-samples-resources\",\"S3Key\":\"code-packages/proactive-events-skill.zip\"},\"Tags\":[{\"Value\":\"SAM\",\"Key\":\"lambda:createdBy\"}]}"
        },
        {
            "StackId": "arn:aws:cloudformation:us-east-1:879047331400:stack/PingMe/6c4478c0-a3dd-11ed-b213-0ad3dd0b0587",
            "EventId": "askLambdaFunction-CREATE_IN_PROGRESS-2023-02-03T16:12:07.314Z",
            "StackName": "PingMe",
            "LogicalResourceId": "askLambdaFunction",
            "PhysicalResourceId": "ask-custom-PingMe",
            "ResourceType": "AWS::Lambda::Function",
            "Timestamp": "2023-02-03T16:12:07.314000+00:00",
            "ResourceStatus": "CREATE_IN_PROGRESS",
            "ResourceStatusReason": "Resource creation Initiated",
            "ResourceProperties": "{\"Role\":\"arn:aws:iam::879047331400:role/PingMe-askLambdaFunctionRole-9Q23FH86B7GK\",\"FunctionName\":\"ask-custom-PingMe\",\"MemorySize\":\"128\",\"Runtime\":\"nodejs12.x\",\"Description\":\"Alexa Skill Lambda function\",\"Timeout\":\"7\",\"Handler\":\"index.handler\",\"Environment\":{\"Variables\":{\"DYNAMODB_TABLE\":\"askPingMe\"}},\"Code\":{\"S3Bucket\":\"ask-samples-resources\",\"S3Key\":\"code-packages/proactive-events-skill.zip\"},\"Tags\":[{\"Value\":\"SAM\",\"Key\":\"lambda:createdBy\"}]}"
        },
        {
            "StackId": "arn:aws:cloudformation:us-east-1:879047331400:stack/PingMe/6c4478c0-a3dd-11ed-b213-0ad3dd0b0587",
            "EventId": "askLambdaFunction-CREATE_IN_PROGRESS-2023-02-03T16:12:04.938Z",
            "StackName": "PingMe",
            "LogicalResourceId": "askLambdaFunction",
            "PhysicalResourceId": "",
            "ResourceType": "AWS::Lambda::Function",
            "Timestamp": "2023-02-03T16:12:04.938000+00:00",
            "ResourceStatus": "CREATE_IN_PROGRESS",
            "ResourceProperties": "{\"Role\":\"arn:aws:iam::879047331400:role/PingMe-askLambdaFunctionRole-9Q23FH86B7GK\",\"FunctionName\":\"ask-custom-PingMe\",\"MemorySize\":\"128\",\"Runtime\":\"nodejs12.x\",\"Description\":\"Alexa Skill Lambda function\",\"Timeout\":\"7\",\"Handler\":\"index.handler\",\"Environment\":{\"Variables\":{\"DYNAMODB_TABLE\":\"askPingMe\"}},\"Code\":{\"S3Bucket\":\"ask-samples-resources\",\"S3Key\":\"code-packages/proactive-events-skill.zip\"},\"Tags\":[{\"Value\":\"SAM\",\"Key\":\"lambda:createdBy\"}]}"
        },
        {
            "StackId": "arn:aws:cloudformation:us-east-1:879047331400:stack/PingMe/6c4478c0-a3dd-11ed-b213-0ad3dd0b0587",
            "EventId": "askLambdaFunctionRole-CREATE_COMPLETE-2023-02-03T16:12:02.649Z",
            "StackName": "PingMe",
            "LogicalResourceId": "askLambdaFunctionRole",
            "PhysicalResourceId": "PingMe-askLambdaFunctionRole-9Q23FH86B7GK",
            "ResourceType": "AWS::IAM::Role",
            "Timestamp": "2023-02-03T16:12:02.649000+00:00",
            "ResourceStatus": "CREATE_COMPLETE",
            "ResourceProperties": "{\"ManagedPolicyArns\":[\"arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole\"],\"Policies\":[{\"PolicyName\":\"askLambdaFunctionRolePolicy0\",\"PolicyDocument\":{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":[\"dynamodb:GetItem\",\"dynamodb:PutItem\",\"dynamodb:UpdateItem\",\"dynamodb:DeleteItem\"],\"Resource\":[\"arn:aws:dynamodb:*:*:table/askPingMe\"],\"Effect\":\"Allow\"}]}}],\"AssumeRolePolicyDocument\":{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":[\"sts:AssumeRole\"],\"Effect\":\"Allow\",\"Principal\":{\"Service\":[\"lambda.amazonaws.com\"]}}]},\"Tags\":[{\"Value\":\"SAM\",\"Key\":\"lambda:createdBy\"}]}"
        },
        {
            "StackId": "arn:aws:cloudformation:us-east-1:879047331400:stack/PingMe/6c4478c0-a3dd-11ed-b213-0ad3dd0b0587",
            "EventId": "DatabaseTable-CREATE_COMPLETE-2023-02-03T16:11:59.818Z",
            "StackName": "PingMe",
            "LogicalResourceId": "DatabaseTable",
            "PhysicalResourceId": "askPingMe",
            "ResourceType": "AWS::DynamoDB::Table",
            "Timestamp": "2023-02-03T16:11:59.818000+00:00",
            "ResourceStatus": "CREATE_COMPLETE",
            "ResourceProperties": "{\"TableName\":\"askPingMe\",\"AttributeDefinitions\":[{\"AttributeType\":\"S\",\"AttributeName\":\"id\"}],\"ProvisionedThroughput\":{\"WriteCapacityUnits\":\"5\",\"ReadCapacityUnits\":\"5\"},\"KeySchema\":[{\"KeyType\":\"HASH\",\"AttributeName\":\"id\"}]}"
        },
        {
            "StackId": "arn:aws:cloudformation:us-east-1:879047331400:stack/PingMe/6c4478c0-a3dd-11ed-b213-0ad3dd0b0587",
            "EventId": "DatabaseTable-CREATE_IN_PROGRESS-2023-02-03T16:11:48.710Z",
            "StackName": "PingMe",
            "LogicalResourceId": "DatabaseTable",
            "PhysicalResourceId": "askPingMe",
            "ResourceType": "AWS::DynamoDB::Table",
            "Timestamp": "2023-02-03T16:11:48.710000+00:00",
            "ResourceStatus": "CREATE_IN_PROGRESS",
            "ResourceStatusReason": "Resource creation Initiated",
            "ResourceProperties": "{\"TableName\":\"askPingMe\",\"AttributeDefinitions\":[{\"AttributeType\":\"S\",\"AttributeName\":\"id\"}],\"ProvisionedThroughput\":{\"WriteCapacityUnits\":\"5\",\"ReadCapacityUnits\":\"5\"},\"KeySchema\":[{\"KeyType\":\"HASH\",\"AttributeName\":\"id\"}]}"
        },
        {
            "StackId": "arn:aws:cloudformation:us-east-1:879047331400:stack/PingMe/6c4478c0-a3dd-11ed-b213-0ad3dd0b0587",
            "EventId": "askLambdaFunctionRole-CREATE_IN_PROGRESS-2023-02-03T16:11:47.555Z",
            "StackName": "PingMe",
            "LogicalResourceId": "askLambdaFunctionRole",
            "PhysicalResourceId": "PingMe-askLambdaFunctionRole-9Q23FH86B7GK",
            "ResourceType": "AWS::IAM::Role",
            "Timestamp": "2023-02-03T16:11:47.555000+00:00",
            "ResourceStatus": "CREATE_IN_PROGRESS",
            "ResourceStatusReason": "Resource creation Initiated",
            "ResourceProperties": "{\"ManagedPolicyArns\":[\"arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole\"],\"Policies\":[{\"PolicyName\":\"askLambdaFunctionRolePolicy0\",\"PolicyDocument\":{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":[\"dynamodb:GetItem\",\"dynamodb:PutItem\",\"dynamodb:UpdateItem\",\"dynamodb:DeleteItem\"],\"Resource\":[\"arn:aws:dynamodb:*:*:table/askPingMe\"],\"Effect\":\"Allow\"}]}}],\"AssumeRolePolicyDocument\":{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":[\"sts:AssumeRole\"],\"Effect\":\"Allow\",\"Principal\":{\"Service\":[\"lambda.amazonaws.com\"]}}]},\"Tags\":[{\"Value\":\"SAM\",\"Key\":\"lambda:createdBy\"}]}"
        },
        {
            "StackId": "arn:aws:cloudformation:us-east-1:879047331400:stack/PingMe/6c4478c0-a3dd-11ed-b213-0ad3dd0b0587",
            "EventId": "DatabaseTable-CREATE_IN_PROGRESS-2023-02-03T16:11:47.211Z",
            "StackName": "PingMe",
            "LogicalResourceId": "DatabaseTable",
            "PhysicalResourceId": "",
            "ResourceType": "AWS::DynamoDB::Table",
            "Timestamp": "2023-02-03T16:11:47.211000+00:00",
            "ResourceStatus": "CREATE_IN_PROGRESS",
            "ResourceProperties": "{\"TableName\":\"askPingMe\",\"AttributeDefinitions\":[{\"AttributeType\":\"S\",\"AttributeName\":\"id\"}],\"ProvisionedThroughput\":{\"WriteCapacityUnits\":\"5\",\"ReadCapacityUnits\":\"5\"},\"KeySchema\":[{\"KeyType\":\"HASH\",\"AttributeName\":\"id\"}]}"
        },
        {
            "StackId": "arn:aws:cloudformation:us-east-1:879047331400:stack/PingMe/6c4478c0-a3dd-11ed-b213-0ad3dd0b0587",
            "EventId": "askLambdaFunctionRole-CREATE_IN_PROGRESS-2023-02-03T16:11:47.198Z",
            "StackName": "PingMe",
            "LogicalResourceId": "askLambdaFunctionRole",
            "PhysicalResourceId": "",
            "ResourceType": "AWS::IAM::Role",
            "Timestamp": "2023-02-03T16:11:47.198000+00:00",
            "ResourceStatus": "CREATE_IN_PROGRESS",
            "ResourceProperties": "{\"ManagedPolicyArns\":[\"arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole\"],\"Policies\":[{\"PolicyName\":\"askLambdaFunctionRolePolicy0\",\"PolicyDocument\":{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":[\"dynamodb:GetItem\",\"dynamodb:PutItem\",\"dynamodb:UpdateItem\",\"dynamodb:DeleteItem\"],\"Resource\":[\"arn:aws:dynamodb:*:*:table/askPingMe\"],\"Effect\":\"Allow\"}]}}],\"AssumeRolePolicyDocument\":{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":[\"sts:AssumeRole\"],\"Effect\":\"Allow\",\"Principal\":{\"Service\":[\"lambda.amazonaws.com\"]}}]},\"Tags\":[{\"Value\":\"SAM\",\"Key\":\"lambda:createdBy\"}]}"
        },
        {
            "StackId": "arn:aws:cloudformation:us-east-1:879047331400:stack/PingMe/6c4478c0-a3dd-11ed-b213-0ad3dd0b0587",
            "EventId": "72c4bf70-a3dd-11ed-b99a-0ac8957a8ed1",
            "StackName": "PingMe",
            "LogicalResourceId": "PingMe",
            "PhysicalResourceId": "arn:aws:cloudformation:us-east-1:879047331400:stack/PingMe/6c4478c0-a3dd-11ed-b213-0ad3dd0b0587",
            "ResourceType": "AWS::CloudFormation::Stack",
            "Timestamp": "2023-02-03T16:11:42.673000+00:00",
            "ResourceStatus": "CREATE_IN_PROGRESS",
            "ResourceStatusReason": "User Initiated"
        },
        {
            "StackId": "arn:aws:cloudformation:us-east-1:879047331400:stack/PingMe/6c4478c0-a3dd-11ed-b213-0ad3dd0b0587",
            "EventId": "6c405a10-a3dd-11ed-b213-0ad3dd0b0587",
            "StackName": "PingMe",
            "LogicalResourceId": "PingMe",
            "PhysicalResourceId": "arn:aws:cloudformation:us-east-1:879047331400:stack/PingMe/6c4478c0-a3dd-11ed-b213-0ad3dd0b0587",
            "ResourceType": "AWS::CloudFormation::Stack",
            "Timestamp": "2023-02-03T16:11:31.903000+00:00",
            "ResourceStatus": "REVIEW_IN_PROGRESS",
            "ResourceStatusReason": "User Initiated"
        }
    ]
}
byqmnocz

byqmnocz1#

这看起来不像是权限问题。您应该提供具有更多上下文的堆栈输出,以便能够判断哪个资源创建失败,但查看该repo,我会猜测是lambda创建失败,因为它无法定位代码源。
如果你试图在us-east-1中运行这个,那么你的lambda源代码应该位于us-east-1的s3桶中,但看起来不是这样。
如果可以下载zip,那么可以先将zip文件上传到us-east-1 bucket,然后更改ping.yaml以指向新位置。
你也可以在github回购协议中提出一个问题并寻求指导。

相关问题