-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
docs/resource/aws_ssm_association: Prefer targets InstanceIds over instance_id for schema version 2.0+ #4328
Conversation
…stance_id for schema version 2.0+
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to fix the associated ssm_document
in the sample to use schemaVersion 2.0 too
@@ -60,7 +60,10 @@ DOC | |||
|
|||
resource "aws_ssm_association" "foo" { | |||
name = "test_document_association-%s" | |||
instance_id = "${aws_instance.foo.id}" | |||
targets { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the schemaVersion above is using 1.2 - can we update that to 2.0 to match the ssm_association?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I went ahead and just removed the resource declarations above and instead provide an example ${aws_ssm_document.example.name}
reference so we don't need to keep two documentation pages in sync. The details present before were not necessary here.
…s and just provide fake example references
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍🏼
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! |
Closes #2840 by switching the example from
instance_id
totargets
and adding note about schema version 2.0+ ininstance_id
argument.