从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
在我的hosts.allow的末尾,我有以下内容:
ALL : ALL \
: spawn (echo "%d" | /usr/bin/mail -s "tcpf\: %d attempt from %h." root) & \
: severity auth.info \
: twist /bin/echo "You are not welcome to use %d from %h."`
但这似乎只是简单地将该文本放入我的auth.log中:
mail sshd[63546]: twist 12.34.56.789 to /b
当我运行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