terraform { required_providers { aws = { source = "hashicorp/aws" version = "~> 3.27" } } required_version = ">= 0.14.9" } provider "aws" { profile = "default" region = "us-east-1" } data "aws_caller_identity" "current" {} # Create new SNS topic resource "aws_sns_topic" "MySNSTopic" { } # Create SNS topic policy to allow Eventbridge to publish to the SNS topic resource "aws_sns_topic_policy" "default" { arn = aws_sns_topic.MySNSTopic.arn policy = <