How do I use "sensitive-variables"

789 views
Skip to first unread message

brian ayala

unread,
Oct 11, 2018, 2:54:34 AM10/11/18
to Packer
I am getting an error message of

Unknown root level key in template: 'sensitive-variables


{
  "variables": {
    "vpc_id": "",
    "subnet_id": "",
    "admin_password": "{{ env `ADMINPASS` }}",
    "pass4SymmKey": "{{ env `PASS4SYMMKEY` }}"
  },
  "sensitive-variables": ["my_secret", "foo"],
"builders": [


This is how i have it setup but it seems to be failing. Any help would be great.





Rickard von Essen

unread,
Oct 11, 2018, 1:46:02 PM10/11/18
to packe...@googlegroups.com
What's your Packer version? 

--
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/mitchellh/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/4392d917-7b48-47ba-a665-af8512dbb268%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

brian ayala

unread,
Oct 11, 2018, 3:52:47 PM10/11/18
to packe...@googlegroups.com
Just realized my packer version was not up to date.  Just downloaded 1.3.1 and it worked.  Thanks :)

Reply all
Reply to author
Forward
0 new messages