From 8d5a520a94c64f1f3a1a4adae8bdebc7f2cd00ac Mon Sep 17 00:00:00 2001 From: tajewole-moj Date: Thu, 12 Oct 2023 12:13:21 +0100 Subject: [PATCH] use full path --- terraform/environments/apex/ec2.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terraform/environments/apex/ec2.tf b/terraform/environments/apex/ec2.tf index 2e6c86a34a7..53367cbc0fe 100644 --- a/terraform/environments/apex/ec2.tf +++ b/terraform/environments/apex/ec2.tf @@ -12,7 +12,7 @@ cd /etc mkdir cloudwatch_agent cd cloudwatch_agent echo '${data.local_file.cloudwatch_agent.content}' > cloudwatch_agent_config.json -/opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -a fetch-config -m ec2 -s -c file:cloudwatch_agent_config.json +/opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -a fetch-config -m ec2 -s -c file:/etc/cloudwatch_agent/cloudwatch_agent_config.json EOF }