github cloudposse/terraform-aws-msk-apache-kafka-cluster 0.6.2
v0.6.2

latest releases: 2.4.0, v2, 2.3.1...
3 years ago

🚀 Enhancements

Correct module hostname count @nitrocode (#29)

what

  • Calculated the unique availability zones from subnet ids to create hostnames
  • Used element instead of bracket syntax to get an item in the list

why

  • We cannot set the count to length() of the outputted bootstrap_brokers* due to the count error
    • The "count" value depends on resource attributes that cannot be determined
    • We also cannot use for_each using a map as it returns the same error.
  • The number_of_broker_nodes is supposed to be a multiple of the subnet_ids. The issue seems to be that the local variable that is using a known unstable output of the aws_msk_cluster resource.

For each bootstrap_brokers* output, the terraform registry states

AWS may not always return all endpoints so this value is not guaranteed to be stable across applies.

So it's possible that the bootstrap_brokers* outputs are not returning the correct value. For now, all we can do is prevent the index issue. I think there is some other issue going on with this resource.

references

🐛 Bug Fixes

Correct module hostname count @nitrocode (#29)

what

  • Calculated the unique availability zones from subnet ids to create hostnames
  • Used element instead of bracket syntax to get an item in the list

why

  • We cannot set the count to length() of the outputted bootstrap_brokers* due to the count error
    • The "count" value depends on resource attributes that cannot be determined
    • We also cannot use for_each using a map as it returns the same error.
  • The number_of_broker_nodes is supposed to be a multiple of the subnet_ids. The issue seems to be that the local variable that is using a known unstable output of the aws_msk_cluster resource.

For each bootstrap_brokers* output, the terraform registry states

AWS may not always return all endpoints so this value is not guaranteed to be stable across applies.

So it's possible that the bootstrap_brokers* outputs are not returning the correct value. For now, all we can do is prevent the index issue. I think there is some other issue going on with this resource.

references

Don't miss a new terraform-aws-msk-apache-kafka-cluster release

NewReleases is sending notifications on new releases.