GithubHelp home page GithubHelp logo

isabella232 / terraform-spotinst-connect-aws Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kchou94/terraform-spotinst-connect-aws

0.0 0.0 0.0 16 KB

A Terraform module to connect Amazon Web Services (AWS) accounts to the Spot platform.

Home Page: https://registry.terraform.io/modules/spotinst/connect-aws/spotinst

License: Apache License 2.0

Shell 2.17% Python 37.51% HCL 60.32%

terraform-spotinst-connect-aws's Introduction

Terraform AWS Examples for Spot.io

Introduction

Example Terraform for Spot.io

Details

The module will aid in automatically connecting your AWS Account to Spot via terraform. This will also leverage a python script to call the Spot.io APIs to create a Spot account within your Spot Organization and add the ARN of the created role.

Pre-Reqs

  • Spot Organization Admin API token. This is required to be added as an environment variable stored in SPOTINST_TOKEN.
  • Python 3 installed

###Example

module "spot_account_aws" {
    source = "stevenfeltner/aws-connect/spotinst"

    #AWS Profile (Optional)
    #profile = ""

    #Name of the linked account in Spot (Optional) If none is provided will use AWS account alias as the account name.
    #name = "test-terraform"
  
    #Policy File (Optional) File with policy to attach to role
    #policy_file = example.json
}

output "spot_account_id" {
    value = module.spot_account_aws.spot_account_id
}

Run

This terraform module will do the following:

On Apply:

  • Create AWS IAM Policy
  • Create AWS IAM Role
  • Create Spot Account within current Spot Organization
  • Assign Policy to IAM Role
  • Provide IAM Role to newly created Spot Account

On Destroy: Remove all above resources including deleting the Spot Account

terraform-spotinst-connect-aws's People

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.