This project is mirrored from https://:*****@github.com/hashicorp/terraform.git. Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
  1. 29 Oct, 2021 10 commits
    • Chris Arcand's avatar
      Update go-tfe to 26689e · 471dd479
      Chris Arcand authored
      These changes include additions to fulfill the interface for the client
      mock, plus moving all that logic (which needn't be duplicated across
      both the remote and cloud packages) over to the cloud package under a
      dedicated mock client file.
      471dd479
    • Chris Arcand's avatar
      cloud: Don't ignore .log golden files · 34597c23
      Chris Arcand authored
      34597c23
    • Chris Arcand's avatar
      Add missing log mocks · 85f37f1a
      Chris Arcand authored
      I missed adding these in the original porting commit from the remote
      backend, because *.log is added to gitignore.
      85f37f1a
    • Martin Atkins's avatar
      cloud: Backend implements new version of the backend.Local interface · f4758803
      Martin Atkins authored
      This makes the new backend compatible with the new terraform.Context API,
      which has changed in main.
      f4758803
    • Chris Arcand's avatar
      Allow cloud block overrides · 18d54c11
      Chris Arcand authored
      These changes allow cloud blocks to be overridden by backend blocks and
      vice versa; the logic follows the current backend behavior of a block
      overriding a preceding block in full, with no merges.
      18d54c11
    • Chris Arcand's avatar
      Defer cloud block overrides · 07b3d015
      Chris Arcand authored
      This restriction is temporary. Overrides should be allowed, but have the
      added complexity of needing to also override a 'backend' block, so this
      work is being deferred for now.
      07b3d015
    • Chris Arcand's avatar
      Remove ability to declare a 'cloud' backend · fccc873a
      Chris Arcand authored
      With the alternative block introduced in 7bf9b2c7b, this removes the
      ability to explicitly declare the 'cloud' backend. The literal backend
      interface is an implementation detail and no longer a user-level
      concept when using Terraform Cloud.
      fccc873a
    • Chris Arcand's avatar
      Add cloud {} configuration block for Terraform Cloud · a4c24e31
      Chris Arcand authored
      This is a replacement declaration for using Terraform Cloud as a remote
      backend, leaving the literal backend as an implementation detail and not
      a user-level concept.
      a4c24e31
    • Chris Arcand's avatar
      a5f06362
    • Chris Arcand's avatar
      Initial commit of 'cloud' package · ea8ad0b1
      Chris Arcand authored
      The cloud package intends to implement a new integration for
      Terraform Cloud/Enterprise. The purpose of this integration is to better
      support TFC users; it will shed some overly generic UX and architecture,
      behavior changes that are otherwise backwards incompatible in the remote
      backend, and technical debt - all of which are vestiges from before
      Terraform Cloud existed.
      
      This initial commit is largely a porting of the existing 'remote'
      backend, which will serve as an underlying implementation detail and not
      be a typical user-level backend. This is because to re-implement the
      literal backend interface is orthogonal to the purpose of this
      integration, and can always be migrated away from later.
      
      As this backend is considered an implementation detail, it will not be
      registered as a declarable backend. Within these changes it is, for easy
      of initial development and a clean diff.
      ea8ad0b1
  2. 26 Oct, 2021 2 commits
  3. 25 Oct, 2021 6 commits
  4. 23 Oct, 2021 1 commit
  5. 22 Oct, 2021 1 commit
  6. 21 Oct, 2021 3 commits
    • Alisdair McDiarmid's avatar
      backend/remote: Fix version check when migrating · 17294315
      Alisdair McDiarmid authored
      When migrating state to an existing Terraform Cloud workspace using the
      remote backend, we check the remote version is compatible with the local
      one by default.
      
      This commit fixes two bugs in this code:
      
      - If using the "name" strategy for the remote backend, the list of
        destination workspaces is empty. This resulted in no version checking
        of the remote workspace, and we fell back to the string equality
        check.
      - The user-specified CLI flag `-ignore-remote-version` was not being
        applied for the state migration version checking.
      17294315
    • Alisdair McDiarmid's avatar
      cli: Fix init failure with deleted cache · 39de3ebe
      Alisdair McDiarmid authored
      The init command needs to initialize a backend, in order to access
      state, in turn to derive provider requirements from state. The backend
      initialization step requires building provider factories, which
      previously would fail if a lockfile was present without a corresponding
      local provider cache.
      
      This commit ensures that in this situation only, errors with the
      provider factories are temporarily ignored. This allows us to continue
      to initialize the backend, fetch providers, and then report any errors
      as necessary.
      39de3ebe
    • Alisdair McDiarmid's avatar
      command/e2etest: Ensure init fixes missing cache · 1190b95f
      Alisdair McDiarmid authored
      We test that a deleted provider cache results in an error when running
      terraform plan, but previously did not test that running init (as
      instructed) would resolve the issue. This (failing) e2e test adds that
      step.
      1190b95f
  7. 20 Oct, 2021 6 commits
  8. 19 Oct, 2021 4 commits
  9. 16 Oct, 2021 1 commit
  10. 15 Oct, 2021 1 commit
  11. 14 Oct, 2021 5 commits