Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added lifecycle to ignore null changes #29

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

Mitrofanov
Copy link

what
Fix for issues with cluster config edit (terraform always wants to change provisioned_throughput config as follows)

why
~ resource "aws_msk_cluster" "default" {
id = "arn:aws:kafka:eu-central-1:0000000:cluster/kafka/"
# (12 unchanged attributes hidden)

  ~ broker_node_group_info {
        # (4 unchanged attributes hidden)

      ~ storage_info {
          ~ ebs_storage_info {
                # (1 unchanged attribute hidden)

              - provisioned_throughput {
                  - enabled           = false -> null
                  - volume_throughput = 0 -> null
                }
            }
        }

      # (1 unchanged block hidden)
  }

  # (5 unchanged blocks hidden)

}
This leads to following error:

Error: updating MSK Cluster (arn:aws:kafka:eu-central-1:00000:cluster/kafka/) security: BadRequestException: The request does not include any updates to the security setting of the cluster. Verify the request, then try again.
│ {
│ RespMetadata: {
│ StatusCode: 400,
│ RequestID: "1d43c33f-6f0e-4ad7-b25f-17130137ccd2"
│ },
│ Message_: "BadRequestException: The request does not include any updates to the EBS volumes of the cluster. Verify the request, then try again."
│ }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant