EC2Config + forward logs and metrics to cloudwatch

I have an existing Windows EC2 instance and I'd like to enable custom metrics to Cloudwatch and forward logs to Cloudwatch Logs. I understand that I need to install EC2Config agent to do this. Since this is an already provisioned instance I'm unable to use an IAM role for passing credentials. Will I be able to use an IAM User with the correct policy to do this ie can I hardcode the access key and secret key in EC2config somewhere?

Also for enabling Cloudwatch Custom Metrics + Logs is it simply a tick box that enables it?

Will EC2Config have any undesired impact on the OS, I can see many options around password changes and formatting EBS volumes - I assume if i leave those options alone it enable itself, since I'm only interested in forwarding logs to cloudwatch.

Thanks


You asked several questions, i will try to address them.

  • You cannot assign an IAM role to an instance after it has been created.
  • I would try to install the AWS cli tools and use aws configure to check if the EC2Config agent can use it
  • The agent sends the logs to CloudWatch. As it is an Agent running it does consume system resources but it should be minimal.
  • 链接地址: http://www.djcxy.com/p/80082.html

    上一篇: ASP.NET MVC默认URL视图

    下一篇: EC2Config +将日志和指标转发到cloudwatch