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

Instance UserData string configuration option #70

Closed
smathews opened this issue Mar 3, 2023 · 1 comment · Fixed by #72
Closed

Instance UserData string configuration option #70

smathews opened this issue Mar 3, 2023 · 1 comment · Fixed by #72
Assignees

Comments

@smathews
Copy link

smathews commented Mar 3, 2023

Is your feature request related to a problem? Please describe.

Currently the only option for userdata is vsi_user_data_file, which requires a file path containing userdata. This forces the use of a static userdata script.

Describe the solution you'd like

Add a new configuration variable vsi_user_data for string userdata input, allowing dynamic userdata when using the packer function templatefile.

Describe alternatives you've considered

Running an initialization script before running packer to generate the userdata:

  • Not generic enough
  • Would not have access to packer variables

Create a custom data source:

  • Fair amount of custom code and implementation to avoid an option that should be part of the base plugin
  • Default behavior of the API is being overridden by the file path "helper" configuration variable `

Additional context

See use of templatefile

@BShrivastav BShrivastav self-assigned this Mar 6, 2023
@BShrivastav
Copy link
Contributor

Thanks, We will soon be supporting this feature request, wip.

@BShrivastav BShrivastav linked a pull request Mar 16, 2023 that will close this issue
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.

2 participants