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

Provide ARN attribute on Glue Crawler #7934

Closed
danielcompton opened this issue Mar 14, 2019 · 3 comments · Fixed by #7948
Closed

Provide ARN attribute on Glue Crawler #7934

danielcompton opened this issue Mar 14, 2019 · 3 comments · Fixed by #7948
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

@danielcompton
Copy link
Contributor

danielcompton commented Mar 14, 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

I'm trying to create IAM policies to allow processes to start and describe Glue Crawlers. To scope this tightly, I would like to use the ARN of the crawler, rather than just *. The aws_glue_crawler resource doesn't provide this attribute, it only provides the id (name) of the resource.

New or Affected Resource(s)

  • aws_glue_crawler

Potential Terraform Configuration

${aws_glue_crawler.my_crawler.arn}"

Current Terraform Configuration

Currently, this is how I'm building the ARN:

data "aws_region" "current" {}

data "aws_caller_identity" "current" {}

"arn:aws:glue:${data.aws_region.current.name}:${data.aws_caller_identity.current.account_id}:crawler/${aws_glue_crawler.my_crawler.name}"

References

@danielcompton danielcompton added the enhancement Requests to existing resources that expand the functionality or scope. label Mar 14, 2019
@bflad bflad added the service/glue Issues and PRs that pertain to the glue service. label Mar 15, 2019
@bflad bflad added this to the v2.2.0 milestone Mar 15, 2019
@bflad
Copy link
Contributor

bflad commented Mar 15, 2019

Support for the arn attribute for the aws_glue_crawler resource has been merged and will release with version 2.2.0 of the Terraform AWS Provider shortly.

@bflad
Copy link
Contributor

bflad commented Mar 15, 2019

This has been released in version 2.2.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

@ghost
Copy link

ghost commented Mar 31, 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 31, 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.

2 participants