Skip to content

Commit

Permalink
changes for module code
Browse files Browse the repository at this point in the history
  • Loading branch information
markgov committed Oct 11, 2023
1 parent 609f7a2 commit b6cc69b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -328,12 +328,12 @@ 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[count.index]
database_name = aws_athena_database.lb-access-logs[0].name
name = "lb_resource_sync"
role = aws_iam_role.lb_glue_crawler.arn
schedule = "cron(15 1 ? * MON *)"
schedule = var.log_schedule

s3_target {
path = "s3://${module.s3-bucket.bucket_name}"
path = "s3://${var.existing_bucket_name}"
}
}
1 change: 1 addition & 0 deletions test/unit-test/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,5 @@ module "lb_access_logs_enabled" {
idle_timeout = 60
force_destroy_bucket = true
lb_target_groups = local.lb_target_groups
log_schedule = "cron(15 1 ? * MON *)"
}
5 changes: 5 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,9 @@ variable "lb_target_groups" {
})), [])
}))
default = {}
}
variable "log_schedule" {
type = string
default = "cron(15 1 ? * MON *)"

}

0 comments on commit b6cc69b

Please sign in to comment.