Skip to content

Commit 715bc08

Browse files
committed
WIP
1 parent c12fad8 commit 715bc08

File tree

1 file changed

+9
-0
lines changed
  • testing/infra/terraform/modules/standalone_apm_server

1 file changed

+9
-0
lines changed

testing/infra/terraform/modules/standalone_apm_server/main.tf

+9
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,15 @@ resource "aws_instance" "apm" {
181181
private_key = file("${var.aws_provisioner_key_name}")
182182
}
183183

184+
provisioner "remote-exec" {
185+
inline = length(regexall("d[.]", self.instance_type)) > 0 ? [
186+
"sudo mkfs -t xfs /dev/nvme1n1",
187+
"mkdir ~/data",
188+
"sudo mount /dev/nvme1n1 ~/data",
189+
"sudo chown $USER:$USER ~/data",
190+
] : []
191+
}
192+
184193
provisioner "file" {
185194
source = "${var.apm_server_bin_path}/apm-server"
186195
destination = local.bin_path

0 commit comments

Comments
 (0)