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. 14 Oct, 2020 2 commits
  2. 10 Oct, 2020 1 commit
  3. 08 Oct, 2020 1 commit
    • Kristin Laemmert's avatar
      deprecate helper/copy · 04be220f
      Kristin Laemmert authored
      helper/copy CopyDir was used heavily in tests. It differes from
      internal/copydir in a few ways, the main one being that it creates the
      dst directory while the internal version expected the dst to exist
      (there are other differences, which is why I did not just switch tests
      to using internal's CopyDir).
      
      I moved the CopyDir func from helper/copy into command_test.go; I could
      also have moved it into internal/copy and named it something like
      CreateDirAndCopy so if that seems like a better option please let me
      know.
      
      helper/copy/CopyFile was used in a couple of spots so I moved it into
      internal, at which point I thought it made more sense to rename the
      package copy (instead of copydir).
      
      There's also a `go mod tidy` included.
      04be220f
  4. 25 Sep, 2020 2 commits
  5. 23 Sep, 2020 1 commit
  6. 15 Sep, 2020 1 commit
  7. 14 Sep, 2020 1 commit
  8. 10 Sep, 2020 2 commits
    • Alisdair McDiarmid's avatar
      vendor: Upgrade mitchellh/cli · 59662c01
      Alisdair McDiarmid authored
      Update tests to match the fix in mitchellh/cli#71, which aligns MockUi
      with BasicUi and allows newlines in user input.
      
      We are not using the new ErrorWriter, added in mitchellh/cli#81, as it
      does not appear to interact correctly with panicwrap. All error output
      from CLI parsing will continue to appear on stdout, not stderr.
      59662c01
    • Pam Selle's avatar
      Point go module at master go-cty · 3723594b
      Pam Selle authored
      3723594b
  9. 03 Sep, 2020 1 commit
  10. 02 Sep, 2020 1 commit
    • Martin Atkins's avatar
      core: Remove the last few HIL remnants · b0da5b1c
      Martin Atkins authored
      We've not been using HIL in the main codepaths since Terraform 0.12, but
      some references to it (and some supporting functionality in Terraform)
      stuck around due to interactions with types we'd kept around to support
      legacy shims.
      
      However, removing the configs.RawConfig field from
      terraform.ResourceConfig disconnects that subtree of dependencies from
      everything else, allowing us to remove it. This is safe because the only
      remaining uses of terraform.ResourceConfig are shims from values that
      were already evaluated using the HCL 2 API, and thus they never need
      the "just in time" HIL evaluation that ResourceConfig.interpolateForce
      used to do.
      
      We also had some HIL references in configs/hcl2shim that were previously
      in support of the "terraform 0.12upgrade" command, but the implementation
      of that command is now removed.
      
      There was one remaining reference to HIL in a now-unused function in the
      helper/schema package, which I removed entirely here.
      
      This then allows us to remove the HIL dependency entirely, and also to
      clean up some remaining old remants of the legacy "config" package that
      we'd recently moved into the "configs" package pending further pruning.
      b0da5b1c
  11. 18 Aug, 2020 1 commit
  12. 07 Aug, 2020 1 commit
    • tombuildsstuff's avatar
      dependencies: updating Azure/azure-sdk-for-go, Azure/go-autorest,... · dc886f19
      tombuildsstuff authored
      dependencies: updating Azure/azure-sdk-for-go, Azure/go-autorest, hashicorp/go-azure-helpers, tombuildsstuff/giovanni
      
      * updating `github.com/Azure/azure-sdk-for-go` to `v45.0.0`
      * updating `github.com/Azure/go-autorest` to `v0.11.3`
      * updating `github.com/hashicorp/go-azure-helpers` to `v0.12.0`
      * updating `github.com/tombuildsstuff/giovanni` to `v0.12.0`
      dc886f19
  13. 08 Jul, 2020 1 commit
  14. 25 Jun, 2020 3 commits
  15. 17 Jun, 2020 2 commits
  16. 12 Jun, 2020 1 commit
  17. 11 Jun, 2020 2 commits
  18. 05 Jun, 2020 1 commit
  19. 04 Jun, 2020 1 commit
  20. 29 May, 2020 1 commit
  21. 27 May, 2020 1 commit
    • Paddy's avatar
      command: Unmanaged providers · 5127f1ef
      Paddy authored
      This adds supports for "unmanaged" providers, or providers with process
      lifecycles not controlled by Terraform. These providers are assumed to
      be started before Terraform is launched, and are assumed to shut
      themselves down after Terraform has finished running.
      
      To do this, we must update the go-plugin dependency to v1.3.0, which
      added support for the "test mode" plugin serving that powers all this.
      
      As a side-effect of not needing to manage the process lifecycle anymore,
      Terraform also no longer needs to worry about the provider's binary, as
      it won't be used for anything anymore. Because of this, we can disable
      the init behavior that concerns itself with downloading that provider's
      binary, checking its version, and otherwise managing the binary.
      
      This is all managed on a per-provider basis, so managed providers that
      Terraform downloads, starts, and stops can be used in the same commands
      as unmanaged providers. The TF_REATTACH_PROVIDERS environment variable
      is added, and is a JSON encoding of the provider's address to the
      information we need to connect to it.
      
      This change enables two benefits: first, delve and other debuggers can
      now be attached to provider server processes, and Terraform can connect.
      This allows for attaching debuggers to provider processes, which before
      was difficult to impossible. Second, it allows the SDK test framework to
      host the provider in the same process as the test driver, while running
      a production Terraform binary against the provider. This allows for Go's
      built-in race detector and test coverage tooling to work as expected in
      provider tests.
      
      Unmanaged providers are expected to work in the exact same way as
      managed providers, with one caveat: Terraform kills provider processes
      and restarts them once per graph walk, meaning multiple times during
      most Terraform CLI commands. As unmanaged providers can't be killed by
      Terraform, and have no visibility into graph walks, unmanaged providers
      are likely to have differences in how their global mutable state behaves
      when compared to managed providers. Namely, unmanaged providers are
      likely to retain global state when managed providers would have reset
      it. Developers relying on global state should be aware of this.
      5127f1ef
  22. 20 May, 2020 1 commit
    • Matthew Frahry's avatar
      Update azure backend storage sdk (#24669) · 481b03c3
      Matthew Frahry authored
      
      * update vendored azure sdk
      
      * vendor giovanni storage sdk
      
      * Add giovanni clients
      
      * go mod vendor
      
      * Swap to new storage sdk
      
      * workable tests
      
      * update .go-version to 1.14.2
      
      * Tests working minus SAS
      
      * Add SAS Token support
      
      * Update vendor
      
      * Passing tests
      
      * Add date randomizer
      
      * Captalize RG
      
      * Remove random bits
      
      * Update client var name
      Co-authored-by: default avatarkt <kt@katbyte.me>
      481b03c3
  23. 19 May, 2020 1 commit
  24. 18 May, 2020 1 commit
  25. 15 May, 2020 1 commit
    • Martin Atkins's avatar
      vendor: go get github.com/hashicorp/go-tfe@v0.8.0 · db4f3f8b
      Martin Atkins authored
      This includes a new TargetAddrs field on both Run and RunCreateOptions
      which we'll use to send resource addresses that were specified using
      -target on the CLI command line when using the remote backend.
      
      There were some unrelated upstream breaking changes compared to the last
      version we had vendored, so this commit also includes some changes to the
      backend/remote package to work with this new API, which now requires the
      remote backend to be aware of the remote system's opaque workspace id.
      db4f3f8b
  26. 14 May, 2020 1 commit
  27. 13 May, 2020 2 commits
  28. 07 May, 2020 1 commit
  29. 25 Apr, 2020 1 commit
  30. 24 Apr, 2020 1 commit
    • Brian Flad's avatar
      deps: github.com/aws/aws-sdk-go@v1.30.12 [master] (#24745) · 2681ccf8
      Brian Flad authored
      * update github.com/aws/aws-sdk-go to v1.30.9
      
      * deps: github.com/aws/aws-sdk-go@v1.30.12
      
      Reference: https://github.com/hashicorp/terraform/issues/24710
      Reference: https://github.com/hashicorp/terraform/issues/24741
      
      Changes:
      
      ```
      NOTES:
      
      * backend/s3: Region validation now automatically supports the new `af-south-1` (Africa (Cape Town)) region. For AWS operations to work in the new region, the region must be explicitly enabled as outlined in the [AWS Documentation](https://docs.aws.amazon.com/general/latest/gr/rande-manage.html#rande-manage-enable
      
      ). When the region is not enabled, the Terraform S3 Backend will return errors during credential validation (e.g. `error validating provider credentials: error calling sts:GetCallerIdentity: InvalidClientTokenId: The security token included in the request is invalid`).
      
      ENHANCEMENTS:
      
      * backend/s3: Support automatic region validation for `af-south-1`
      ```
      
      Updated via:
      
      ```console
      $ go get github.com/aws/aws-sdk-go@v1.30.12
      $ go mod tidy
      $ go mod vendor
      ```
      
      Output from acceptance testing:
      
      ```console
      $ TF_ACC=1 go test -v ./backend/remote-state/s3 | grep '^--- '
      --- PASS: TestBackend_impl (0.00s)
      --- PASS: TestBackendConfig (1.68s)
      --- PASS: TestBackendConfig_invalidKey (0.00s)
      --- PASS: TestBackendConfig_invalidSSECustomerKeyLength (0.00s)
      --- PASS: TestBackendConfig_invalidSSECustomerKeyEncoding (0.00s)
      --- PASS: TestBackendConfig_conflictingEncryptionSchema (0.00s)
      --- PASS: TestBackend (15.07s)
      --- PASS: TestBackendLocked (26.40s)
      --- PASS: TestBackendSSECustomerKey (16.99s)
      --- PASS: TestBackendExtraPaths (12.05s)
      --- PASS: TestBackendPrefixInWorkspace (5.55s)
      --- PASS: TestKeyEnv (45.07s)
      --- PASS: TestRemoteClient_impl (0.00s)
      --- PASS: TestRemoteClient (5.39s)
      --- PASS: TestRemoteClientLocks (14.30s)
      --- PASS: TestForceUnlock (20.08s)
      --- PASS: TestRemoteClient_clientMD5 (16.43s)
      --- PASS: TestRemoteClient_stateChecksum (24.58s)
      ```
      Co-authored-by: default avatarNicola Senno <nicola.senno@workday.com>
      2681ccf8
  31. 13 Apr, 2020 1 commit
  32. 09 Apr, 2020 1 commit
    • Alisdair McDiarmid's avatar
      vendor: go get github.com/zclconf/go-cty@v1.4.0 · 1593b8b8
      Alisdair McDiarmid authored
      This fixes several bugs:
      
      - `substr("abc", 0, 0)` would previously return `"abc"`, despite the
        length argument being `0`. This has been changed to return an empty
        string when length is zero.
      
      - `ceil(1/0)` and `floor(1/0)` would previously return a large integer
        value, rather than infinity. This has been fixed.
      1593b8b8