Posts

Showing posts from April, 2019

AWS cloudwatch insights for Developers

Image
This blog is about making the AWS cloud-watch insights available for developers. It is achieved by creating a single page server less web application were developers can query the logs.  I will also discuss how our application logs in containers or VMs are pushed to AWS cloudwatch. Why? 1. Easiness and convenience for developers 2. Restricted access to developers. Application logs to AWS cloudwatch Reference  AWS Documentation Step 1: Create an IAM Role and attach it to the EC2 instances              To create IAM Role, Navigate to IAM -> Roles -> Create Role -> Select AWS Service and EC2 -> Next Permissions -> Create Policy-> JSON -> provide the below json -> Review Policy -> Provide name, description -> Create Policy -> Refresh policy list to get newly create policy in role creation page -> search the policy with name and select it -> Next: Tags ->Next: Review -> Provide name and description -> Create Role             Get the