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:
当条件为false时,我的Ansible Task会失败(只有当条件为true时,任务才会失败)
我的剧本
- name: 'Check if any task is existing'
command: aws ecs list-tasks --cluster mycluster --query length(taskArns[*])
register: ecs_tasks
- name: 'Fail playbook if some task is already existing in cluster'
当我运行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
我最近将运行ECS EC2实例的AMI从Amazon Linux更改为Amazon Linux2(在这两种情况下,我都使用ECS优化的映像)。我正在使用cloudformation部署我的实例,我真的很头疼,因为这些新实例有时运行成功,有时运行不成功(相同的堆栈,没有更新,相同的代码)。在失败的实例上,我在ECS文件日志"warning: the Amazon ecs Container Agent is not running“中看到ECS服务本身在执行ECS-logs-Colltor.sh时出现了问题。另外,目录"/var/log/ecs“甚至不存在!
我已将正确的IAM角
我正在尝试创建一个CFN来启动一个ECS连接到ECR,一个负载均衡器在顶部。但现在我发现了一个错误:
Resource handler returned message: "Invalid request provided: CreateService error: You cannot specify an IAM role for services that require a service linked role. (Service: AmazonECS; Status Code: 400; Error Code: InvalidParameterException; Requ