You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run terraform -v to show the version. If you are not running the latest version of Terraform, please upgrade because your issue may have already been fixed.
$ terraform -v
Terraform v0.8.6
Affected Resource(s)
Please list the resources as a list, for example:
aws_ssm_document
Terraform Configuration Files
# Copy-paste your Terraform configurations here - for large Terraform configs,# please use a service like Dropbox and share a link to the ZIP file. For# security, you can also encrypt the files using our GPG public key.provider"aws" {
region="${var.region}"
}
data"template_file""document" {
template="${file("${path.module}/amiwindowsupdate.json")}"
}
resource"aws_ssm_document""document" {
name="WindowsUpdate",
content="${data.template_file.document.rendered}"
}
{
"schemaVersion":"2.0",
"description":"Run a script",
"parameters":{
"commands":{
"type":"StringList",
"description":"(Required) Specify a shell script or a command to run.",
"minItems":1,
"displayType":"textarea"
}
},
"mainSteps":[
{
"action":"aws:runShellScript",
"name":"runShellScript",
"inputs":{
"commands":"{{ commands }}"
}
},
{
"action":"aws:runPowerShellScript",
"name":"runPowerShellScript",
"inputs":{
"commands":"{{ commands }}"
}
}
]
}
Expected Behavior
What should have happened?
Document created
Actual Behavior
What actually happened?
Error applying plan:
1 error(s) occurred:
* aws_ssm_document.document: [ERROR] Error creating SSM document: InvalidDocumentSchemaVersion: Document type is required for schema version 2.0
status code: 400, request id: 261ef6f7-ee1b-11e6-b12a-27e73feaa5c3
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
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.
ghost
locked and limited conversation to collaborators
Apr 16, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Terraform Version
Run
terraform -v
to show the version. If you are not running the latest version of Terraform, please upgrade because your issue may have already been fixed.Affected Resource(s)
Please list the resources as a list, for example:
Terraform Configuration Files
Expected Behavior
What should have happened?
Document created
Actual Behavior
What actually happened?
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
I think AWS added
document-type
as mandatory option not so long time ago as even its documentation doesn't have this option:http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/create-ssm-doc.html#create-ssm-console-cli
The text was updated successfully, but these errors were encountered: