Hi,
trying to find a workaround for this issue Use existing AWS target group · Issue #1174 · hashicorp/waypoint · GitHub I am playing around with an after deployment hook. Unfortunately when trying to use the artifact output variable of the aws-ecs plugin waypoint gives an error saying “There is no variable named ‘artifact’”.
This is my waypoint.hcl
project = "soccerquoteapp"
app "soccerquoteapp" {
labels = {
"service" = "soccerquoteapp",
"env" = "prod"
}
build {
# use pre-built image (e.g. built from gitlab ci/cd pipeline):
use "docker-pull" {
image = "xxx/soccerquoteapp"
tag = "latest"
disable_entrypoint = true
encoded_auth = filebase64("${path.app}/ecr.config.json")
}
}
deploy {
use "aws-ecs" {
region = "eu-central-1"
memory = "1024"
logging {}
alb {
certificate = "xxx"
}
log_group = "wp-soccerquoteapp"
}
hook {
when = "after"
command = ["./align_healthcheck.sh", artifact.target_group_arn]
}
}
}
I also tried the deploy variable, no luck either. Any ideas anyone?
Thx