Coder Social home page Coder Social logo

infra's Introduction

Infrastructure Setup for AWS Account

Initial Setup

Start the initial setup with local-Backend and the profile setting in the AWS Provider activated to use your user for setting up the IAM-Role to use subsequently.

Run the following steps:

terraform init
terraform apply # check output and confirm with yes

Afterwards, you should have createda a new role deploy that will be used to deploy remaining resources. For this, remove the comment from the assume_role-setting block in main.tf and use the created role for all steps following.

Now, let's create the state-management related resources:

terraform apply # check output and confirm with yes

Now the state-bucket and -table have been created and we can switch to a remote state. Remove the comment around backend "s3" and comment out backend "local" and run the following

terraform init

Confirm with yes when asked to and wait for the process to finish.

From now on, all state will be stored in the S3-Bucket and you can use the deploy-role for all further infrastructure deployments.

infra's People

Contributors

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