-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Closed
Description
Hello,
To reproduce this you can create a VPC with thoses inputs
create_flow_log_cloudwatch_log_group = true
create_flow_log_cloudwatch_iam_role = true
flow_log_cloudwatch_log_group_name_prefix = "/my-log-grou-name/"
This will create VPC, enable flow log and create log group as expected.
Then destroy it.
The log group is not destroyed.
However the destroy command succeded.
In reality the log group is destroyed when we issued the destroy command...but as the IAM policy contains logs:CreateLogGroup so when a flow log is logged, it will create the log group again.
Do we really need that policy ? In my opinion no as the one who will apply this module has enough permission to create it.
Metadata
Metadata
Assignees
Labels
No labels