Created
July 4, 2026 14:59
-
-
Save nivleshc/ddcf68744f771ab16c79b739ff76d8df to your computer and use it in GitHub Desktop.
This gist contains code from outputs.tf, which is part of the blog-amazon-macie-custom-eventbridge-events repository.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| output "macie_account_id" { | |
| description = "The AWS account ID where Macie has been enabled" | |
| value = data.aws_caller_identity.current.account_id | |
| } | |
| output "classification_job_id" { | |
| description = "The ID of the Macie classification job" | |
| value = aws_macie2_classification_job.this.job_id | |
| } | |
| output "classification_job_name" { | |
| description = "The name of the Macie classification job" | |
| value = local.classification_job.name | |
| } | |
| output "lambda_function_name" { | |
| description = "The name of the Lambda function that processes job status events" | |
| value = aws_lambda_function.macie_job_status.function_name | |
| } | |
| output "lambda_function_arn" { | |
| description = "The ARN of the Lambda function" | |
| value = aws_lambda_function.macie_job_status.arn | |
| } | |
| output "eventbridge_rule_name" { | |
| description = "The name of the EventBridge rule that captures custom Macie job status events" | |
| value = aws_cloudwatch_event_rule.macie_job_status.name | |
| } | |
| output "eventbridge_rule_arn" { | |
| description = "The ARN of the EventBridge rule" | |
| value = aws_cloudwatch_event_rule.macie_job_status.arn | |
| } | |
| output "sns_topic_arn" { | |
| description = "The ARN of the SNS topic for job status notifications" | |
| value = aws_sns_topic.macie_notifications.arn | |
| } | |
| output "macie_log_group_name" { | |
| description = "The name of the CloudWatch Log Group where Macie publishes job events" | |
| value = aws_cloudwatch_log_group.macie_jobs.name | |
| } | |
| output "subscription_filter_name" { | |
| description = "The name of the CloudWatch Logs Subscription Filter" | |
| value = aws_cloudwatch_log_subscription_filter.macie_job_status.name | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment