pulumi/pkg/codegen/testing/test/testdata/functions-pp/functions.pp

21 lines
479 B
Puppet

encoded = toBase64("haha business")
decoded = fromBase64(encoded)
joined = join("-", [encoded, decoded, "2"])
# tests that we initialize "var, err" with ":=" first, then "=" subsequently (Go specific)
zone = invoke("aws:index:getAvailabilityZones", {})
zone2 = invoke("aws:index:getAvailabilityZones", {})
resource bucket "aws:s3:Bucket" {
}
encoded2 = toBase64(bucket.id)
decoded2 = fromBase64(bucket.id)
secretValue = secret("hello")
plainValue = unsecret(secretValue)