Coder Social home page Coder Social logo

autostoppinglab's Introduction

Getting started

Following are the requirements to get started

  1. Terraform setup and ready to run
  2. Harness Account ID
  3. AutoStopping enabled cloud connector ID
  4. Next gen API key (personal key/service token)

Each folder contains variable.tf. Modify the following variables accordingly:

variable "account_id" {
  type    = string
  default = "wOSgd9G8SuajZo1dISEF2g"
}
variable "cloud_connector_id" {
  type    = string
  default = "Lightwing_Non_Prod"
}
variable "api_key" {
  type    = string
  default = "Set the env variable TF_VAR_api_key"
}

Creating AutoStopping proxy

This is required for any sample app installation which uses proxy.

cd aws/proxy
terraform init
terraform apply

After the above commands are successful,

  • Navigate to Harness -> CloudCost -> Setup -> Load Balancer and ensure the proxy is created without errors.
  • Open AWS console and search for the proxy VM in the list of EC2 VMs. Proxy VM name will be defined in variable.tf. Default name will be proxy-demo1.

EC2 HTTP & SSH with proxy

cd aws/ec2-with-proxy
  • Open the variable.tf file and change the following values
  • proxy_id: Copy the proxy id from the Load Balancers page in Harness
  • proxy_public_ip: Copy the proxy public IP from AWS console. Search for proxy name in the AWS EC2 instance list and copy the public IP
cd aws/ec2-with-proxy
terraform init
terraform apply

RDS Connect using proxy

cd aws/rdsconnect
terraform init
terraform plan

autostoppinglab's People

Contributors

riyasyash avatar raviyadalam avatar rssnyder avatar navaneeth avatar

Watchers

Sandeep Bhat avatar Shalin LK avatar  avatar  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.