-
Notifications
You must be signed in to change notification settings - Fork 11
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
Re-applying fails for non-existent output being parsed as JSON #3
Comments
Interesting. What is the AWS CLI call you're making and what output is generated? To date, all our use cases have been to retrieve known data. |
And apologies for not responding earlier. |
OOI, is your local environment configured such that JSON is not the default output of the AWS CLI? (See #2 which I'm about to release). |
I've have managed to replicate the issue in our own setup! So thank you for the report. Hopefully the fix I'm about to release will work for us. Hopefully it'll work for you also. |
In the use case documented in the README.md, if there are multiple ASGs, and this module is then called iteratively, each iteration will now correctly have its own output. This may also be fixing #3. In local testing, for a new ASG being added to a pool of existing ASGs, the recorded output files are showing the correct values, with the string null being recorded for the new ASG (which is correct in this context).
Hi. I've just released https://github.com/digitickets/terraform-aws-cli/releases/tag/v5.0.2. I'd be very grateful if you could see if this release fixes the issue you're facing. |
I have the same problem. I use version 5.0.2. I'm trying to update service settings and command does not have a response body. As stated in documentation "If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.". Response is in JSON. |
Can you send me the module resource you're using please? Hopefully with that, I can replicate the issue and provide a solution. |
https://awscli.amazonaws.com/v2/documentation/api/latest/reference/guardduty/update-detector.html |
So, is the issue that you've not supplied a
So tracking errors from the AWS CLI and reporting that back is what's needed. |
Sorry I didn't add it into the example I am using this syntax: |
Thank you for that. Replicated. It does seem that Terraform already supports this (https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/guardduty_detector#finding_publishing_frequency). But having replicated the issue using your example, I think the fix is relatively simple. I've documented a new test that demonstrates the fix. Releasing v5.0.3 shortly. |
- Fix for when the AWS call being made has no output (which is invalid JSON). Thank you [Yaron Yarimi and Pavel Kargin](#3)
Getting this error (during plan) when applying an existing stack:
Deleting the
.terraform/modules/stack.enable_asg_metrics_collection
folder or re-runningterraform init --upgrade
(which removes the folder) is the workaround I'm current doing, but how can I overcome this in a better way?I would've expected the module to not
jsondecode
in case there is no output...The text was updated successfully, but these errors were encountered: