CloudWatch Agent on Ubuntu: Difference between revisions

From Cramsession
Jump to navigationJump to search
✍️ Verified Author: MflavellClick to view professional profile & credentials
No edit summary
No edit summary
Line 17: Line 17:
* Provide a Role Name
* Provide a Role Name
* Click Create Role
* Click Create Role
=Create an Access key=
Create an access key for a server admin
Save the key
=Configure the agent=
sudo /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-config-wizard
Answer questions

Revision as of 00:54, 13 July 2024

How to guide

install

wget https://amazoncloudwatch-agent.s3.amazonaws.com/ubuntu/amd64/latest/amazon-cloudwatch-agent.deb
chmod 777 amazon-cloudwatch-agent.deb
sudo dpkg -i -E amazon-cloudwatch-agent.deb

Create IAM Role

  • Sign in to the IAM console
  • Select Roles, Create Role
  • Select AWS Service
  • Select EC2 common use case
  • Select Next
  • Find CloudWatchAgentServerPolicy
  • Click checkbox next to CloudWatchAgentServerPolicy
  • Click Next
  • Provide a Role Name
  • Click Create Role

Create an Access key

Create an access key for a server admin Save the key

Configure the agent

sudo /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-config-wizard

Answer questions