Skip to content

How should I create the backend (e.g., S3 bucket) for storing Terraform state? #769

Answered by brikis98
brikis98 asked this question in How do I
Discussion options

You must be logged in to vote

There are several different ways to handle this, each with various pros and cons:

Option 1: create the backend manually (ClickOps)

Overview

One option is to create your backend manually. For example, if you're using S3 as a backend, you'd login to the AWS Console, and click around for a while to create an S3 bucket and DynamoDB table.

Pros

  • It's an easy way to get started. If you only have a small number of backends to manage (e.g., your whole company just needs 1-3 S3 buckets), this approach works just fine.
  • You avoid the "chicken & egg" problem described below.
  • You can configure your backend however you want.

Cons

  • It's a manual process, so if you need more backends in the future, and/…

Replies: 11 comments 2 replies

Comment options

brikis98
Sep 15, 2023
Maintainer Author

You must be logged in to vote
1 reply
@giner
Comment options

Answer selected by brikis98
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@arukaen
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet