-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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_ssm_document should be deleted/recreated when it can't be versioned #7516
Comments
… state for drift detection Reference: #7516 Output from acceptance testing: ``` --- PASS: TestAccAWSSSMDocument_params (21.85s) --- PASS: TestAccAWSSSMDocument_permission_private (21.85s) --- PASS: TestAccAWSSSMDocument_permission_public (26.31s) --- PASS: TestAccAWSSSMDocument_permission_batching (36.87s) --- PASS: TestAccAWSSSMDocument_automation (38.18s) --- PASS: TestAccAWSSSMDocument_SchemaVersion_1 (41.09s) --- PASS: TestAccAWSSSMDocument_update (42.55s) --- PASS: TestAccAWSSSMDocument_DocumentFormat_YAML (44.60s) --- PASS: TestAccAWSSSMDocument_session (47.62s) --- PASS: TestAccAWSSSMDocument_permission_change (50.90s) --- PASS: TestAccAWSSSMDocument_Tags (54.43s) --- PASS: TestAccAWSSSMDocument_basic (70.90s) PASS ```
Hi folks 👋 In #9313, which was just merged for release in Terraform AWS Provider version 2.19.0 later today, we did a few things in this regard:
These combined should be hopefully cover everything here to ensure the Terraform resource is doing what it should in this case, but if not please feel free to submit further bug reports or feature requests. Thanks! |
The above mentioned changes have been released in version 2.19.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks! |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Terraform Version
0.11.11
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
When the resource has been changed outside terraform, terraform detects the change and changes the document back, given than versioning isn't supported prior to ssm document schema version 2.0 I would expect those to be recreated, not ignored.
Actual Behavior
Terraform ignores the change.
Steps to Reproduce
aws ssm delete-document --name SSM-SessionManagerRunShell
(This is because of a separate issue which isn't relevant here).The text was updated successfully, but these errors were encountered: