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

Add file_system_locations to CodeBuild Project to allow the mounting of EFS to the build project #110

Closed
ghost opened this issue May 5, 2022 · 1 comment · Fixed by #111

Comments

@ghost
Copy link

ghost commented May 5, 2022

Have a question? Please checkout our Slack Community or visit our Slack Archive.

Slack Community

Describe the Feature

Add file_system_locations to CodeBuild Project to allow the mounting of EFS to the build project. Example

add to main.tf

  dynamic "file_system_locations" {
    for_each = length(var.file_system_locations) > 0 ? [""] : []
    content {
      identifier  = lookup(var.file_system_locations, "identifier", null)
      location    = lookup(var.file_system_locations, "location", null)
      mount_point = lookup(var.file_system_locations, "mount_point", null)
    }
  }

add to variables.tf

variable "file_system_locations" {
  type        = any
  default     = {}
  description = "A set of file system locations to to mount inside the build"
}

Expected Behavior

EFS will be mounted to the CodeBuild Project

Use Case

This will allow build projects access to an EFS file system.

Describe Ideal Solution

Add file_system_locations to CodeBuild Project to allow the mounting of EFS to the build project. Example

add to main.tf

  dynamic "file_system_locations" {
    for_each = length(var.file_system_locations) > 0 ? [""] : []
    content {
      identifier  = lookup(var.file_system_locations, "identifier", null)
      location    = lookup(var.file_system_locations, "location", null)
      mount_point = lookup(var.file_system_locations, "mount_point", null)
    }
  }

add to variables.tf

variable "file_system_locations" {
  type        = any
  default     = {}
  description = "A set of file system locations to to mount inside the build"
}

Additional Context

Add any other context or screenshots about the feature request here.
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/codebuild_project#file_system_locations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant