Giter Site home page Giter Site logo

prometheus-aws-configuration's Introduction

Prometheus configuration on AWS

Terraform configuration to manage a Prometheus server running on AWS.

Assuming role with AWS Vault

To assume the proper role in AWS to run Terraform we are using the AWS Vault tool.

First, follow the instructions in the AWS Vault project to configure your environment.

After that, the tool is completely operational but each time that is executed, it asks for the credentials to access the keychain.

To avoid this, we can follow the next steps (in OS X):

  1. Open the 'Keychain Access' utility.
  2. In the menu select "File > Add Keychain..."
  3. Select the "aws-vault.keychain". It can be found in ~/Library/Keychains/.
  4. Once it is added, right click in it (it shows in the left hand side under 'Keychains') and select Change Settings for Keychain aws-vault.
  5. Uncheck Lock after X minutes of inactivity and Look when sleeping

After this change, your credentials should be only asked the first time you use the tool after start/restart the machine.

Setup

brew install terraform

cd terraform

aws-vault exec <your-aws-profile-name> -- terraform init

You will be asked for the region of the S3 bucket. You should answer:

eu-west-1

Test you are set up succesfully by running:

aws-vault exec <your-aws-profile-name> -- terraform plan

You should get no error message

prometheus-aws-configuration's People

Contributors

danielroseman avatar davbo avatar deanwilson avatar idavidmcdonald avatar jonathanhallam avatar murilodalri avatar philandstuff avatar tuzz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

prometheus-aws-configuration's Issues

Add a license?

Hi,

Is there an open source license for these files?

Many Thanks,

Jim

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.