-
Notifications
You must be signed in to change notification settings - Fork 9.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed CloudFront logging_config change stored to state and not refreshed #6390
Comments
Pinging @vancluever and @jrnt30 as you might to have all the context in your working memory after a recent fix on another issue. ;) |
Oh, the But the issue still remains, if e.g. the configuration is changed via web console. |
…f disabled - Addresses the issue when local state file has logging_config populated and the user disables the configuration via the UI (or in this case an application of the TF config). This will now properly set the logging_config during the read operation and identify the state as diverging Fixes hashicorp#6390
Wanted to run this by @vancluever to make sure I'm not off base here, but the branch I put out there addresses the behavior you described. Just wanted to validate this addresses the spirit of what he had originally done with the check around Enabled and there isn't an edge case I am not aware of (don't use CloudFront much myself) |
Hey @jrnt30, just commented on the code. I think this is okay, the only time that logging is enabled is when The one caveat - I'm not too sure if using |
Yeah, it's interesting in that you can't directly range over |
…f disabled - Addresses the issue when local state file has logging_config populated and the user disables the configuration via the UI (or in this case an application of the TF config). This will now properly set the logging_config during the read operation and identify the state as diverging Fixes hashicorp#6390
…f disabled - Addresses the issue when local state file has logging_config populated and the user disables the configuration via the UI (or in this case an application of the TF config). This will now properly set the logging_config during the read operation and identify the state as diverging Fixes hashicorp#6390
…f disabled (#6407) - Addresses the issue when local state file has logging_config populated and the user disables the configuration via the UI (or in this case an application of the TF config). This will now properly set the logging_config during the read operation and identify the state as diverging Fixes #6390
…f disabled (hashicorp#6407) - Addresses the issue when local state file has logging_config populated and the user disables the configuration via the UI (or in this case an application of the TF config). This will now properly set the logging_config during the read operation and identify the state as diverging Fixes hashicorp#6390
…f disabled (hashicorp#6407) - Addresses the issue when local state file has logging_config populated and the user disables the configuration via the UI (or in this case an application of the TF config). This will now properly set the logging_config during the read operation and identify the state as diverging Fixes hashicorp#6390
…f disabled (hashicorp#6407) - Addresses the issue when local state file has logging_config populated and the user disables the configuration via the UI (or in this case an application of the TF config). This will now properly set the logging_config during the read operation and identify the state as diverging Fixes hashicorp#6390
…f disabled (hashicorp#6407) - Addresses the issue when local state file has logging_config populated and the user disables the configuration via the UI (or in this case an application of the TF config). This will now properly set the logging_config during the read operation and identify the state as diverging Fixes hashicorp#6390
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
I had an existing
aws_cloudfront_distribution
resource withoutlogging_config
configuration.The when adding a new
aws_s3_bucket
and a referencinglogging_config
block, the Bucket was created but not ready when Terraform tried to configure it for the CloudFront distribution:This is a familiar case with AWS and it's caching, but the issue is that Terraform anyway stored the new but failed configuration to the state file and does not see any changes in the future
plan
orapply
calls. So it does not refresh the state from AWS.The text was updated successfully, but these errors were encountered: