gpt4 book ai didi

amazon-web-services - AWS Waiter TasksStopped 失败 : taskId length should be one of

转载 作者:行者123 更新时间:2023-12-02 00:24:00 24 4
gpt4 key购买 nike

出于某种原因,我收到以下错误:

Waiter TasksStopped 失败:taskId 长度应为 [32,36] 之一

我真的不知道 taskId 应该是什么意思,aws 文档也没有帮助。有谁知道这个管道脚本出了什么问题?

    - step:
name: Run DB migrations
script:
- >
export BackendTaskArn=$(aws cloudformation list-stack-resources \
--stack-name=${DEXB_PRODUCTION_STACK} \
--output=text \
--query="StackResourceSummaries[?LogicalResourceId=='BackendECSTask'].PhysicalResourceId")
- >
SequelizeTask=$(aws ecs run-task --cluster=${DEXB_PRODUCTION_ECS_CLUSTER} --task-definition=${BackendTaskArn} \
--overrides='{"containerOverrides":[{"name":"NodeBackend","command":["./node_modules/.bin/sequelize","db:migrate"]}]}' \
--launch-type=EC2 --output=text --query='tasks[0].taskArn')
- aws ecs wait tasks-stopped --cluster=${DEXB_PRODUCTION_ECS_CLUSTER} --tasks ${SequelizeTask}

最佳答案

AWS 介绍 a new ARN format用于任务、容器实例和服务。此格式现在包含集群名称,这可能会破坏依赖仅包含任务资源 ID 的 ARN 的脚本和应用程序。

# Previous format (taskId contains hyphens)
arn:aws:ecs:$region:$accountID:task/$taskId

# New format (taskI does not contain hyphens)
arn:aws:ecs:$region:$accountId:task/$clusterName/$taskId

在 2021 年 3 月 31 日之前,可以使用 https://console.aws.amazon.com/ecs/home?#/settings 按区域选择退出此更改.为了更改整个帐户的行为,您需要使用 Root IAM 用户。

关于amazon-web-services - AWS Waiter TasksStopped 失败 : taskId length should be one of,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54385184/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com