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.
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
- 23 Apr, 2021 1 commit
-
-
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.
-
- 21 Apr, 2021 2 commits
-
-
Martin Atkins authored
This includes the improvements to various collection-related functions to make them handle marks more precisely. For Terraform in particular that translates into handling sensitivity more precisely, so that non-sensitive collections that happen to contain sensitive elements won't get simplified into wholly-sensitive collections when using these functions.
-
Kristin Laemmert authored
+ go mod tidy
-
- 20 Apr, 2021 1 commit
-
-
James Bardin authored
update to v2.10.0
-
- 05 Apr, 2021 1 commit
-
-
Matthew Hooker authored
-
- 22 Mar, 2021 1 commit
-
-
Matthew Frahry authored
-
- 16 Mar, 2021 1 commit
-
-
James Bardin authored
-
- 23 Feb, 2021 1 commit
-
-
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.)
-
- 22 Feb, 2021 2 commits
-
-
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.
-
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...
-
- 09 Feb, 2021 1 commit
-
-
James Bardin authored
-
- 28 Jan, 2021 1 commit
-
-
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)
-
- 13 Jan, 2021 2 commits
-
-
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.
-
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.
-
- 06 Jan, 2021 1 commit
-
-
Alisdair McDiarmid authored
-
- 17 Dec, 2020 2 commits
-
-
Alisdair McDiarmid authored
-
Alisdair McDiarmid authored
-
- 10 Dec, 2020 1 commit
-
-
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.
-
- 07 Dec, 2020 1 commit
-
-
Pam Selle authored
-
- 01 Dec, 2020 1 commit
-
-
James Bardin authored
-
- 30 Nov, 2020 2 commits
-
-
James Bardin authored
-
Alisdair McDiarmid authored
-
- 18 Nov, 2020 1 commit
-
-
Alisdair McDiarmid authored
-
- 13 Nov, 2020 1 commit
-
-
Kent 'picat' Gruber authored
-
- 11 Nov, 2020 1 commit
-
-
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
-
- 06 Nov, 2020 2 commits
-
-
James Bardin authored
-
Upo authored
-
- 05 Nov, 2020 1 commit
-
-
Pam Selle authored
-
- 02 Nov, 2020 1 commit
-
-
Alisdair McDiarmid authored
Includes fix for breaking upstream API change.
-
- 27 Oct, 2020 1 commit
-
-
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
-
- 22 Oct, 2020 1 commit
-
-
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.
-
- 21 Oct, 2020 2 commits
-
-
James Bardin authored
We need some fixes from master.
-
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.
-
- 19 Oct, 2020 1 commit
-
-
James Bardin authored
-
- 14 Oct, 2020 4 commits
-
-
Alisdair McDiarmid authored
-
Alisdair McDiarmid authored
-
Alisdair McDiarmid authored
-
James Bardin authored
Update go-cmp to prevent pointer arithmetic panics when using the race detector.
-
- 10 Oct, 2020 1 commit
-
-
Carlos Alexandro Becker authored
closes #26516 Signed-off-by:
Carlos Alexandro Becker <caarlos0@gmail.com>
-
- 08 Oct, 2020 1 commit
-
-
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.
-