Commit 2849f20 1 parent 94ddf7b commit 2849f20 Copy full SHA for 2849f20
File tree 5 files changed +19
-0
lines changed
infra/terraform/modules/standalone_apm_server
5 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 8
8
required : false
9
9
type : boolean
10
10
default : false
11
+ standaloneInstanceSize :
12
+ description : ' AWS instance size of standalone APM Server, e.g. c6i.2xlarge'
13
+ required : false
14
+ type : string
11
15
enableTailSampling :
12
16
description : ' Enable tail-based sampling on the APM server'
13
17
required : false
67
71
TF_VAR_private_key : ./id_rsa_terraform
68
72
TF_VAR_public_key : ./id_rsa_terraform.pub
69
73
TF_VAR_run_standalone : ${{ inputs.runStandalone || github.event.schedule=='0 0 1 * *' }}
74
+ TF_VAR_standalone_apm_server_instance_size : ${{ inputs.standaloneInstanceSize || 'c6i.2xlarge' }}
70
75
TF_VAR_apm_server_tail_sampling : ${{ inputs.enableTailSampling || 'false' }} # set the default again otherwise schedules won't work
71
76
TF_VAR_apm_server_tail_sampling_storage_limit : ${{ inputs.tailSamplingStorageLimit || '10GB' }} # set the default again otherwise schedules won't work
72
77
RUN_STANDALONE : ${{ inputs.runStandalone || github.event.schedule=='0 0 1 * *' }}
Original file line number Diff line number Diff line change @@ -157,6 +157,7 @@ module "standalone_apm_server" {
157
157
apm_instance_type = var. standalone_apm_server_instance_size
158
158
apm_volume_type = var. standalone_apm_server_volume_type
159
159
apm_volume_size = var. apm_server_tail_sampling ? coalesce (var. standalone_apm_server_volume_size , 60 ) : var. standalone_apm_server_volume_size
160
+ apm_iops = var. standalone_apm_server_iops
160
161
apm_server_bin_path = var. apm_server_bin_path
161
162
ea_managed = false
162
163
Original file line number Diff line number Diff line change @@ -142,6 +142,12 @@ variable "standalone_apm_server_volume_size" {
142
142
description = " Optional volume size in GB to use for APM Server VM"
143
143
}
144
144
145
+ variable "standalone_apm_server_iops" {
146
+ default = null
147
+ type = number
148
+ description = " Optional disk IOPS in GB to use for APM Server VM"
149
+ }
150
+
145
151
# # VPC Network settings
146
152
147
153
variable "vpc_cidr" {
Original file line number Diff line number Diff line change @@ -172,6 +172,7 @@ resource "aws_instance" "apm" {
172
172
root_block_device {
173
173
volume_type = var. apm_volume_type
174
174
volume_size = var. apm_volume_size
175
+ iops = var. apm_iops
175
176
}
176
177
177
178
connection {
Original file line number Diff line number Diff line change @@ -22,6 +22,12 @@ variable "apm_volume_size" {
22
22
description = " Optional apm server volume size in GB override"
23
23
}
24
24
25
+ variable "apm_iops" {
26
+ default = null
27
+ type = number
28
+ description = " Optional apm server disk IOPS override"
29
+ }
30
+
25
31
variable "vpc_id" {
26
32
description = " VPC ID to provision the EC2 instance"
27
33
type = string
You can’t perform that action at this time.
0 commit comments