当我运行Terraform时,我得到了这条神秘的错误消息,我无法解决它。
$ terraform apply "cms-container.plan"
aws_ecs_task_definition.dev-cms_task: Creating...
Error: ClientException: Role is not valid
on ecs.tf line 19, in resource "aws_ecs_task_definition" "dev-cms_task":
19: resource "aws_ecs_ta
Apache气流版本:2.1.2
环境
云提供商或硬件配置:AWS
发生了什么,
我从2.0.1到2.1.2进行了更新,从s3获取日志突然失败:An error occurred (AccessDenied) when calling the AssumeRole operation: User: arn:aws:sts::111111111:assumed-role/airflow-ecs-task-role/cfdjkal342nk432hvbkjl34 is not authorized to perform: sts:AssumeRole on resource: arn:
从lambda调用ECS时,将出现权限错误。
botocore.exceptions.ClientError: An error occurred (AccessDeniedException) when calling the Invoke operation: User: arn:aws:sts::678100228XXX:assumed-role/vw-dev-fargate-stack-TaskDefAdminTaskRoleA25A3679-1K9EPRKUW9TNV/21bdeb6c10b14db4b1515986d946959a is not authorized to perf
我有一个ECS集群,它绑定了一个ec2实例,并且使用ECS仪表板上的“计划任务”功能设置了一个每天运行的计划任务。
这个任务运行了一堆容器,每个容器的内存都比较昂贵,而且在所有容器同时运行时,情况就更复杂了。
我目前还没有为ECS集群设置服务,我的理解是,对于我的目标,在某个时间间隔上运行一个set任务,将不会使用服务。
AWS对ECS文档中的服务的定义是:
An Amazon ECS service enables you to run and maintain a specified number of instances of a task definition simultaneous