Skip to content

feat: Enable to set additional mount points #412

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

Closed
wants to merge 1 commit into from

Conversation

snovikov
Copy link
Contributor

Description

This will allow to add mount points in the container alongside EFS.

Motivation and Context

When enable_efs is set to true it is not possible to set additional mount points for the container.
In case when you need to set readonlyRootFilesystem this could be necessary for accesing the container via session manager.

Links:

Breaking Changes

How Has This Been Tested?

  • I have updated at least one of the examples/* to demonstrate and validate my change(s)
  • I have tested and validated these changes using one or more of the provided examples/* projects
  • I have executed pre-commit run -a on my pull request

@snovikov snovikov changed the title feat: enable to set additional mount points feat: Enable to set additional mount points Jan 31, 2025
@@ -186,11 +186,11 @@ module "acm" {

locals {
mount_path = "/home/atlantis"
mount_points = var.enable_efs ? [{
mount_points = var.enable_efs ? concat(try(var.atlantis.mount_points, []), [{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is such an edge case that if you want to do it, you might as well just provide all of the mount points (and therefore, no change required here)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In case if enable_efs is true - EFS volume and acces points are manged in the atlantis module, but var.atlantis.mount_points is ignored - it is not possible to provide all mount points as you suggested.

The only option would be to set enable_efs to false and manage EFS elsewhere.

@snovikov snovikov requested a review from bryantbiggs February 4, 2025 10:01
Copy link

github-actions bot commented Mar 7, 2025

This PR has been automatically marked as stale because it has been open 30 days
with no activity. Remove stale label or comment or this PR will be closed in 10 days

@github-actions github-actions bot added the stale label Mar 7, 2025
Copy link

This PR was automatically closed because of stale in 10 days

@github-actions github-actions bot closed this Mar 17, 2025
Copy link

I'm going to lock this pull request 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 related to this change, 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 Apr 16, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants