update vuln processing module to use volumes (#2)
This commit is contained in:
1 parent
f378f62db2
commit
df405f4e59
2 files changed
+30
No files matched your search
@@ -1 +1,2 @@
|
|||||||
.external_modules
|
.external_modules
|
||||||
|
.idea
|
||||||
@@ -68,6 +68,8 @@ resource "aws_ecs_task_definition" "vuln-processing" {
|
|||||||
networkMode = "awsvpc"
|
networkMode = "awsvpc"
|
||||||
secrets = local.secrets
|
secrets = local.secrets
|
||||||
repositoryCredentials = local.repository_credentials
|
repositoryCredentials = local.repository_credentials
|
||||||
|
mountPoints = var.fleet_config.mount_points
|
||||||
|
dependsOn = var.fleet_config.depends_on
|
||||||
ulimits = [
|
ulimits = [
|
||||||
{
|
{
|
||||||
name = "nofile"
|
name = "nofile"
|
||||||
@@ -131,6 +133,33 @@ resource "aws_ecs_task_definition" "vuln-processing" {
|
|||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
, var.fleet_config.sidecars))
|
, var.fleet_config.sidecars))
|
||||||
|
|
||||||
|
dynamic "volume" {
|
||||||
|
for_each = var.fleet_config.volumes
|
||||||
|
content {
|
||||||
|
name = volume.value.name
|
||||||
|
host_path = lookup(volume.value, "host_path", null)
|
||||||
|
|
||||||
|
dynamic "docker_volume_configuration" {
|
||||||
|
for_each = lookup(volume.value, "docker_volume_configuration", [])
|
||||||
|
content {
|
||||||
|
scope = lookup(docker_volume_configuration.value, "scope", null)
|
||||||
|
autoprovision = lookup(docker_volume_configuration.value, "autoprovision", null)
|
||||||
|
driver = lookup(docker_volume_configuration.value, "driver", null)
|
||||||
|
driver_opts = lookup(docker_volume_configuration.value, "driver_opts", null)
|
||||||
|
labels = lookup(docker_volume_configuration.value, "labels", null)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
dynamic "efs_volume_configuration" {
|
||||||
|
for_each = lookup(volume.value, "efs_volume_configuration", [])
|
||||||
|
content {
|
||||||
|
file_system_id = lookup(efs_volume_configuration.value, "file_system_id", null)
|
||||||
|
root_directory = lookup(efs_volume_configuration.value, "root_directory", null)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user