If i create multiple runners with below module – project_runner. Then can i use the output token for each runner once it is created in the subsequent lambda as env variable ?
module.project_runner.runner_token — will output the particular runner token every time it is created or it will take the first runner’s token always?
main.tf
module "project_runner" {
source = "./modules/gitlab_user_runner"
runner_type = project_type
}
module "test-lambda" {
function_name = "test-lambda"
environment_variables = {
GITLAB_TOKEN = module.project_runner.runner_token
CONFIG_TOML = module.project_runner.config_toml
}
}
New contributor
2024KD is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
3