Skip to content

Latest commit

 

History

History
91 lines (69 loc) · 1.62 KB

vault_aws_auth_backend_sts_role.md

File metadata and controls

91 lines (69 loc) · 1.62 KB

vault_aws_auth_backend_sts_role

back

Index

Terraform

terraform {
  required_providers {
    vault = ">= 2.19.0"
  }
}

top

Example Usage

module "vault_aws_auth_backend_sts_role" {
  source = "./modules/vault/r/vault_aws_auth_backend_sts_role"

  # account_id - (required) is a type of string
  account_id = null
  # backend - (optional) is a type of string
  backend = null
  # sts_role - (required) is a type of string
  sts_role = null
}

top

Variables

variable "account_id" {
  description = "(required) - AWS account ID to be associated with STS role."
  type        = string
}

variable "backend" {
  description = "(optional) - Unique name of the auth backend to configure."
  type        = string
  default     = null
}

variable "sts_role" {
  description = "(required) - AWS ARN for STS role to be assumed when interacting with the account specified."
  type        = string
}

top

Resource

resource "vault_aws_auth_backend_sts_role" "this" {
  # account_id - (required) is a type of string
  account_id = var.account_id
  # backend - (optional) is a type of string
  backend = var.backend
  # sts_role - (required) is a type of string
  sts_role = var.sts_role
}

top

Outputs

output "id" {
  description = "returns a string"
  value       = vault_aws_auth_backend_sts_role.this.id
}

output "this" {
  value = vault_aws_auth_backend_sts_role.this
}

top