Skip to content

Latest commit

 

History

History
97 lines (74 loc) · 1.53 KB

aws_accessanalyzer_analyzer.md

File metadata and controls

97 lines (74 loc) · 1.53 KB

aws_accessanalyzer_analyzer

back

Index

Terraform

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

top

Example Usage

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

  # analyzer_name - (required) is a type of string
  analyzer_name = null
  # tags - (optional) is a type of map of string
  tags = {}
  # type - (optional) is a type of string
  type = null
}

top

Variables

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

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

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

top

Resource

resource "aws_accessanalyzer_analyzer" "this" {
  # analyzer_name - (required) is a type of string
  analyzer_name = var.analyzer_name
  # tags - (optional) is a type of map of string
  tags = var.tags
  # type - (optional) is a type of string
  type = var.type
}

top

Outputs

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

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

output "this" {
  value = aws_accessanalyzer_analyzer.this
}

top