Skip to content

CloudWatch LogGroup not destroyed #435

@ahmedfourti

Description

@ahmedfourti

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions