[Bug]: App Runner Observability catch-22 #27733
Labels
bug
Addresses a defect in current functionality.
good first issue
Call to action for new contributors looking for a place to start. Smaller or straightforward issues.
service/apprunner
Issues and PRs that pertain to the apprunner service.
Terraform Core Version
1.3.4
AWS Provider Version
4.38.0
Affected Resource(s)
Expected Behavior
I should be able to omit the
observability_configuration
block entirely if I do not want observability, or at least disable it with theobservability_enabled = false
option within that block without specifying an arn.Actual Behavior
I created an App Runner service manually via the console (with no observability configured). I then imported it into my terraform configuration.
When I run
terraform plan
I get a diff notifyingobservability_enabled = false -> null
.When I add the block to set this value to false then run
terraform plan
again, I get an error telling me thatobservability_configuration_arn
is required.When I try again with
observability_enabled = null
instead of false, I get the same error:I think it is an issue with the validation. If
observability_enabled
is set to false,observability_configuration_arn
should not be required.Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
terraform apply
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
No response
The text was updated successfully, but these errors were encountered: