Skip to content

Commit 5d66571

Browse files
authored
feat: Add launch template name to module outputs (#415)
Add a `runner_launch_template_name` output to the module to return the name of the launch template that's managed.
1 parent e36c971 commit 5d66571

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,7 @@ terraform destroy
444444
| <a name="output_runner_cache_bucket_arn"></a> [runner\_cache\_bucket\_arn](#output\_runner\_cache\_bucket\_arn) | ARN of the S3 for the build cache. |
445445
| <a name="output_runner_cache_bucket_name"></a> [runner\_cache\_bucket\_name](#output\_runner\_cache\_bucket\_name) | Name of the S3 for the build cache. |
446446
| <a name="output_runner_eip"></a> [runner\_eip](#output\_runner\_eip) | EIP of the Gitlab Runner |
447+
| <a name="output_runner_launch_template_name"></a> [runner\_launch\_template\_name](#output\_runner\_launch\_template\_name) | The name of the runner's launch template. |
447448
| <a name="output_runner_role_arn"></a> [runner\_role\_arn](#output\_runner\_role\_arn) | ARN of the role used for the docker machine runners. |
448449
| <a name="output_runner_role_name"></a> [runner\_role\_name](#output\_runner\_role\_name) | Name of the role used for the docker machine runners. |
449450
| <a name="output_runner_sg_id"></a> [runner\_sg\_id](#output\_runner\_sg\_id) | ID of the security group attached to the docker machine runners. |

outputs.tf

+5
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,8 @@ output "runner_eip" {
4747
description = "EIP of the Gitlab Runner"
4848
value = element(concat(aws_eip.gitlab_runner.*.public_ip, [""]), 0)
4949
}
50+
51+
output "runner_launch_template_name" {
52+
description = "The name of the runner's launch template."
53+
value = aws_launch_template.gitlab_runner_instance.name
54+
}

0 commit comments

Comments
 (0)