back
terraform {
required_providers {
aws = ">= 3.35.0"
}
}
top
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
variable "name" {
description = "(required)"
type = string
}
variable "tags" {
description = "(optional)"
type = map(string)
default = null
}
top
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
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