GithubHelp home page GithubHelp logo

terraform-ec2's Introduction

Terrafrom infra Setup

To Create access keys for an IAM user without interrupting your applications (console)

While the first access key is still active, create a second access key.

Sign in to the AWS Management Console and open the IAM console at https://console.aws.amazon.com/iam/.

In the navigation pane, choose Users.

Choose the name of the intended user, and then choose the Security credentials tab.

Choose Create access key and then choose Download .csv file to save the access key ID and secret access key to a .csv file on your computer. Store the file in a secure location. You will not have access to the secret access key again after this closes. After you have downloaded the .csv file, choose Close.

The new access key is active by default. At this point, the user has two active access keys.

Update aws-access-key with the new access key

source aws-access-key

Update infra/group_vars/all with your domain name

vim infra/group_vars/all

Run terraform init and apply to start it

terraform init
terraform plan
terraform apply

Run terraform to Delete your stack

terraform destroy
vi backend.tf

# store the terraform state file in s3
terraform {
  backend "s3" {
    bucket    = "terraform-remote-state-ken"
    key       = "ken-ecs.tfstate"
    region    = "us-west-2"
    profile   = "default"
  }
}

terraform-ec2's People

Contributors

adelekks 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.