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

New Resource: aws_athena_workgroup #7650

Closed
zerfahp opened this issue Feb 22, 2019 · 7 comments · Fixed by #9290
Closed

New Resource: aws_athena_workgroup #7650

zerfahp opened this issue Feb 22, 2019 · 7 comments · Fixed by #9290
Labels
new-resource Introduces a new resource. service/athena Issues and PRs that pertain to the athena service.
Milestone

Comments

@zerfahp
Copy link

zerfahp commented Feb 22, 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

AWS released Athena Workgroups earlier this week. It would be very useful to have the ability to create these from Terraform.

"You can now use Amazon Athena Workgroups - A new resource type that can be used to separate query execution and query history between Users, Teams, or Applications running under the same AWS account. Because Workgroups act as resources, you can use resource-based policies to control access to a Workgroup. For example, if you have two teams or different applications using Athena, you can limit access by assigning them to different Workgroups. You can also separate ad hoc usage from scheduled reports by assigning them to different Workgroups. Queries running in one Workgroup are not visible to users or applications running in a different Workgroup."

New or Affected Resource(s)

  • aws_athena_workgroup

Potential Terraform Configuration

resource "aws_athena_workgroup" "hr_workgroup" {
    name                                = "HR Workgroup"
    description                         = "Athena Workgroup for HR"
    bytes_scanned_cutoff_per_query      = "${var.cut_off_bytes}"
    enforce_work_group_configuration    = "true"
    publish_cloudwatch_metrics_enabled  = "true"
    output_location                     = "${aws_s3_bucket.hr_bucket.arn}"
    encryption_option                   = "SSE_KMS"
    kms_key                             = "${aws_kms_key.hr_kms_key.arn}"    
}

References

@zerfahp zerfahp added the enhancement Requests to existing resources that expand the functionality or scope. label Feb 22, 2019
@bflad bflad added new-resource Introduces a new resource. service/athena Issues and PRs that pertain to the athena service. labels Feb 22, 2019
@zerfahp
Copy link
Author

zerfahp commented May 15, 2019

Is there any progress happening on this? It is currently not possible to provision these through cloudformation so Terraform could get ahead of the game here.

@bflad
Copy link
Contributor

bflad commented May 15, 2019

There is an open pull request available here: #7995

@Rupesh2010
Copy link

looks like it is still not supported.

Provider doesn't support resource: aws_athena_workgroup

@bflad bflad removed the enhancement Requests to existing resources that expand the functionality or scope. label Jul 9, 2019
@bflad bflad added this to the v2.19.0 milestone Jul 11, 2019
@bflad
Copy link
Contributor

bflad commented Jul 11, 2019

The new aws_athena_workgroup resource has been merged and will release with version 2.19.0 of the Terraform AWS Provider, likely later today. Shout out to @marcotesch who helped make this possible!

@zerfahp
Copy link
Author

zerfahp commented Jul 11, 2019

Thank you so much guys. Very much appreciated.

@bflad
Copy link
Contributor

bflad commented Jul 11, 2019

This has 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!

@ghost
Copy link

ghost commented Nov 2, 2019

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 Nov 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
new-resource Introduces a new resource. service/athena Issues and PRs that pertain to the athena service.
Projects
None yet
3 participants