terraform { required_providers { aws = { source = "hashicorp/aws" version = ">= 3.74" } } } data "aws_caller_identity" "current" {} data "aws_region" "current" {} locals { region = data.aws_region.current.name account = data.aws_caller_identity.current.account_id tags = { Environment = var.env Name = var.name } } resource "aws_iam_role" "cloudwatch_event_role" { name = "cloudwatch-event-role" assume_role_policy = <