GithubHelp home page GithubHelp logo

seifrajhi / cloudwatch-cross-account-observability Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 2 KB

Collate metrics from AWS resources from multiple accounts (in the same region) into one designated monitoring account.

HCL 100.00%

cloudwatch-cross-account-observability's Introduction

Configure a monitoring account

A source account is an individual AWS account that generates observability data for the resources in it. A monitoring account is the account that can view and interact with observability data generated from source accounts. Configuring the monitoring account requires us to configure a Sink and a Sink policy.

It is worth mentioning the following caveats:

  • terraform version 1.x is required at minimum
  • terraform AWS Provider 4.62.0 is required at minimum
cd oam-sink

Then Change source_account_ids with the list of source accounts in vars.tf

terraform init
terraform plan
terraform apply

Once applied, you should be able to verify in the AWS console that the monitoring account has been enabled.

Configure source account(s)

For each source account you’ll need to:

  • Create a link to the monitoring account
  • Enable the AWSServiceRoleForCloudWatchCrossAccount role — which is created by CloudWatch when the monitoring account is enabled — in the monitoring account to assume the CloudWatch-CrossAccountSharingRole role in the source account.
cd oam-link

Then Change monitoring_account_sink_identifier with the monitoring account sink identifier ans monitoring_account_id with the monitoring account id in vars.tf

terraform init
terraform plan
terraform apply

Once the above has been applied you can now go into your monitoring account and enter a source account number to see metrics from the source account

cloudwatch-cross-account-observability's People

Contributors

seifrajhi avatar

Watchers

 avatar

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.