作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
出于某种原因,我收到以下错误:
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/
出于某种原因,我收到以下错误: Waiter TasksStopped 失败:taskId 长度应为 [32,36] 之一 我真的不知道 taskId 应该是什么意思,aws 文档也没有帮助。有谁知道
出于某种原因,我收到以下错误: Waiter TasksStopped 失败:taskId 长度应为 [32,36] 之一 我真的不知道 taskId 应该是什么意思,aws 文档也没有帮助。有谁知道
我是一名优秀的程序员,十分优秀!