File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed
Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change 33 Name = " gitlab-docker-runner"
44 ManagedBy = " Terraform"
55 }
6- runner_user_data = templatefile (" templates/runner.tftpl" , {
6+ runner_user_data = templatefile (" ${ path . module } / templates/runner.tftpl" , {
77 gitlab_url = var.gitlab_url
88 runner_registration_token = var.runner_registration_token
99 docker_image = var.docker_image
@@ -35,8 +35,7 @@ resource "aws_instance" "this" {
3535 vpc_security_group_ids = var. vpc_security_group_ids
3636 subnet_id = var. subnet_id
3737 user_data = local. runner_user_data
38- user_data_replace_on_change = var. user_data_replace_on_change
39-
38+ user_data_replace_on_change = true
4039 tags = merge (
4140 local. tags ,
4241 var. additional_tags ,
Original file line number Diff line number Diff line change @@ -28,12 +28,6 @@ variable "subnet_id" {
2828 default = " "
2929}
3030
31- variable "user_data_replace_on_change" {
32- description = " Recreate the instance when the user data changes"
33- type = bool
34- default = true
35- }
36-
3731variable "additional_tags" {
3832 description = " Additional tags to apply to the resources"
3933 type = map (string )
You can’t perform that action at this time.
0 commit comments