我想使用和Fargate一起创建Jenkins构建代理。我已经尝试了许多正在进行的工作,但我无法找到正确的配置。
任何帮助都是非常感谢的!
我的当前设置包含:
Amazon EC2 Container Service cloud:
Name: aws-cloud
Amazon ECS Credentials: (none, host has an IAM role that should be sufficient, this Jenkins is
already managing static agents on Fargate)
AWS Region: us-east-1
ECS
我在gitlab.com上,尝试使用包含Deploy-ECS.gitlab-ci.yml模板的说明部署到fargate容器中,找到了。
它失败了,有以下错误:
Authenticating with credentials from job payload (GitLab Registry)
$ ecs update-task-definition
An error occurred (InvalidParameterException) when calling the UpdateService operation: Task definition does not support lau
我有以下cloudformation模板片段。整个模板与所有资源一起创建ECS fargate集群。但是现在,我面临着与fargate服务和任务定义有关的问题。
模板的服务部分如下:
服务:
Type: AWS::ECS::Service
# This dependency is needed so that the load balancer is setup correctly in time
Properties:
ServiceName: !Ref ServiceName
Cluster: !Ref Cluster