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

Optional module directory for git modules #138

Open
eakman-nomad opened this issue Apr 20, 2022 · 0 comments
Open

Optional module directory for git modules #138

eakman-nomad opened this issue Apr 20, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@eakman-nomad
Copy link

eakman-nomad commented Apr 20, 2022

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

When using a git repository as a source for a Workspace, I would like to be able to point to a subdirectory where the module lives. e.g.:

apiVersion: app.terraform.io/v1alpha1
kind: Workspace
metadata:
  name: pubsub
spec:
  sshKeyID: sshkey-frVpWGjJBNof8Kth
  organization: MyOrg
  secretsMountPath: "/tmp/secrets"
  module:
    source: "[email protected]:MyOrg/my-repo.git"
    sourceDir: "pubsub/" # <-- THIS

This way, I can house multiple modules within a single source code repository. If there's another way to accomplish this, I would be thrilled to know.

Potential Terraform Configuration

# Copy-paste your Terraform configurations here - for large Terraform configs,
# please use a service like Dropbox and share a link to the ZIP file. For
# security, you can also encrypt the files using our GPG public key.

References

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

No branches or pull requests

1 participant