Skip to content

Commit f0159e9

Browse files
authored
formatting
1 parent 7680a44 commit f0159e9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.ebextensions/02_logs_cloudwatch_imds2.config

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# The following file configures a new version of cloudwatch logs agent that uses IMDSv2 instead of IMDSv1
22
# to push the /var/app/current/storage/logs/*.log files to a Log Group in CloudWatch Logs.
33

4-
# This version of cloudwatch logs agent is installed automatically on AMI2 instances
4+
# This version of CloudWatch Logs agent is installed automatically on Amazon Linux 2 instances.
55

66
# The old version of cloudwatch doesn't support Metadata Service Version 2 (IMDSv2) and it's recommended to use a new one
77
# Link to reference: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/QuickStartEC2Instance.html
@@ -10,8 +10,8 @@
1010
# the "Logs" link on the left. The Log Group name will follow this format:
1111
# /aws/elasticbeanstalk/<environment name>/<full log name path>
1212

13-
## For more information about "Log Streaming" feature, see:
14-
## https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/QuickStartEC2Instance.html
13+
# For more information about "Log Streaming" feature, see:
14+
# https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/QuickStartEC2Instance.html
1515

1616
# Usually, the option_settings with enabled Stream Logs should be uncommented if you are not using IaaC, like Chef or Terraform.
1717
# If you created the environment manually, uncomment the following lines and set the amount of retention in days.
@@ -29,7 +29,7 @@
2929
# option_name: RetentionInDays
3030
# value: 7
3131

32-
#files:
32+
# files:
3333
# "/opt/aws/amazon-cloudwatch-agent/etc/amazon-cloudwatch-agent.d/laravel_logs.json" :
3434
# mode: "000644"
3535
# owner: root
@@ -51,6 +51,6 @@
5151
# }
5252
# }
5353

54-
#container_commands:
55-
# start_cloudwatch_agent:
56-
# command: /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -a fetch-config -m ec2 -s -c file:/opt/aws/amazon-cloudwatch-agent/etc/amazon-cloudwatch-agent.d/laravel_logs.json
54+
# container_commands:
55+
# start_cloudwatch_agent:
56+
# command: /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -a fetch-config -m ec2 -s -c file:/opt/aws/amazon-cloudwatch-agent/etc/amazon-cloudwatch-agent.d/laravel_logs.json

0 commit comments

Comments
 (0)