Skip to content

Latest commit

 

History

History
91 lines (69 loc) · 1.5 KB

aws_secretsmanager_secret_policy.md

File metadata and controls

91 lines (69 loc) · 1.5 KB

aws_secretsmanager_secret_policy

back

Index

Terraform

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

top

Example Usage

module "aws_secretsmanager_secret_policy" {
  source = "./modules/aws/r/aws_secretsmanager_secret_policy"

  # block_public_policy - (optional) is a type of bool
  block_public_policy = null
  # policy - (required) is a type of string
  policy = null
  # secret_arn - (required) is a type of string
  secret_arn = null
}

top

Variables

variable "block_public_policy" {
  description = "(optional)"
  type        = bool
  default     = null
}

variable "policy" {
  description = "(required)"
  type        = string
}

variable "secret_arn" {
  description = "(required)"
  type        = string
}

top

Resource

resource "aws_secretsmanager_secret_policy" "this" {
  # block_public_policy - (optional) is a type of bool
  block_public_policy = var.block_public_policy
  # policy - (required) is a type of string
  policy = var.policy
  # secret_arn - (required) is a type of string
  secret_arn = var.secret_arn
}

top

Outputs

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

output "this" {
  value = aws_secretsmanager_secret_policy.this
}

top