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

AWS Batch now supports EFS volumes at the job level #18557

Closed
ewbankkit opened this issue Apr 2, 2021 · 3 comments
Closed

AWS Batch now supports EFS volumes at the job level #18557

ewbankkit opened this issue Apr 2, 2021 · 3 comments
Assignees
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/batch Issues and PRs that pertain to the batch service.

Comments

@ewbankkit
Copy link
Contributor

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 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
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

AWS Batch customers can now specify EFS file systems in their AWS Batch job definitions.

New or Affected Resource(s)

Potential Terraform Configuration

resource "aws_batch_job_definition" "example" {
  name = "example"
  type = "container"

  container_properties = jsonencode({
    volumes = [
      efsVolumeConfiguration = {
        fileSystemId = aws_efs_file_system.example.id
      }
    ]
  })
}

References

Announcement.

Requires AWS SDK v1.38.10:

@ewbankkit ewbankkit added the enhancement Requests to existing resources that expand the functionality or scope. label Apr 2, 2021
@ghost ghost added the service/batch Issues and PRs that pertain to the batch service. label Apr 2, 2021
@github-actions
Copy link

Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label.

If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!

@github-actions github-actions bot added the stale Old or inactive issues managed by automation, if no further action taken these will get closed. label Mar 24, 2023
@drewmullen drewmullen self-assigned this Nov 2, 2023
@drewmullen
Copy link
Collaborator

This is working now:

resource "aws_batch_job_definition" "test" {
  container_properties = jsonencode({
    command = ["echo", "test"]
    image   = "busybox"
    memory  = 128
    vcpus   = 1
    volumes = [{
      name = "test"
      efsVolumeConfiguration = {
        fileSystemId = aws_efs_file_system.foo.id
      }}
    ]})
  name = "test"
  type = "container"
}

resource "aws_efs_file_system" "foo" {
  creation_token = "my-product"
}

@github-actions github-actions bot removed the stale Old or inactive issues managed by automation, if no further action taken these will get closed. label Nov 3, 2023
Copy link

github-actions bot commented Dec 4, 2023

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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 4, 2023
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/batch Issues and PRs that pertain to the batch service.
Projects
None yet
Development

No branches or pull requests

2 participants