Description
Adds data to an output resource in the form of key/value pairs that will become properties of the resource.
Usage
Bash |
|
PowerShell |
|
resource
is the resource to update
key value pair
is a single string with a key and a value, separated by an “=”. Multiple of these strings can be supplied as input. A value with spaces should be surrounded by quotes.
Bash | Powershell | Option Description |
---|---|---|
--overwrite | -overwrite | If supplied, all key value pairs will be replaced. |
The newly attached properties can be accessed as environment variables of the form res_{Resource Name}_{Key Name}
.
For example, the above created properties can be accessed as these environment variables:
$ printenv res_myImage_master master $ printenv res_myImage_sha d6cd1e2bd19e03a81132a23b2025920577f84e37 $ printenv res_myImage_description "hello world"