Hello,
As part of an application deployment, we are using the aws-ecs plugin to deploy the pp in an AWS account. Everything is working properly, but now we would like to add some tags to the elements that Waypoint creates (tasks, services and so on). And I was wondering whether is possible to specify these tags in the waypoint.hcl
file, so that we don’t need to tag them manually, and every element could have the same tags.
Our waypoint.hcl
is similar to this piece of code:
app "api" {
build {
use "docker" {
dockerfile = var.Dockerfile-name
}
registry {
use "aws-ecr" {
region = "eu-west-2"
repository = "api"
tag = "latest"
}
}
}
deploy {
use "aws-ecs" {
region = "eu-west-2"
memory = 4096
alb {
certificate = var.api-aws-alb-certificate
ingress_port = 443
internal = false
subnets = var.alb-subnets
zone_id = var.alb-zone_id
domain_name = var.api-aws-alb-domain_name
}
subnets = var.subnets
security_group_ids = var.security_group_ids
}
}
}
And also, there is a *.wpvars.json
file created for each environment.
Regards,
Miguel.