Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save nivleshc/ddcf68744f771ab16c79b739ff76d8df to your computer and use it in GitHub Desktop.

Select an option

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.
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