Skip to content

v1.5.1

Compare
Choose a tag to compare
@github-actions github-actions released this 21 May 12:12
· 28 commits to main since this release
2785cea

🚀 Enhancements

Remove data source validation of CloudWatch groups @bendrucker (#28)

What

  • Removes the use of data "aws_cloudwatch_log_group" to assert the existence of provided CloudWatch groups

Why

  • It prevents callers from passing in a group name directly from aws_cloudwatch_log_group, in cases where the log group is being created
  • Since the name attribute is generally known via configuration (statically defined), the data source attempts to read the group at plan time, but it may not exist yet.

References

  • This was added in #21. Any "plan time validation" via data sources must rely on computed attributes that cannot be known until the resource exists, i.e. a randomly generated ID. In this case, Terraform will defer the data source read until apply time because of the unknown attribute.