gpt4 book ai didi

amazon-ec2 - 无法运行任务验证的字符串为空

转载 作者:行者123 更新时间:2023-12-04 15:49:01 25 4
gpt4 key购买 nike

我正在尝试使用以下 JSON 配置在 Amazon EC2 上为 postgres sql 创建一个简单的任务:

{
"requiresAttributes": [],
"taskDefinitionArn": "arn:aws:ecs:us-east-1:870465292454:task-definition/Application:2",
"networkMode": "bridge",
"status": "ACTIVE",
"revision": 2,
"taskRoleArn": null,
"containerDefinitions": [
{
"volumesFrom": [],
"memory": 512,
"extraHosts": null,
"dnsServers": null,
"disableNetworking": null,
"dnsSearchDomains": null,
"portMappings": [
{
"hostPort": 5432,
"containerPort": 5432,
"protocol": "tcp"
}
],
"hostname": null,
"essential": true,
"entryPoint": null,
"mountPoints": [],
"name": "postgres",
"ulimits": null,
"dockerSecurityOptions": null,
"environment": [
{
"name": "POSTGRES_PASSWORD",
"value": "*******"
}
],
"links": [],
"workingDirectory": null,
"readonlyRootFilesystem": null,
"image": "postgres",
"command": null,
"user": null,
"dockerLabels": null,
"logConfiguration": null,
"cpu": 0,
"privileged": null,
"memoryReservation": null
}
],
"placementConstraints": [],
"volumes": [
{
"host": {
"sourcePath": "/var/lib/postgresql/data"
},
"name": "PGDATA"
}
],
"family": "Application"
}

但是当我尝试运行这个任务时,我得到“无法运行任务验证的字符串为空”作为来自服务器的响应。

有人可以帮助我理解我在这里缺少的东西吗。

最佳答案

该错误消息非常严重...但是我在配置集群之前收到此错误消息。确保您在创建任务时选择了集群。

关于amazon-ec2 - 无法运行任务验证的字符串为空,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41315615/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com