Skip to content

Commit

Permalink
Add runner_instance_enable_monitoring var to disable detailed monitor…
Browse files Browse the repository at this point in the history
  • Loading branch information
jessedobbelaere committed Oct 8, 2020
1 parent bfad3dc commit b542a75
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ terraform destroy
| runner\_ami\_owners | The list of owners used to select the AMI of Gitlab runner docker-machine instances. | `list(string)` | <pre>[<br> "099720109477"<br>]</pre> | no |
| runner\_iam\_policy\_arns | List of policy ARNs to be added to the instance profile of the runners. | `list(string)` | `[]` | no |
| runner\_instance\_ebs\_optimized | Enable the GitLab runner instance to be EBS-optimized. | `bool` | `true` | no |
| runner\_instance\_enable\_monitoring | Enable the GitLab runner instance to have detailed monitoring. | `bool` | `true` | no |
| runner\_instance\_spot\_price | By setting a spot price bid price the runner agent will be created via a spot request. Be aware that spot instances can be stopped by AWS. | `string` | `null` | no |
| runner\_root\_block\_device | The EC2 instance root block device configuration. Takes the following keys: `delete_on_termination`, `volume_type`, `volume_size`, `encrypted`, `iops` | `map(string)` | `{}` | no |
| runner\_tags | Map of tags that will be added to runner EC2 instances. | `map(string)` | `{}` | no |
Expand Down
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ resource "aws_launch_configuration" "gitlab_runner_instance" {
user_data = local.template_user_data
instance_type = var.instance_type
ebs_optimized = var.runner_instance_ebs_optimized
enable_monitoring = var.runner_instance_enable_monitoring
spot_price = var.runner_instance_spot_price
iam_instance_profile = aws_iam_instance_profile.instance.name
dynamic "root_block_device" {
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ variable "runner_instance_ebs_optimized" {
default = true
}

variable "runner_instance_enable_monitoring" {
description = "Enable the GitLab runner instance to have detailed monitoring."
type = bool
default = true
}

variable "runner_instance_spot_price" {
description = "By setting a spot price bid price the runner agent will be created via a spot request. Be aware that spot instances can be stopped by AWS."
type = string
Expand Down

0 comments on commit b542a75

Please sign in to comment.