diff --git a/content/terraform/v1.12.x/docs/language/meta-arguments/provider.mdx b/content/terraform/v1.12.x/docs/language/meta-arguments/provider.mdx index 717b2056b3..56653c3897 100644 --- a/content/terraform/v1.12.x/docs/language/meta-arguments/provider.mdx +++ b/content/terraform/v1.12.x/docs/language/meta-arguments/provider.mdx @@ -11,7 +11,7 @@ type name. Note that the `provider` argument is distinct from the [`provider` bl ## Usage -By default, Terraform determines the local name of the provider from the first word in the resource type and uses that provider's default configuration to create the resource. For example, the resource type `google_compute_instance` automatically uses the default configuration for the `google` provider. +By default, Terraform determines the local name of the provider from the first word in the resource type and uses that provider's default configuration to create the resource. For example, the resource type `google_compute_instance` automatically uses the default configuration for the `google` provider. You can add multiple `provider` blocks to your configuration and use the `provider` argument to a resource definition to specify which provider it should use. For its value, the `provider` argument expects a reference formatted as `.`. In the following example, the `google_compute_instance` resource selects the provider configuration with the `europe` alias. @@ -31,11 +31,11 @@ resource "google_compute_instance" "example" { } ``` -Quotation marks are not required. Arbitrary expressions are not permitted because Terraform must resolve the `provider` value while constructing the dependency graph before Terraform can safely evaluate expressions. +Quotation marks are not required. Arbitrary expressions are not permitted because Terraform must resolve the `provider` value while constructing the dependency graph before Terraform can safely evaluate expressions. A resource always has an implicit dependency on its associated provider. This ensures that the provider is fully configured before Terraform takes any actions on resources. -Creating multiple configurations for a single provider is a common pattern for managing resources in different regions of multi-region services. +Creating multiple configurations for a single provider is a common pattern for managing resources in different regions of multi-region services. ## Supported constructs @@ -44,7 +44,7 @@ You can use `provider` in the following Terraform configuration blocks: - [`check` blocks](/terraform/language/block/check) - [`data` blocks](/terraform/language/block/data) - [`ephemeral` blocks](/terraform/language/block/ephemeral) -- [`import` block ](/terraform/language/block/import) +- [`import` block](/terraform/language/block/import) - [`resource` blocks](/terraform/language/block/resource) ## Example use cases @@ -114,4 +114,4 @@ import { resource "aws_instance" "web" { # ... } -``` \ No newline at end of file +``` diff --git a/content/terraform/v1.13.x/docs/language/meta-arguments/provider.mdx b/content/terraform/v1.13.x/docs/language/meta-arguments/provider.mdx index 717b2056b3..56653c3897 100644 --- a/content/terraform/v1.13.x/docs/language/meta-arguments/provider.mdx +++ b/content/terraform/v1.13.x/docs/language/meta-arguments/provider.mdx @@ -11,7 +11,7 @@ type name. Note that the `provider` argument is distinct from the [`provider` bl ## Usage -By default, Terraform determines the local name of the provider from the first word in the resource type and uses that provider's default configuration to create the resource. For example, the resource type `google_compute_instance` automatically uses the default configuration for the `google` provider. +By default, Terraform determines the local name of the provider from the first word in the resource type and uses that provider's default configuration to create the resource. For example, the resource type `google_compute_instance` automatically uses the default configuration for the `google` provider. You can add multiple `provider` blocks to your configuration and use the `provider` argument to a resource definition to specify which provider it should use. For its value, the `provider` argument expects a reference formatted as `.`. In the following example, the `google_compute_instance` resource selects the provider configuration with the `europe` alias. @@ -31,11 +31,11 @@ resource "google_compute_instance" "example" { } ``` -Quotation marks are not required. Arbitrary expressions are not permitted because Terraform must resolve the `provider` value while constructing the dependency graph before Terraform can safely evaluate expressions. +Quotation marks are not required. Arbitrary expressions are not permitted because Terraform must resolve the `provider` value while constructing the dependency graph before Terraform can safely evaluate expressions. A resource always has an implicit dependency on its associated provider. This ensures that the provider is fully configured before Terraform takes any actions on resources. -Creating multiple configurations for a single provider is a common pattern for managing resources in different regions of multi-region services. +Creating multiple configurations for a single provider is a common pattern for managing resources in different regions of multi-region services. ## Supported constructs @@ -44,7 +44,7 @@ You can use `provider` in the following Terraform configuration blocks: - [`check` blocks](/terraform/language/block/check) - [`data` blocks](/terraform/language/block/data) - [`ephemeral` blocks](/terraform/language/block/ephemeral) -- [`import` block ](/terraform/language/block/import) +- [`import` block](/terraform/language/block/import) - [`resource` blocks](/terraform/language/block/resource) ## Example use cases @@ -114,4 +114,4 @@ import { resource "aws_instance" "web" { # ... } -``` \ No newline at end of file +``` diff --git a/content/terraform/v1.14.x/docs/cli/import/index.mdx b/content/terraform/v1.14.x/docs/cli/import/index.mdx index 6d1e7b13a3..e44648fe56 100644 --- a/content/terraform/v1.14.x/docs/cli/import/index.mdx +++ b/content/terraform/v1.14.x/docs/cli/import/index.mdx @@ -10,7 +10,6 @@ This topic provides an overview of the Terraform commands that let you import ex > **Hands-on:** Try the [Import Terraform Configuration](/terraform/tutorials/state/state-import?utm_source=WEBSITE&utm_medium=WEB_IO&utm_offer=ARTICLE_PAGE&utm_content=DOCS) tutorial. - ## Workflows You can import an existing resource to state from the Terraform CLI. You can also perform import operations using HCP Terraform. To import multiple resources, use the `import` block. diff --git a/content/terraform/v1.14.x/docs/language/block/moved.mdx b/content/terraform/v1.14.x/docs/language/block/moved.mdx index b47ef87201..d6b3f4c12b 100644 --- a/content/terraform/v1.14.x/docs/language/block/moved.mdx +++ b/content/terraform/v1.14.x/docs/language/block/moved.mdx @@ -34,7 +34,7 @@ This section provides details about the fields you can configure in the `moved` The `moved` block specifies the previous address and the new address for the resource. The following table describes the arguments you can set in the `moved` block. -| Arbument | Description | Type | Required | +| Argument | Description | Type | Required | | --- | --- | --- | --- | | `from` | Specifies a resource's previous address. The syntax allows Terraform to select modules, resources, and resources inside child modules. | string | required | | `to` | Specifies the new address to relocate the resource to. The syntax allows Terraform to select modules, resources, and resources inside child modules. | string | required | @@ -50,4 +50,4 @@ moved { from = aws_instance.a to = aws_instance.b } -``` \ No newline at end of file +``` diff --git a/content/terraform/v1.14.x/docs/language/block/stack/tfcomponent/component.mdx b/content/terraform/v1.14.x/docs/language/block/stack/tfcomponent/component.mdx index 4c997836b5..f37cbec8b0 100644 --- a/content/terraform/v1.14.x/docs/language/block/stack/tfcomponent/component.mdx +++ b/content/terraform/v1.14.x/docs/language/block/stack/tfcomponent/component.mdx @@ -130,6 +130,12 @@ The keys in the `providers` map must match the provider names that the source mo `providers` is a **meta-argument**. Meta-arguments are built into the Terraform language and control how Terraform creates and manages resources. Refer to the [`providers` reference](/terraform/language/meta-arguments/providers) for details about how the argument works. +#### Summary + +- Data type: Map +- Default: None +- Required: Yes + ### `inputs` @@ -171,6 +177,7 @@ component "app_server" { # ... } ``` + You do not need to include the dependant component’s outputs in the `depends_on` list because Terraform automatically recognizes those dependencies. `depends_on` is a **meta-argument**. Meta-arguments are built into the Terraform language and control how Terraform creates and manages resources. Refer to the [`depends_on` reference](/terraform/language/meta-arguments/depends_on) for details about how the argument works. @@ -211,7 +218,6 @@ When you use `for_each`, Terraform creates one component instance for each item `for_each` is a **meta-argument**. Meta-arguments are built into the Terraform language and control how Terraform creates resources. Refer to the [`for_each` reference](/terraform/language/meta-arguments/for_each) for details about how the argument works. - ## Examples The following examples demonstrate common use cases for `component` blocks. diff --git a/content/terraform/v1.14.x/docs/language/block/stack/tfcomponent/provider.mdx b/content/terraform/v1.14.x/docs/language/block/stack/tfcomponent/provider.mdx index d4fdecc607..31f8d6626d 100644 --- a/content/terraform/v1.14.x/docs/language/block/stack/tfcomponent/provider.mdx +++ b/content/terraform/v1.14.x/docs/language/block/stack/tfcomponent/provider.mdx @@ -113,11 +113,6 @@ When you use `for_each`, you can reference individual provider instances using ` `for_each` is a **meta-argument**. Meta-arguments are built into the Terraform language and control how Terraform creates and manages resources. Refer to the [`for_each` reference](/terraform/language/meta-arguments/for_each) for details about how the argument works. -#### Summary - -- Data type: Map or Set -- Default: None - ## Examples The following examples demonstrate common use cases for `provider` blocks in Stacks. diff --git a/content/terraform/v1.14.x/docs/language/block/stack/tfcomponent/removed.mdx b/content/terraform/v1.14.x/docs/language/block/stack/tfcomponent/removed.mdx index c920288924..c83bc7e0f4 100644 --- a/content/terraform/v1.14.x/docs/language/block/stack/tfcomponent/removed.mdx +++ b/content/terraform/v1.14.x/docs/language/block/stack/tfcomponent/removed.mdx @@ -154,7 +154,8 @@ removed { -You can use `for_each` to remove components from specific regions or environments. + +The `for_each` meta-argument is useful when you want to remove components from specific regions or environments. `for_each` is a **meta-argument**. Meta-arguments are built into the Terraform language and control how Terraform creates and manages resources. Refer to the [`for_each` reference](/terraform/language/meta-arguments/for_each) for details about how the argument works. diff --git a/content/terraform/v1.14.x/docs/language/block/stack/tfcomponent/variable.mdx b/content/terraform/v1.14.x/docs/language/block/stack/tfcomponent/variable.mdx index 7bc0b67512..bf7bfe67ef 100644 --- a/content/terraform/v1.14.x/docs/language/block/stack/tfcomponent/variable.mdx +++ b/content/terraform/v1.14.x/docs/language/block/stack/tfcomponent/variable.mdx @@ -59,7 +59,7 @@ The `variable` block supports the following arguments: | `description` | A description of the variable's purpose and the value it expects. | String | Optional | | `sensitive` | Specifies if Terraform hides this value in UI and logs. | Boolean | Optional | | `nullable` | Specifies if the value of a variable can be `null`. | Boolean | Optional | -| `ephemeral` | Specifies whether Terraform excludes this value from plans and state. | Boolean | Boolean | Optional | +| `ephemeral` | Specifies whether Terraform excludes this value from plans and state. | Boolean | Optional | ### `type` diff --git a/content/terraform/v1.14.x/docs/language/data-sources/index.mdx b/content/terraform/v1.14.x/docs/language/data-sources/index.mdx index a053e392c6..c6b605a894 100644 --- a/content/terraform/v1.14.x/docs/language/data-sources/index.mdx +++ b/content/terraform/v1.14.x/docs/language/data-sources/index.mdx @@ -68,7 +68,7 @@ data "aws_ami" "example" { } ``` -The `data` block instructs Terraform to read from the `aws_ami` data source and export the result to an object named `example`. To reference the returned data, use the `data..