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. 23 Apr, 2021 1 commit
    • Kristin Laemmert's avatar
      lang/funcs: add (console-only) TypeFunction (#28501) · f6af7b4f
      Kristin Laemmert authored
      * lang/funcs: add (console-only) TypeFunction
      
      The type() function, which is only available for terraform console,
      prints out the type of a given value. This is mainly intended for
      debugging - it's nice to be able to print out terraform's understanding
      of a complex variable.
      
      This introduces a new field for Scope: ConsoleMode. When ConsoleMode is true, any additional functions intended for use in the console (only) may be added.
      f6af7b4f
  2. 21 Apr, 2021 2 commits
  3. 20 Apr, 2021 1 commit
  4. 05 Apr, 2021 1 commit
  5. 22 Mar, 2021 1 commit
  6. 16 Mar, 2021 1 commit
  7. 23 Feb, 2021 1 commit
    • Martin Atkins's avatar
      config: Use Unicode 13 rules for string manipulation · 5f3fb00a
      Martin Atkins authored
      Although we don't typically do configuration-level string wrangling
      directly in Terraform, we delegate to several other upstream libraries
      that do. These upgrades all switch to newer versions that support the
      latest definitions from Unicode 13, primarily affecting operations such
      as converting strings to upper/lowercase or splitting strings into
      component characters (substr, reverse, etc).
      
      The tests for the upstream libraries didn't show any regressions from
      these updates, so the Unicode 13 changes seem to be backward-compatible
      additions rather than significant breaking changes.
      
      (Our go.mod file had also become non-canonical in some ways, and the Go
      toolchain fixed that as part of this work, causing a few extra style-only
      diffs here that shouldn't cause any change in behavior.)
      5f3fb00a
  8. 22 Feb, 2021 2 commits
    • Martin Atkins's avatar
      command: Experimental "terraform test" command · 7f783429
      Martin Atkins authored
      This is just a prototype to gather some feedback in our ongoing research
      on integration testing of Terraform modules. The hope is that by having a
      command integrated into Terraform itself it'll be easier for interested
      module authors to give it a try, and also easier for us to iterate quickly
      based on feedback without having to coordinate across multiple codebases.
      
      Everything about this is subject to change even in future patch releases.
      Since it's a CLI command rather than a configuration language feature it's
      not using the language experiments mechanism, but generates a warning
      similar to the one language experiments generate in order to be clear that
      backward compatibility is not guaranteed.
      7f783429
    • Martin Atkins's avatar
      internal/moduletest: Experimental module testing helpers · 8330f8e9
      Martin Atkins authored
      As part of ongoing research into Terraform testing we'd like to use an
      experimental feature to validate our current understanding that expressing
      tests as part of the Terraform language, as opposed to in some other
      language run alongside, is a good and viable way to write practical
      module integration tests.
      
      This initial experimental incarnation of that idea is implemented as a
      provider, just because that's an easier extension point for research
      purposes than a first-class language feature would be. Whether this would
      ultimately emerge as a provider similar to this or as custom language
      constructs will be a matter for future research, if this first
      experiment confirms that tests written in the Terraform language are the
      best direction to take.
      
      The previous incarnation of this experiment was an externally-developed
      provider apparentlymart/testing, listed on the Terraform Registry. That
      helped with showing that there are some useful tests that we can...
      8330f8e9
  9. 09 Feb, 2021 1 commit
  10. 28 Jan, 2021 1 commit
    • Brian Flad's avatar
      deps: Bump github.com/aws/aws-sdk-go@v1.37.0 · ad8a2e8b
      Brian Flad authored
      Changes:
      
      ```
      * backend/s3: Support for AWS Single-Sign On (SSO) cached credentials
      ```
      
      Updated via:
      
      ```
      go get github.com/aws/aws-sdk-go@v1.37.0
      go mod tidy
      ```
      
      Please note that Terraform CLI will not initiate or perform the AWS SSO login flow. It is expected that you have already performed the SSO login flow using AWS CLI using the `aws sso login` command, or by some other mechanism before executing Terraform. More precisely, this credential handling must find a valid non-expired access token for the AWS SSO user portal URL in `~/.aws/sso/cache`. If a cached token is not found, is expired, or the file is malformed an error will be returned.
      
      You can use configure AWS SSO credentials from the AWS shared configuration file by specifying the required keys in the profile:
      
      ```
      sso_account_id
      sso_region
      sso_role_name
      sso_start_url
      ```
      
      For example, the following defines a profile "devsso" and specifies the AWS SSO parameters that defines the target account, role, sign-on portal, and the region where the user portal is located. Note: all SSO arguments must be provided, or an error will be returned.
      
      ```
      [profile devsso]
      sso_start_url = https:my-sso-portal.awsapps.com/start
      sso_role_name = SSOReadOnlyRole
      sso_region = us-east-1
      sso_account_id = 123456789012
      ```
      
      Additional Resources
      
      * [Configuring the AWS CLI to use AWS Single Sign-On](https:docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html)
      * [AWS Single Sign-On User Guide](https:docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html)
      ad8a2e8b
  11. 13 Jan, 2021 2 commits
    • Martin Atkins's avatar
      command: Use the new terminal.Streams object · d2c3403a
      Martin Atkins authored
      Here we propagate in the initialized terminal.Streams from package main,
      and then onwards to backends running in CLI mode.
      
      This also replaces our use of helper/wrappedstreams to determine whether
      stdin is a terminal or a pipe. helper/wrappedstreams returns incorrect
      file descriptors on Windows, causing StdinPiped to always return false on
      that platform and thus causing one of the odd behaviors discussed in
      
      Finally, this includes some wrappers around the ability to look up the
      number of columns in the terminal in preparation for use elsewhere. These
      wrappers deal with the fact that our unit tests typically won't populate
      meta.Streams.
      d2c3403a
    • Martin Atkins's avatar
      internal/terminal: Interrogate and initialize the terminal, if any · 17728c8f
      Martin Atkins authored
      This is a helper package that creates a very thin abstraction over
      terminal setup, with the main goal being to deal with all of the extra
      setup we need to do in order to get a UTF-8-supporting virtual terminal
      on a Windows system.
      17728c8f
  12. 06 Jan, 2021 1 commit
  13. 17 Dec, 2020 2 commits
  14. 10 Dec, 2020 1 commit
    • Alisdair McDiarmid's avatar
      command: Revert local patch for pkg/browser · 4b9dada8
      Alisdair McDiarmid authored
      The upstream bug with opening a browser on Windows Subsystem for Linux
      has been fixed, so this reverts our local patch for this. The approach
      upstream adds fallback support for x-www-browser and www-browser if
      xdg-open fails, and this fixes the problem on WSL.
      
      This reverts commit 12e090ce.
      4b9dada8
  15. 07 Dec, 2020 1 commit
  16. 01 Dec, 2020 1 commit
  17. 30 Nov, 2020 2 commits
  18. 18 Nov, 2020 1 commit
  19. 13 Nov, 2020 1 commit
  20. 11 Nov, 2020 1 commit
    • Rémi Lapeyre's avatar
      Update libpq · c7be001a
      Rémi Lapeyre authored
      This is needed to make it possible to use the scram-sha-256
      authentication method for the pg backend. It's not easy to write
      unit-tests for this since it requires a specific configuration of the
      PostgreSQL server, I did test it manually thought and everything seems
      to work like it should.
      
      Closes https://github.com/hashicorp/terraform/issues/24016
      c7be001a
  21. 06 Nov, 2020 2 commits
  22. 05 Nov, 2020 1 commit
  23. 02 Nov, 2020 1 commit
  24. 27 Oct, 2020 1 commit
    • tombuildsstuff's avatar
      dependencies: updating Azure Dependencies · 4149a7e8
      tombuildsstuff authored
      * github.com/Azure/azure-sdk-for-go to v47.1.0
      * github.com/Azure/go-autorest to v0.11.10
      * github.com/hashicorp/go-azure-helpers to v0.13.0
      * github.com/tombuildsstuff/giovanni to v0.14.0
      4149a7e8
  25. 22 Oct, 2020 1 commit
    • James Bardin's avatar
      update hclog · b4f9c54c
      James Bardin authored
      Added an Off level to hclog, so we can individually disable logging at
      various levels.
      
      Added IndependentLevels so that sublogger levels are not linked to their
      parents.
      b4f9c54c
  26. 21 Oct, 2020 2 commits
    • James Bardin's avatar
      update hclog-go · a2dee91e
      James Bardin authored
      We need some fixes from master.
      a2dee91e
    • James Bardin's avatar
      remove prefixed io · fd4f7eb0
      James Bardin authored
      The main process is now handling what output to print, so it doesn't do
      any good to try and run it through prefixedio, which is only adding
      extra coordination to echo the same data.
      fd4f7eb0
  27. 19 Oct, 2020 1 commit
  28. 14 Oct, 2020 4 commits
  29. 10 Oct, 2020 1 commit
  30. 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