Skip to content

Latest commit

 

History

History
128 lines (98 loc) · 2.25 KB

aws_secretsmanager_secret.md

File metadata and controls

128 lines (98 loc) · 2.25 KB

aws_secretsmanager_secret

back

Index

Terraform

terraform {
  required_providers {
    aws = ">= 3.35.0"
  }
}

top

Example Usage

module "aws_secretsmanager_secret" {
  source = "./modules/aws/d/aws_secretsmanager_secret"

  # arn - (optional) is a type of string
  arn = null
  # name - (optional) is a type of string
  name = null
}

top

Variables

variable "arn" {
  description = "(optional)"
  type        = string
  default     = null
}

variable "name" {
  description = "(optional)"
  type        = string
  default     = null
}

top

Datasource

data "aws_secretsmanager_secret" "this" {
  # arn - (optional) is a type of string
  arn = var.arn
  # name - (optional) is a type of string
  name = var.name
}

top

Outputs

output "arn" {
  description = "returns a string"
  value       = data.aws_secretsmanager_secret.this.arn
}

output "description" {
  description = "returns a string"
  value       = data.aws_secretsmanager_secret.this.description
}

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

output "kms_key_id" {
  description = "returns a string"
  value       = data.aws_secretsmanager_secret.this.kms_key_id
}

output "name" {
  description = "returns a string"
  value       = data.aws_secretsmanager_secret.this.name
}

output "policy" {
  description = "returns a string"
  value       = data.aws_secretsmanager_secret.this.policy
}

output "rotation_enabled" {
  description = "returns a bool"
  value       = data.aws_secretsmanager_secret.this.rotation_enabled
}

output "rotation_lambda_arn" {
  description = "returns a string"
  value       = data.aws_secretsmanager_secret.this.rotation_lambda_arn
}

output "rotation_rules" {
  description = "returns a list of object"
  value       = data.aws_secretsmanager_secret.this.rotation_rules
}

output "tags" {
  description = "returns a map of string"
  value       = data.aws_secretsmanager_secret.this.tags
}

output "this" {
  value = aws_secretsmanager_secret.this
}

top