OpenTofu lets you declaratively manage your cloud infrastructure.
Go to file
Martin Atkins fda0579537 Experiments supported only in alpha/dev builds
We originally introduced the idea of language experiments as a way to get
early feedback on not-yet-proven feature ideas, ideally as part of the
initial exploration of the solution space rather than only after a
solution has become relatively clear.

Unfortunately, our tradeoff of making them available in normal releases
behind an explicit opt-in in order to make it easier to participate in the
feedback process had the unintended side-effect of making it feel okay
to use experiments in production and endure the warnings they generate.
This in turn has made us reluctant to make use of the experiments feature
lest experiments become de-facto production features which we then feel
compelled to preserve even though we aren't yet ready to graduate them
to stable features.

In an attempt to tweak that compromise, here we make the availability of
experiments _at all_ a build-time flag which will not be set by default,
and therefore experiments will not be available in most release builds.

The intent (not yet implemented in this PR) is for our release process to
set this flag only when it knows it's building an alpha release or a
development snapshot not destined for release at all, which will therefore
allow us to still use the alpha releases as a vehicle for giving feedback
participants access to a feature (without needing to install a Go
toolchain) but will not encourage pretending that these features are
production-ready before they graduate from experimental.

Only language experiments have an explicit framework for dealing with them
which outlives any particular experiment, so most of the changes here are
to that generalized mechanism. However, the intent is that non-language
experiments, such as experimental CLI commands, would also in future
check Meta.AllowExperimentalFeatures and gate the use of those experiments
too, so that we can be consistent that experimental features will never
be available unless you explicitly choose to use an alpha release or
a custom build from source code.

Since there are already some experiments active at the time of this commit
which were not previously subject to this restriction, we'll pragmatically
leave those as exceptions that will remain generally available for now,
and so this new approach will apply only to new experiments started in the
future. Once those experiments have all concluded, we will be left with
no more exceptions unless we explicitly choose to make an exception for
some reason we've not imagined yet.

It's important that we be able to write tests that rely on experiments
either being available or not being available, so here we're using our
typical approach of making "package main" deal with the global setting
that applies to Terraform CLI executables while making the layers below
all support fine-grain selection of this behavior so that tests with
different needs can run concurrently without trampling on one another.

As a compromise, the integration tests in the terraform package will
run with experiments enabled _by default_ since we commonly need to
exercise experiments in those tests, but they can selectively opt-out
if they need to by overriding the loader setting back to false again.
2022-06-17 14:46:07 -07:00
.github build: Accept version numbers with prereleases containing dashes 2022-05-23 16:48:34 -07:00
.release [RelAPI Onboarding] Add release API metadata file 2022-03-22 11:24:44 -07:00
docs docs: "Resource Instance Change Lifecycle" revised 2022-06-09 10:19:43 -07:00
internal Experiments supported only in alpha/dev builds 2022-06-17 14:46:07 -07:00
scripts Fix for newer go version (#30889) 2022-04-22 14:30:35 +01:00
tools build: Add exhaustive switch statement lint 2021-09-24 15:12:44 -04:00
version Cleanup after v1.3.0-alpha20220608 release 2022-06-08 17:31:07 +00:00
website Merge pull request #31210 from hashicorp/update-optional-type-attributes 2022-06-17 15:47:57 -04:00
.gitignore Fix .gitignore terraform entry to be root-relative 2022-05-05 10:24:38 -04:00
.go-version update go version 2022-04-27 15:04:30 -04:00
.tfdev Remove revision from version command 2021-01-12 16:35:30 -05:00
BUGPROCESS.md Update BUGPROCESS.md 2020-12-10 12:15:39 -05:00
CHANGELOG.md Update CHANGELOG.md 2022-06-17 11:57:12 -04:00
checkpoint.go Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
codecov.yml update to match new default branch name (#27909) 2021-02-24 13:36:47 -05:00
CODEOWNERS etcdv3 backend is unmaintained 2021-07-20 13:59:08 -04:00
commands.go Experiments supported only in alpha/dev builds 2022-06-17 14:46:07 -07:00
Dockerfile switch to hashicorp docker mirror 2020-10-29 22:37:11 -04:00
experiments.go Experiments supported only in alpha/dev builds 2022-06-17 14:46:07 -07:00
go.mod go.mod: Now targeting the Go 1.18 language 2022-06-16 07:03:36 -07:00
go.sum go.mod: Now targeting the Go 1.18 language 2022-06-16 07:03:36 -07:00
help.go Improve the help.go docs: typo and a more explicit comment. 2022-01-24 10:52:37 +00:00
LICENSE Adding license 2014-07-28 13:54:06 -04:00
main_test.go remove the use of panicwrap 2021-10-28 11:51:39 -04:00
main.go Experiments supported only in alpha/dev builds 2022-06-17 14:46:07 -07:00
Makefile feat: support local preview, post split; add deploy preview (#30814) 2022-04-21 13:58:16 -04:00
plugins.go Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
provider_source.go Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
README.md fix broken logo in readme (#29705) 2021-10-05 16:31:02 -04:00
signal_unix.go Upgrade to Go 1.17 2021-08-17 15:20:05 -07:00
signal_windows.go Upgrade to Go 1.17 2021-08-17 15:20:05 -07:00
tools.go build: GitHub Actions "Quick Checks" workflow 2022-04-04 08:12:44 -07:00
version.go Remove revision from version command 2021-01-12 16:35:30 -05:00
working_dir.go workdir: Start of a new package for working directory state management 2021-09-10 14:56:49 -07:00

Terraform

Terraform

Terraform is a tool for building, changing, and versioning infrastructure safely and efficiently. Terraform can manage existing and popular service providers as well as custom in-house solutions.

The key features of Terraform are:

  • Infrastructure as Code: Infrastructure is described using a high-level configuration syntax. This allows a blueprint of your datacenter to be versioned and treated as you would any other code. Additionally, infrastructure can be shared and re-used.

  • Execution Plans: Terraform has a "planning" step where it generates an execution plan. The execution plan shows what Terraform will do when you call apply. This lets you avoid any surprises when Terraform manipulates infrastructure.

  • Resource Graph: Terraform builds a graph of all your resources, and parallelizes the creation and modification of any non-dependent resources. Because of this, Terraform builds infrastructure as efficiently as possible, and operators get insight into dependencies in their infrastructure.

  • Change Automation: Complex changesets can be applied to your infrastructure with minimal human interaction. With the previously mentioned execution plan and resource graph, you know exactly what Terraform will change and in what order, avoiding many possible human errors.

For more information, see the introduction section of the Terraform website.

Getting Started & Documentation

Documentation is available on the Terraform website:

If you're new to Terraform and want to get started creating infrastructure, please check out our Getting Started guides on HashiCorp's learning platform. There are also additional guides to continue your learning.

Show off your Terraform knowledge by passing a certification exam. Visit the certification page for information about exams and find study materials on HashiCorp's learning platform.

Developing Terraform

This repository contains only Terraform core, which includes the command line interface and the main graph engine. Providers are implemented as plugins, and Terraform can automatically download providers that are published on the Terraform Registry. HashiCorp develops some providers, and others are developed by other organizations. For more information, see Extending Terraform.

To learn more about compiling Terraform and contributing suggested changes, please refer to the contributing guide.

To learn more about how we handle bug reports, please read the bug triage guide.

License

Mozilla Public License v2.0