-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Hcl2 input variables, local variables and functions #8588
Conversation
a5d4178
to
e2161c6
Compare
841897e
to
f05e118
Compare
5af3938
to
e8e58f4
Compare
e8e58f4
to
886d61f
Compare
because it's the actual name
website/source/docs/configuration/from-1.5/functions/file/templatefile.html.md
Outdated
Show resolved
Hide resolved
avoid terraform specificities and remove unused docs
Okay we decided to go on with that one ! The sensible var obfuscating is going to come up in another PR ! 🙂 |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
This draft PR introduces basic variables handling; similarly to what currently works in Packer, for example:
Closes #6988
Closes #8681
EDIT: The following functions have been added:
abs
,abspath
,basename
,base64decode
,base64encode
,bcrypt
,can
,ceil
,chomp
,chunklist
,cidrhost
,cidrnetmask
,cidrsubnet
,cidrsubnets
,coalesce
,coalescelist
,compact
,concat
,contains
,convert
,csvdecode
,dirname
,distinct
,element
,file
,fileexists
,fileset
,flatten
,floor
,format
,formatdate
,formatlist
,indent
,index
,join
,jsondecode
,jsonencode
,keys
,length
,log
,lookup
,lower
,max
,md5
,merge
,min
,parseint
,pathexpand
,pow
,range
,reverse
,rsadecrypt
,setintersection
,setproduct
,setunion
,sha1
,sha256
,sha512
,signum
,slice
,sort
,split
,strrev
,substr
,timestamp
,timeadd
,title
,trim
,trimprefix
,trimspace
,trimsuffix
,try
,upper
,urlencode
,uuidv4
,uuidv5
,values
,yamldecode
,yamlencode
,zipmap
.