Skip to content

Latest commit

 

History

History
87 lines (65 loc) · 1.25 KB

aws_cloudwatch_event_bus.md

File metadata and controls

87 lines (65 loc) · 1.25 KB

aws_cloudwatch_event_bus

back

Index

Terraform

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

top

Example Usage

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

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

top

Variables

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

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

top

Resource

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

top

Outputs

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

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

output "this" {
  value = aws_cloudwatch_event_bus.this
}

top