Add custom user defined/ controlled manual mount command option#603
Open
dwc0011 wants to merge 8 commits intohashicorp:mainfrom
Open
Add custom user defined/ controlled manual mount command option#603dwc0011 wants to merge 8 commits intohashicorp:mainfrom
dwc0011 wants to merge 8 commits intohashicorp:mainfrom
Conversation
added 4 commits
September 9, 2025 15:45
…ual mount step, if the command is not empty. Which skips pre/mount/post mount steps.
7fc8b67 to
5475766
Compare
Contributor
Author
|
I am still trying to determine how best to implement an automated test and am open to suggestions. |
9dacb62 to
d835869
Compare
added 2 commits
September 9, 2025 16:13
…r should pass it via {{ .MountPath }} referenced in the manual-mount-command configuration to use it
d835869 to
01f84ee
Compare
Contributor
Author
|
@kp2099 @anurag5sh Do you have time to take a look at this functionality and PR and let me know if this is something that you would consider. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
What code changed, and why?
Create a user controlled custom "manual-mount-command" option that when present will run in place of the packer-plugin-amazon's built in mounting steps (pre-mount/mount/post-mount).
Allows the user to define and use a more complicated mounting strategy while packer still manages overall workflow around interacting with the cloud apis and registering/creating images, abstracting that workflow across the different providers.
Resolved Issues
If your PR resolves any open issue(s), please indicate them like this so they will be closed when your PR is merged:
Closes #602
Rollback Plan
If a change needs to be reverted, we will roll out an update to the code within 7 days.
Changes to Security Controls
Are there any changes to security controls (access controls, encryption, logging) in this pull request?
No security control changes.