Skip to content
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_association resource doesn't support AutomationTargetParameterName #10301

Closed
ghost opened this issue Sep 30, 2019 · 3 comments · Fixed by #11755
Closed

aws_ssm_association resource doesn't support AutomationTargetParameterName #10301

ghost opened this issue Sep 30, 2019 · 3 comments · Fixed by #11755
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/ssm Issues and PRs that pertain to the ssm service.
Milestone

Comments

@ghost
Copy link

ghost commented Sep 30, 2019

This issue was originally opened by @Draftkings as hashicorp/terraform#22935. It was migrated here as a result of the provider split. The original body of the issue is below.


It appears the aws_ssm_association resource doesn't support selecting a Automation document Parameter that will be define how an automation document will branch out.

The AWS Api for CreateAssociation specifies a AutomationTargetParameterName parameter which is utilized by an SSM association when the SSM Document type being targeted is Automation and the Rate Control method for execution is selected.

When trying to apply my aws_ssm_association resource that is pointing to an automation document, I receive the following error.

Error: Error updating SSM association: ValidationException: Must specify both Automation Target Parameter Name and Targets status code: 400, request id:

Sample resource

resource "aws_ssm_association" "my-state-manager-assoication" {
  name = "My-SSM-Automation-Document"

  parameters = {
    AutomationAssumeRole = "<arn_of_my_iam_role>"
  }

  targets {
    key      = "tag:myTagName"
    values = ["myTagValue"]
  }

  schedule_expression = "rate(60 minutes)"
}
@ghost ghost added the service/ssm Issues and PRs that pertain to the ssm service. label Sep 30, 2019
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Sep 30, 2019
@bflad bflad added enhancement Requests to existing resources that expand the functionality or scope. and removed needs-triage Waiting for first response or review from a maintainer. labels Nov 25, 2019
@bflad bflad added this to the v2.47.0 milestone Jan 29, 2020
@bflad
Copy link
Contributor

bflad commented Jan 30, 2020

Support for the new automation_target_parameter_name argument in the aws_ssm_association resource has been merged and will release with version 2.47.0 of the Terraform AWS Provider, tomorrow. Thanks to @DrFaust92 for the implementation. 👍

@ghost
Copy link
Author

ghost commented Jan 30, 2020

This has been released in version 2.47.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!

@ghost
Copy link
Author

ghost commented Mar 27, 2020

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!

@ghost ghost locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/ssm Issues and PRs that pertain to the ssm service.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant