Amazon web services 需要在nomad hcl文件中写入S3配置
在上面的代码片段中,我试图替换当前存储卷,即S3的本地存储卷。为此,我们需要包括以下值:Amazon web services 需要在nomad hcl文件中写入S3配置,amazon-web-services,amazon-s3,devops,hcl,nomad,Amazon Web Services,Amazon S3,Devops,Hcl,Nomad,在上面的代码片段中,我试图替换当前存储卷,即S3的本地存储卷。为此,我们需要包括以下值: task enterprise { env { ------ } config { image = "image URL" interactive = true
task enterprise {
env {
------
}
config {
image = "image URL"
interactive = true
labels {
datacenter = "--"
environment = "--"
}
logging {
config {
tag = "--"
}
type = "--"
}
port_map {
enterprise = ..
}
tty = true
volumes = [
"data:/home/site/data"
]
volume_driver = "local"
}
driver = "docker"
resources {
cpu = 100
memory = 1024
network {
mbits = 10
port ".." { }
}
}
service {
check {
check_restart {
limit = 3
grace = "90s"
}
interval = "10s"
timeout = "2s"
type = "tcp"
}
name = "name"
port = ".."
tags = [
"job",
"meta.team=team",
"meta.email=....",
]
}
}
}
我已经尝试将卷\u驱动程序放入s3,但不知道在哪里包含s3存储桶配置值,以及需要用卷关键字替换哪些内容。你能帮我把存储配置从本地重写到S3吗
driver: s3
s3:
region: eu-west-1
bucket: my-bucket
access-key:
secret-key: