hello user_data_file it will just upload this file, its content is not processed by packer.
thanks alvaro On Tue, Jan 5, 2021 at 6:53 AM Pujitha Kondaveeti < [email protected]> wrote: > Hi, > I'm using amazon-ebs packer builder to create an AMI and I need to run a > script as part of cloud-init. > > I'm using user_data_file to specify the script to be executed but I need > to pass few variables to the script. > Is there a way to use variables or pass arguments to user_data_file? > > Thanks. > > -- > This mailing list is governed under the HashiCorp Community Guidelines - > https://www.hashicorp.com/community-guidelines.html. Behavior in > violation of those guidelines may result in your removal from this mailing > list. > > GitHub Issues: https://github.com/hashicorp/packer/issues > IRC: #packer-tool on Freenode > --- > You received this message because you are subscribed to the Google Groups > "Packer" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/packer-tool/aca19a8d-01ca-4085-af31-69be4e05ad93n%40googlegroups.com > <https://groups.google.com/d/msgid/packer-tool/aca19a8d-01ca-4085-af31-69be4e05ad93n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Alvaro -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list. GitHub Issues: https://github.com/hashicorp/packer/issues IRC: #packer-tool on Freenode --- You received this message because you are subscribed to the Google Groups "Packer" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/CAHqq0ezo%2BL1LY%3Di3maDQWpcNk6OogkjTfYjELXzpoJ3D%2B6SCCg%40mail.gmail.com.
