You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
The key has expired.
🚀 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.