cattle-ops / terraform-aws-gitlab-runner

Terraform module for AWS GitLab runners on ec2 (spot) instances
https://registry.terraform.io/modules/cattle-ops/gitlab-runner/aws
MIT License
586 stars 331 forks source link

Report an error when the ssm key doesn't exist #1139

Closed lmilbaum closed 3 months ago

lmilbaum commented 4 months ago

Describe the solution you'd like

Fail the apply if the SSM access key is not found

kayman-mk commented 4 months ago

@lmilbaum Could you please add some details? Not sure what you mean.

lmilbaum commented 3 months ago

@lmilbaum Could you please add some details? Not sure what you mean.

I forgot to setup the SSM access key before deployment. No error reported. But, the runner didn't work as expected.

kayman-mk commented 3 months ago

This one? var.runner_gitlab.preregistered_runner_token_ssm_parameter_name

lmilbaum commented 3 months ago

This one? var.runner_gitlab.preregistered_runner_token_ssm_parameter_name

The key was populated with a name but I didn't create the resource in AWS