-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
aws_cloudwatch_log_group w/ retention_in_days set results in no arn #6169
Comments
Well this is a great find. I was able to recreate this perfectly with the following config:
Terraform apply gave the following:
As you can see, no output:
on refreshing the state, I was able to get the output:
|
This means there is a missing state check on this somewhere... I will raise this with AWS now |
Fixes #6169 The Update func was hitting a return err and when the err was empty, it was skipping over the subsequent read func
Hi @mdxp I finally found the issue here :) PR has been submitted to fix it! P. |
Awesome; many thanks! looking forward to test it out. |
…ashicorp#6384) Fixes hashicorp#6169 The Update func was hitting a return err and when the err was empty, it was skipping over the subsequent read func
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. |
When using retention_in_days set on a cloudwatch log group, the arn is not added to the state. If no retention is set this works as expected. This causes problems (failures like above) if trying to use the resulting log group:
Terraform Version
Terraform v0.6.14
Affected Resource(s)
Terraform Configuration Files
tfstate
The state is missing the arn and assuming that is referenced by any other resource it will obviously fail. On the second run (refresh) it will update it and add the arn to the state and work successfully. Verified and without the retention_in_days defined this woks fine.
The arn looks like:
"arn": "arn:aws:logs:us-east-1:XXX:log-group:test:*",
The text was updated successfully, but these errors were encountered: