Using variables in amazon-ebs user_data_file script

381 views
Skip to first unread message

Pujitha Kondaveeti

unread,
Jan 5, 2021, 12:53:20 AM1/5/21
to Packer
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.

Alvaro Miranda Aguilera

unread,
Jan 5, 2021, 4:00:49 PM1/5/21
to packe...@googlegroups.com
hello

user_data_file it will just upload this file, its content is not processed by packer.

thanks
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 packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/aca19a8d-01ca-4085-af31-69be4e05ad93n%40googlegroups.com.


--
Alvaro

Pujitha Kondaveeti

unread,
Jan 5, 2021, 7:36:45 PM1/5/21
to Packer
Thank you.
Reply all
Reply to author
Forward
0 new messages