"`replace(string, substring, replacement)` or `regex_replace(string, substring, replacement)`",
"`replace(string, substring, replacement)` or `regex_replace(string, substring, replacement)`",
"https://www.packer.io/docs/from-1.5/functions/string/replace or https://www.packer.io/docs/from-1.5/functions/string/regex_replace",
"https://www.packer.io//docs/templates/hcl_templates/functions/string/replace or https://www.packer.io//docs/templates/hcl_templates/functions/string/regex_replace",
}
}
},
},
"replace_all":func(_,_,_string)(string,error){
"replace_all":func(_,_,_string)(string,error){
return"",UnhandleableArgumentError{
return"",UnhandleableArgumentError{
"replace_all",
"replace_all",
"`replace(string, substring, replacement)` or `regex_replace(string, substring, replacement)`",
"`replace(string, substring, replacement)` or `regex_replace(string, substring, replacement)`",
"https://www.packer.io/docs/from-1.5/functions/string/replace or https://www.packer.io/docs/from-1.5/functions/string/regex_replace",
"https://www.packer.io//docs/templates/hcl_templates/functions/string/replace or https://www.packer.io//docs/templates/hcl_templates/functions/string/regex_replace",
# there is no way to automatically upgrade the "clean_resource_name" call.
# there is no way to automatically upgrade the "clean_resource_name" call.
# Please manually upgrade to use custom validation rules, `replace(string, substring, replacement)` or `regex_replace(string, substring, replacement)`
# Please manually upgrade to use custom validation rules, `replace(string, substring, replacement)` or `regex_replace(string, substring, replacement)`
# Visit https://packer.io/docs/from-1.5/variables#custom-validation-rules , https://www.packer.io/docs/from-1.5/functions/string/replace or https://www.packer.io/docs/from-1.5/functions/string/regex_replace for more infos.
# Visit https://packer.io//docs/templates/hcl_templates/variables#custom-validation-rules , https://www.packer.io//docs/templates/hcl_templates/functions/string/replace or https://www.packer.io//docs/templates/hcl_templates/functions/string/regex_replace for more infos.
# there is no way to automatically upgrade the "replace_all" call.
# there is no way to automatically upgrade the "replace_all" call.
# Please manually upgrade to `replace(string, substring, replacement)` or `regex_replace(string, substring, replacement)`
# Please manually upgrade to `replace(string, substring, replacement)` or `regex_replace(string, substring, replacement)`
# Visit https://www.packer.io/docs/from-1.5/functions/string/replace or https://www.packer.io/docs/from-1.5/functions/string/regex_replace for more infos.
# Visit https://www.packer.io//docs/templates/hcl_templates/functions/string/replace or https://www.packer.io//docs/templates/hcl_templates/functions/string/regex_replace for more infos.
# there is no way to automatically upgrade the "replace" call.
# there is no way to automatically upgrade the "replace" call.
# Please manually upgrade to `replace(string, substring, replacement)` or `regex_replace(string, substring, replacement)`
# Please manually upgrade to `replace(string, substring, replacement)` or `regex_replace(string, substring, replacement)`
# Visit https://www.packer.io/docs/from-1.5/functions/string/replace or https://www.packer.io/docs/from-1.5/functions/string/regex_replace for more infos.
# Visit https://www.packer.io//docs/templates/hcl_templates/functions/string/replace or https://www.packer.io//docs/templates/hcl_templates/functions/string/regex_replace for more infos.
Detail:"This string does not use correct version constraint syntax. Check out the docs: https://packer.io/docs/from-1.5/blocks/packer#version-constraints",
Detail:"This string does not use correct version constraint syntax. Check out the docs: https://packer.io//docs/templates/hcl_templates/blocks/packer#version-constraints",
@@ -142,7 +142,7 @@ Here is a basic example. It is completely valid except for the access keys:
...
@@ -142,7 +142,7 @@ Here is a basic example. It is completely valid except for the access keys:
// set the environment variables to have the same name as the declared
// set the environment variables to have the same name as the declared
// variables, with the prefix PKR_VAR_.
// variables, with the prefix PKR_VAR_.
// There are other ways to [set variables](/docs/from-1.5/variables#assigning-values-to-build-variables), including from a var
// There are other ways to [set variables](//docs/templates/hcl_templates/variables#assigning-values-to-build-variables), including from a var
// file or as a command argument.
// file or as a command argument.
// export PKR_VAR_aws_access_key=$YOURKEY
// export PKR_VAR_aws_access_key=$YOURKEY
...
@@ -514,7 +514,7 @@ variables are available:
...
@@ -514,7 +514,7 @@ variables are available:
## Build Shared Information Variables
## Build Shared Information Variables
This builder generates data that are shared with provisioner and post-processor via build function of [template engine](/docs/templates/engine) for JSON and [contextual variables](/docs/from-1.5/contextual-variables) for HCL2.
This builder generates data that are shared with provisioner and post-processor via build function of [template engine](/docs/templates/engine) for JSON and [contextual variables](//docs/templates/hcl_templates/contextual-variables) for HCL2.
The generated variables available for this builder are:
The generated variables available for this builder are:
// set the environment variables to have the same name as the declared
// set the environment variables to have the same name as the declared
// variables, with the prefix PKR_VAR_.
// variables, with the prefix PKR_VAR_.
// There are other ways to [set variables](/docs/from-1.5/variables#assigning-values-to-build-variables)
// There are other ways to [set variables](//docs/templates/hcl_templates/variables#assigning-values-to-build-variables)
// including from a var file or as a command argument.
// including from a var file or as a command argument.
// export PKR_VAR_aws_access_key=$YOURKEY
// export PKR_VAR_aws_access_key=$YOURKEY
...
@@ -323,7 +323,7 @@ variables are available:
...
@@ -323,7 +323,7 @@ variables are available:
## Build Shared Information Variables
## Build Shared Information Variables
This builder generates data that are shared with provisioner and post-processor via build function of [template engine](/docs/templates/engine) for JSON and [contextual variables](/docs/from-1.5/contextual-variables) for HCL2.
This builder generates data that are shared with provisioner and post-processor via build function of [template engine](/docs/templates/engine) for JSON and [contextual variables](//docs/templates/hcl_templates/contextual-variables) for HCL2.
The generated variables available for this builder are:
The generated variables available for this builder are: