How to update to the latest AWS CloudWatch Agent
If you're looking to upgrade to the latest version of the AWS CloudWatch Agent, here's a quick guide to help you out:
Navigate to the Service tab and select AWS Systems Manager.
Under the Run Command option, choose AWS-ConfigureAWSPackage.
In the action field, select Install. In the installation type field, choose In-place Update.
In the name field, enter AmazonCloudWatchAgent. In the version field, select latest.
That's it! You should now be able to upgrade to the latest version of the AWS CloudWatch Agent.
& $Env:ProgramFiles\Amazon\AmazonCloudWatchAgent\amazon-cloudwatch-agent-ctl.ps1 -m ec2 -a stop
& $Env:ProgramFiles\Amazon\AmazonCloudWatchAgent\amazon-cloudwatch-agent-ctl.ps1 -m ec2 -a stop
& $Env:ProgramFiles\Amazon\AmazonCloudWatchAgent\amazon-cloudwatch-agent-ctl.ps1 -m ec2 -a start
Comments
Post a Comment