Skip to content

Commit 29731cb

Browse files
authored
Update main.tf
1 parent d91e337 commit 29731cb

File tree

1 file changed

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

1 file changed

+2
-0
lines changed

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

+2
Original file line numberDiff line numberDiff line change
@@ -240,12 +240,14 @@ resource "aws_instance" "apm" {
240240
"sudo elastic-agent install -n --unprivileged",
241241
"sudo cp ${local.conf_path} /etc/elastic-agent/elastic-agent.yml",
242242
"sudo systemctl start elastic-agent",
243+
"sudo systemctl stop firewalld || true",
243244
"sleep 1",
244245
] : (
245246
var.apm_server_bin_path == "" ? [
246247
local.instance_standalone_provision_cmd[var.aws_os],
247248
"sudo cp ${local.conf_path} /etc/apm-server/apm-server.yml",
248249
"sudo systemctl start apm-server",
250+
"sudo systemctl stop firewalld || true",
249251
"sleep 1",
250252
] : [
251253
"sudo cp ${local.bin_path} apm-server",

0 commit comments

Comments
 (0)