TF: 0.11.11
AWS provider: 2.5.0 (current infrastructure was stable on version 2.4.0)
resource "aws_cloudwatch_log_subscription_filter"
"api-svc-ec2-prd-cloudwatch-subscription"
{
depends_on = [
"aws_lambda_permission.api-svc-ec2-prd-sumologic-logging-allow-cloudwatch-lambda"
]
name = "api-svc-ec2-prd-cloudwatch-subscription"
filter_pattern = ""
log_group_name =
"${aws_cloudwatch_log_group.api-svc-ec2-prd-loggroup.name}"
destination_arn =
"${aws_lambda_function.cloudwatch-sumologic-logging-lambda.arn}"
}
terraform planPlan output shows that TF is going to set: distribution: "ByLogStream" => ""
terraform applyApply output shows that TF is setting: distribution: "ByLogStream" => ""
terraform applyPlan output shows that TF is going to set: distribution: "ByLogStream" => ""
Update the resource and add attribute distribution = "ByLogStream"
I get this in provider version 2.1.0 too; may be an AWS-side change unrelated to the provider upgrade?
Mmm, I guess this is due to the following change
https://github.com/terraform-providers/terraform-provider-aws/pull/8165/files#diff-f5436f62ee2a2bd5ee984fa092cb808eR163
Adding Computed: true to the argument might help, maybe?
The fix for this has been merged and will release with version 2.25.0 of the Terraform AWS Provider, in about a week. Thanks to @dedamico for the implementation. 👍
This has been released in version 2.25.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.
For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks!
I'm going to lock this issue because it has been closed for _30 days_ ⏳. This helps our maintainers find and focus on the active issues.
If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!
Most helpful comment
The fix for this has been merged and will release with version 2.25.0 of the Terraform AWS Provider, in about a week. Thanks to @dedamico for the implementation. 👍