[Enhancement]: version_control section for the aws_glue_job resource.Β #40892
Open
Description
Description
The glue job resource (https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/glue_job) has the ability to set the code source to a Git repository (Github, Gitlab etc.) unfortunately I don't see a way to add this from within terraform. It would be great if it were possible to set these values.
Affected Resource(s) and/or Data Source(s)
- aws_glue_job
Potential Terraform Configuration
resource "aws_glue_job" "example" {
name = "example"
role_arn = aws_iam_role.example.arn
command {
script_location = "s3://${aws_s3_bucket.example.bucket}/example.py"
}
version_control {
repository_type = "git" # git on the beginning, maybe mercurial, in the future? - optional, default "git"
service = "GitHub" # GitHub|GitLab|BitBucket|CodeCommit - required
personal_access_token = "pat-qwertyuiop" # required
repository_owner = "MyCoolCompany" # required
reporitory = "my-cool-project" # required
branch = "master" # optional, default "main"
folder = "src" # optional, default null
}
}
References
No response
Would you like to implement a fix?
None