Remove Interpolation-only expressions from website/docs files (#36065)

* Remove Interpolation-only expressions from website/docs files

Interpolation-only expressions are deprecated in Terraform v0.12.14
See. https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.10.0/docs/rules/terraform_deprecated_interpolation.md

* Revert whitespace trimming at the end of lines

* Preserve interpolation-only expressions for JSON

* Preserve interpolation-only expressions for < 0.11 samples

* Remove Interpolation-only expressions from website/docs files
input-deprecation
nimzo6689 1 year ago committed by GitHub
parent 291c1ad4ad
commit b4a634ced8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -108,8 +108,8 @@ variable "access_key" {}
variable "secret_key" {}
provider "aws" {
access_key = "${var.access_key}"
secret_key = "${var.secret_key}"
access_key = var.access_key
secret_key = var.secret_key
}
```

@ -454,7 +454,7 @@ provider "aws" {
# environment or the global credentials file.
assume_role = {
role_arn = "${var.workspace_iam_roles[terraform.workspace]}"
role_arn = var.workspace_iam_roles[terraform.workspace]
}
}
```

@ -30,7 +30,7 @@ special `dynamic` block type, which is supported inside `resource`, `data`,
```hcl
resource "aws_elastic_beanstalk_environment" "tfenvtest" {
name = "tf-test-name"
application = "${aws_elastic_beanstalk_application.tftest.name}"
application = aws_elastic_beanstalk_application.tftest.name
solution_stack_name = "64bit Amazon Linux 2018.03 v2.11.4 running Go 1.12.6"
dynamic "setting" {

@ -334,7 +334,7 @@ provider "aws" {
provider "google" {
alias = "usw1"
credentials = "${file("account.json")}"
credentials = file("account.json")
project = "my-project-id"
region = "us-west1"
zone = "us-west1-a"
@ -342,7 +342,7 @@ provider "google" {
provider "google" {
alias = "usw2"
credentials = "${file("account.json")}"
credentials = file("account.json")
project = "my-project-id"
region = "us-west2"
zone = "us-west2-a"

@ -59,8 +59,8 @@ provisioner "file" {
connection {
type = "ssh"
user = "root"
password = "${var.root_password}"
host = "${var.host}"
password = var.root_password
host = var.host
}
}
@ -72,8 +72,8 @@ provisioner "file" {
connection {
type = "winrm"
user = "Administrator"
password = "${var.admin_password}"
host = "${var.host}"
password = var.admin_password
host = var.host
}
}
```

@ -53,7 +53,7 @@ to spin up smaller cluster sizes. For example:
```hcl
resource "aws_instance" "example" {
count = "${terraform.workspace == "default" ? 5 : 1}"
count = terraform.workspace == "default" ? 5 : 1
# ... other arguments
}

Loading…
Cancel
Save