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

[Enhancement]: Data Source: aws_redshift_cluster New Attribute "number_of_slices" #34299

Open
simonB2020 opened this issue Nov 7, 2023 · 1 comment
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/redshift Issues and PRs that pertain to the redshift service.

Comments

@simonB2020
Copy link

simonB2020 commented Nov 7, 2023

Description

Request that a new attribute provides the number of slices in a cluster.

Affected Resource(s) and/or Data Source(s)

Data Source: aws_redshift_cluster

Potential Terraform Configuration

data "aws_redshift_cluster" "example" {
  cluster_identifier = "example-cluster"
}

resource "aws_glue_job" "my_glue_job" {
  name  = "my_glue_job"
  default_arguments = {
    "--cluster-slices" = data.aws_redshift_cluster.example.number_of_slices
 }
}

References

AWS Redshift documentation specifies that a developer (e.g of an AWS Glue Job) should split files into a multiple of the number of slices in the target Redshift cluster.

Hence we would need to obtain this value in order to pass to Glue Jobs or Lambda functions provisioned by Terraform.

https://docs.aws.amazon.com/redshift/latest/dg/t_splitting-data-files.html

"Split your data into files so that the number of files is a multiple of the number of slices in your cluster"

Would you like to implement a fix?

None

@simonB2020 simonB2020 added the enhancement Requests to existing resources that expand the functionality or scope. label Nov 7, 2023
Copy link

github-actions bot commented Nov 7, 2023

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@github-actions github-actions bot added service/glue Issues and PRs that pertain to the glue service. service/redshift Issues and PRs that pertain to the redshift service. labels Nov 7, 2023
@terraform-aws-provider terraform-aws-provider bot added the needs-triage Waiting for first response or review from a maintainer. label Nov 7, 2023
@justinretzolk justinretzolk removed service/glue Issues and PRs that pertain to the glue service. needs-triage Waiting for first response or review from a maintainer. labels Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/redshift Issues and PRs that pertain to the redshift service.
Projects
None yet
Development

No branches or pull requests

2 participants