-
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
Terraform Apply Fails on SSM_Document creation when SSM Doc type is set to Automation #12746
Comments
Nil Pointer exception is being thrown on line 208 of https://github.com/hashicorp/terraform/blob/master/builtin/providers/aws/resource_aws_ssm_document.go param["description"] = *dp.Description appears to be getting a nil value from the resourceAwsSsmDocumentRead function. Maybe the AWS API is returning a different value for SSM Command Docs vs SSM Automation Docs? |
We have a fix that we're internally testing right now. Once we've confirmed the fix is in place we'll open up a PR with the code fix. |
@tyjonesAncestry sorry for the issue here - <3 for looking at opening a PR for this |
Should be fixed with with this pr. #12891 |
Closed via #12891 |
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. |
Hi there,
Terraform Version
Terraform v0.9.0
Affected Resource(s)
Please list the resources as a list, for example:
Terraform Configuration Files
Debug Output
https://gist.github.com/tyjonesAncestry/e40f599cd16415e5a3e90e3ec3e383fd
Panic Output
https://gist.github.com/tyjonesAncestry/c2e7cffcd39ca6dfa2435f2a74a74a80
Expected Behavior
My SSM Automation Document should have been created with Terraform.
Actual Behavior
Terraform loses it's mind with an EOF error, but the resource somehow still gets created in my AWS console. However, it breaks all subsequent runs of terraform.
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
Important Factoids
SSM Document creation works flawlessly as long as the document_type filed is set to "Command"
References
The text was updated successfully, but these errors were encountered: