Skip to content

Commit

Permalink
code corrections for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
markgov committed Oct 10, 2023
1 parent 2a79d2f commit 609f7a2
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -314,13 +314,6 @@ data "aws_iam_policy_document" "lb_glue_crawler" {
]
resources = [var.existing_bucket_name != "" ? "arn:aws:s3:::${var.existing_bucket_name}/${var.application_name}/AWSLogs/${var.account_number}/*" : "${module.s3-bucket[0].bucket.arn}/${var.application_name}/AWSLogs/${var.account_number}/*"]
}
statement {
effect = "Allow"
actions = [
"kms:Decrypt"
]
resources = [aws_kms_key.lb-access-logs.arn]
}
}

resource "aws_iam_role_policy_attachment" "lb_glue_crawler" {
Expand All @@ -335,7 +328,7 @@ resource "aws_iam_role_policy_attachment" "lb_glue_servicec" {

# Glue Crawler
resource "aws_glue_crawler" "ssm_resource_sync" {
database_name = aws_athena_database.lb-access-logs.name
database_name = aws_athena_database.lb-access-logs[count.index]
name = "lb_resource_sync"
role = aws_iam_role.lb_glue_crawler.arn
schedule = "cron(15 1 ? * MON *)"
Expand Down

0 comments on commit 609f7a2

Please sign in to comment.