diff options
author | pmikus <pmikus@cisco.com> | 2021-09-07 07:01:36 +0000 |
---|---|---|
committer | pmikus <pmikus@cisco.com> | 2021-09-07 07:01:36 +0000 |
commit | 80a4b408b1bec92f51813c5b758d7b2739f665ed (patch) | |
tree | 6f8b989ee1e2e6489bc2bde3a7e52787b252193d /fdio.infra.terraform/1n_nmd/aws | |
parent | 16770f5d50d0e1f9f82901e19b106fc1b88c41b8 (diff) |
Terraform: Cleanup
+ Use terraform fmt to format
Signed-off-by: pmikus <pmikus@cisco.com>
Change-Id: I32bd2f81c5838722506d44a8ff8ab48da204643a
Diffstat (limited to 'fdio.infra.terraform/1n_nmd/aws')
-rw-r--r-- | fdio.infra.terraform/1n_nmd/aws/main.tf | 18 | ||||
-rw-r--r-- | fdio.infra.terraform/1n_nmd/aws/providers.tf | 4 | ||||
-rw-r--r-- | fdio.infra.terraform/1n_nmd/aws/variables.tf | 6 |
3 files changed, 14 insertions, 14 deletions
diff --git a/fdio.infra.terraform/1n_nmd/aws/main.tf b/fdio.infra.terraform/1n_nmd/aws/main.tf index 8084eb4e33..be7eb7c577 100644 --- a/fdio.infra.terraform/1n_nmd/aws/main.tf +++ b/fdio.infra.terraform/1n_nmd/aws/main.tf @@ -1,18 +1,18 @@ resource "vault_aws_secret_backend" "aws" { - access_key = var.aws_access_key - secret_key = var.aws_secret_key - path = "${var.name}-path" + access_key = var.aws_access_key + secret_key = var.aws_secret_key + path = "${var.name}-path" default_lease_ttl_seconds = "43200" max_lease_ttl_seconds = "43200" } resource "vault_aws_secret_backend_role" "admin" { - backend = vault_aws_secret_backend.aws.path - name = "${var.name}-role" - credential_type = "iam_user" + backend = vault_aws_secret_backend.aws.path + name = "${var.name}-role" + credential_type = "iam_user" - policy_document = <<EOF + policy_document = <<EOF { "Version": "2012-10-17", "Statement": [ @@ -29,9 +29,9 @@ EOF } output "backend" { - value = vault_aws_secret_backend.aws.path + value = vault_aws_secret_backend.aws.path } output "role" { - value = vault_aws_secret_backend_role.admin.name + value = vault_aws_secret_backend_role.admin.name } diff --git a/fdio.infra.terraform/1n_nmd/aws/providers.tf b/fdio.infra.terraform/1n_nmd/aws/providers.tf index 49922fd78f..9bcd95ec57 100644 --- a/fdio.infra.terraform/1n_nmd/aws/providers.tf +++ b/fdio.infra.terraform/1n_nmd/aws/providers.tf @@ -1,7 +1,7 @@ terraform { required_providers { - vault = { - version = ">=2.22.1" + vault = { + version = ">=2.22.1" } } required_version = ">= 1.0.3" diff --git a/fdio.infra.terraform/1n_nmd/aws/variables.tf b/fdio.infra.terraform/1n_nmd/aws/variables.tf index 4e5f61f238..ee9fb73a73 100644 --- a/fdio.infra.terraform/1n_nmd/aws/variables.tf +++ b/fdio.infra.terraform/1n_nmd/aws/variables.tf @@ -1,11 +1,11 @@ variable "aws_access_key" { - sensitive = true + sensitive = true } variable "aws_secret_key" { - sensitive = true + sensitive = true } variable "name" { - default = "dynamic-aws-creds-vault-admin" + default = "dynamic-aws-creds-vault-admin" }
\ No newline at end of file |