Skip to content

Commit

Permalink
log permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesWoolfenden committed Jan 27, 2025
1 parent c2a2926 commit 797b9e8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
1 change: 1 addition & 0 deletions src/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -1149,6 +1149,7 @@ var tFLookup = map[string]interface{}{ //nolint:gochecknoglobals
"aws_cloudwatch_log_delivery_destination_policy": awsCloudwatchLogDeliveryDestinationPolicy,
"aws_cloudwatch_log_delivery_source": awsCloudwatchLogDeliverySource,
"aws_cloudwatch_log_index_policy": awsCloudwatchLogIndexPolicy,
"aws_cloudwatch_log_anomaly_detector": awsCloudwatchLogAnomalyDetector,
}

// GetAWSPermissions for AWS resources.
Expand Down
3 changes: 3 additions & 0 deletions src/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -3237,3 +3237,6 @@ var awsCloudwatchLogDeliverySource []byte

//go:embed mapping/aws/resource/logs/aws_cloudwatch_log_index_policy.json
var awsCloudwatchLogIndexPolicy []byte

//go:embed mapping/aws/resource/logs/aws_cloudwatch_log_anomaly_detector.json
var awsCloudwatchLogAnomalyDetector []byte
14 changes: 7 additions & 7 deletions terraform/aws/backup/aws_cloudwatch_log_anomaly_detector.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ resource "aws_cloudwatch_log_group" "test" {
name = "testing-${count.index}"
}

# resource "aws_cloudwatch_log_anomaly_detector" "test" {
# detector_name = "testing"
# log_group_arn_list = [aws_cloudwatch_log_group.test[0].arn]
# anomaly_visibility_time = 7
# evaluation_frequency = "TEN_MIN"
# enabled = "false"
# }
resource "aws_cloudwatch_log_anomaly_detector" "test" {
detector_name = "testing"
log_group_arn_list = [aws_cloudwatch_log_group.test[0].arn]
anomaly_visibility_time = 7
evaluation_frequency = "TEN_MIN"
enabled = "false"
}

0 comments on commit 797b9e8

Please sign in to comment.