Giter Club home page Giter Club logo

grafana-cross-account-cloudwatch-access's Introduction

Grafana cross account CloudWatch access

IAM role to allow Grafana read CloudWatch metrics/logs from another AWS account.

Please provision CloudFormation stack in the AWS account, where you want to allow access to CloudWatch metrics/logs. Customise parameters based on your needs: CloudFormation Stack parameters

Use stack output to configure CloudWatch datasource in your Grafana: CloudFormation Stack outputs Grafana CloudWatch datasource

See https://github.com/monitoringartist/grafana-aws-cloudwatch-dashboards for predefined AWS CloudWatch dashboards.

Author

Devops Monitoring Expert, who loves monitoring systems and cutting/bleeding edge technologies: Docker, Kubernetes, ECS, AWS, Google GCP, Terraform, Lambda, Zabbix, Grafana, Elasticsearch, Kibana, Prometheus, Sysdig,...

Summary:

Professional devops / monitoring / consulting services:

Monitoring Artist

grafana-cross-account-cloudwatch-access's People

Contributors

jangaraj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

grafana-cross-account-cloudwatch-access's Issues

Access from within EKS from another account still results in Access Denied

I have the following resources in Account A:

  • kubernetes service account
  • service account has annotation for an IAM role within Account A
  • IAM Role has allow action for sts:AssumeRole of the Role in Account B

Account B has the following:

  • your CloudFormation template with principal set to IAM Role from Account A

I provided the External ID and new IAM Role's ARN from Account B into Grafana that is running within Account A and I still receive the following

User: arn:aws:sts::<accountA>:assumed-role/monitoring-role/<session> is not authorized to perform: sts:AssumeRole on resource: arn:aws:iam::<AccountB>:role/monitoring-role-dev

Have you gotten this to work from EKS?

Cannot assume the role

There are 2 aws accounts in one grafana is running AWS Account A and on the other cloudwatch service is there Account B.

I logged in the account B and ran the cloudformation template and got the role arn and the external id , then I open the grafana GUI and pasted the same but got the error.

  1. CloudWatch metrics query failed: AccessDenied: User: arn:aws:sts::accounta:assumed-role/svc-cha-grafana-pre-live-grafana-cloudwatch-ro/i-04b932bc0fe364205 is not authorized to perform: sts:AssumeRole on resource: arn:aws:iam::accountb:role/govind-GrafanaRole-QD4MDTU0YDPT status code: 403, request id: 18c8f5d4-bb2e-40dd-88d2-62ca4fd3a703

do I have to do something in the account a too.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.