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

Add support for crawler_name in aws_glue_trigger #9542

Closed
kurtmc opened this issue Jul 30, 2019 · 6 comments · Fixed by #10190
Closed

Add support for crawler_name in aws_glue_trigger #9542

kurtmc opened this issue Jul 30, 2019 · 6 comments · Fixed by #10190
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/glue Issues and PRs that pertain to the glue service.
Milestone

Comments

@kurtmc
Copy link
Contributor

kurtmc commented Jul 30, 2019

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

As of this release of the go sdk https://github.com/aws/aws-sdk-go/blob/master/CHANGELOG.md#release-v1205-2019-06-20 you have been able to set glue triggers for either jobs or crawlers. I think we can just add an extra field to the actions block for aws_glue_trigger to support triggering crawlers.

API reference for action struct: https://docs.aws.amazon.com/sdk-for-go/api/service/glue/#Action

New or Affected Resource(s)

  • aws_glue_trigger

Potential Terraform Configuration

resource "aws_glue_trigger" "example" {
  name = "example"
  type = "CONDITIONAL"

  actions {
    crawler_name = "${aws_glue_crawler.example1.name}"
  }

  predicate {
    conditions {
      crawler_name = "${aws_glue_crawler.example2.name}"
      state    = "SUCCEEDED"
    }
  }
}

References

@kurtmc kurtmc added the enhancement Requests to existing resources that expand the functionality or scope. label Jul 30, 2019
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Jul 30, 2019
@bflad bflad added service/glue Issues and PRs that pertain to the glue service. and removed needs-triage Waiting for first response or review from a maintainer. labels Jul 31, 2019
@anateus
Copy link
Contributor

anateus commented Sep 26, 2019

Just noticed that in the description the you're using the state field, rather than crawl_state. Is that just an oversight or an intentional preference for normalizing the two fields? I've implemented it to be one to one with the specs, though can see some ergonomic benefit to having logic that translates it into CrawlState if crawler_name is used rather than job_name.

@kurtmc
Copy link
Contributor Author

kurtmc commented Sep 26, 2019

@anateus That's a mistake. I would prefer it to more closely match the sdk (https://docs.aws.amazon.com/sdk-for-go/api/service/glue/#Condition).

@anateus
Copy link
Contributor

anateus commented Sep 27, 2019

Great! In that case, just waiting for review/approval on my PR :)

@bflad bflad added this to the v2.39.0 milestone Nov 19, 2019
@bflad bflad closed this as completed in ce94d77 Nov 19, 2019
@bflad
Copy link
Contributor

bflad commented Nov 19, 2019

Hi folks 👋 Support for the crawler_name argument in the actions configuration block and crawler_name and crawl_state arguments in the predicate conditions configuration block has been merged and will release with version 2.39.0 of the Terraform AWS Provider, by Thursday. Thanks to @anateus for the implementation. 👍

@ghost
Copy link

ghost commented Nov 21, 2019

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

ghost commented Mar 29, 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 29, 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/glue Issues and PRs that pertain to the glue service.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants