Git Product home page Git Product logo

Comments (9)

osterman avatar osterman commented on May 25, 2024

Can you clarify what you mean by a “terraform node”?

The bucket is created by terraform in this module. You should not create the bucket by any other means.

Please note this module uses a bit of terraform “inception” to manage terraforms state bucket with terraform. Thus it’s a 2-phase process.

from terraform-aws-tfstate-backend.

osterman avatar osterman commented on May 25, 2024

I think the problem you are having is that you define a s3 backend before creating the s3 backend. You’ll note that in the first backend section there is no reference to s3. That is deliberate. Then after applying, the bucket is created. Now we can update the backend section to add s3. After doing that, we need to rerun terraform init which will import the state.

This is a coldstart problem. Just needs to happen once.

from terraform-aws-tfstate-backend.

baquick avatar baquick commented on May 25, 2024

Nope, this causes a whole bunch of problems.

proofofcorrectsteps

then I try and use the state in another folder, with no previous state, and I get this:

thenallthishappens

I tried skipping steps 4 and 5, thinking that worked, but then no state is saved....so since this change was made, I have now stuck. Been using this module for years with no problem...now I can't use it.

from terraform-aws-tfstate-backend.

baquick avatar baquick commented on May 25, 2024

$ terraform --version
Terraform v0.12.18

  • provider.aws v2.44.0
  • provider.local v1.4.0
  • provider.null v2.1.2
  • provider.template v2.1.2

from terraform-aws-tfstate-backend.

baquick avatar baquick commented on May 25, 2024

On Dec 2, 2019, I was able to use this module just fine. Had not had to create any infrastructure since then. Started yesterday....and this is what I ran into. was on v0.12.10 then as well..

from terraform-aws-tfstate-backend.

baquick avatar baquick commented on May 25, 2024

If I skip steps 4 and 5, I do not get the above errors, but my state doesn't get stored either....

from terraform-aws-tfstate-backend.

baquick avatar baquick commented on May 25, 2024

So I got thru that error, but now state is not being maintained between my folders...it says it is initializing the backend state, but it is not...

from terraform-aws-tfstate-backend.

baquick avatar baquick commented on May 25, 2024

The state is not being saved...tried numerous efforts...whatever update was made to this module has rendered it un-useful...will have to find another way to maintain remote state

from terraform-aws-tfstate-backend.

osterman avatar osterman commented on May 25, 2024

https://nolanlawson.com/2017/03/05/what-it-feels-like-to-be-an-open-source-maintainer/

from terraform-aws-tfstate-backend.

Related Issues (20)

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.