V
V
Vlad Tkachuk2020-07-13 18:54:36
Amazon Web Services
Vlad Tkachuk, 2020-07-13 18:54:36

How to add remote file storage?

5f0c83695ec5b372992162.png

terraform {
backend "s3" { bucket
= "terraformik"
key = ""
region = "eu-central-1"
}
}

The manual is not very clear on this issue.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2020-07-15
@rock3t

the key is the name of the object in the s3 bucket, the content of which corresponds to the terraform.tfstate file currently lying locally.
If you have a simple code (as in the screenshot) - you can safely name the key "terraform.tfstate
"
in general, you can name at least "123" - this is just the name of the key where the terraform will look for the state in the future. The only restriction is that the key name must comply with the rules for naming objects in S3

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question