GithubHelp home page GithubHelp logo

sensu-ha-workshop's Introduction

Sensu HA Workshop

Requirements

Usage

NOTE: Using the code in this project to provision resources will incur charges against the configured AWS account. In using this project you accept responsibility for any costs incurred.

First, set environment variables as expected by AWS provider:

$ export AWS_ACCESS_KEY_ID="anaccesskey"
$ export AWS_SECRET_ACCESS_KEY="asecretkey"

NOTE: The terraform plan uses us-west-2 region by default. If you wish to use a different region you will need to specify it as an argument to terraform apply, e.g.: terraform apply -var region=us-west-1

Now you're ready to provision infrastructure:

  • terraform init - installs required Terraform modules
  • terraform apply - provisions AWS resources described in plan.tf

You may also provide values for variables via command-line flags:

$ terraform apply -var key_name=my_user -var key_path=~/.ssh/my_user-us-west-2.pem

After a successful terraform apply you should see output providing IP addresses for your EC2 instances:

Outputs:

rabbitmq_ips = [
    35.166.147.53,
    34.211.69.229,
    54.214.141.139
]
redis_ips = [
    54.201.125.218,
    54.245.153.124
]

You can print these again as needed by running terraform output.

Accessing each of these systems is accomplished using ssh with the private key file and the username centos:

ssh -i ~/.ssh/my_user-us-west-2.pem [email protected]

Finally, when you're done with the workshop run terraform destroy to tear down the infrastructure you've built to avoid any excess spending.

sensu-ha-workshop's People

Contributors

cwjohnston avatar rgeniesse 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.