Viewing docs for String v1.0.0
published on Friday, Oct 28, 2022 by DEPRECATED
published on Friday, Oct 28, 2022 by DEPRECATED
String
I want to use the Pulumi String package (str) in my project.
## Provider details
- Package: str
- Version: v1.0.0
- Publisher: DEPRECATED
- Source: pulumi
- Repository: https://github.com/pulumi/pulumi-str
Help me get started using this provider. Show me a complete Pulumi program that provisions a common resource, including all necessary configuration and imports.
Viewing docs for String v1.0.0
published on Friday, Oct 28, 2022 by DEPRECATED
published on Friday, Oct 28, 2022 by DEPRECATED
The Pulumi String provider contains a set of string manipulation functions that are identical across languages. These functions are especially useful for Pulumi YAML, which lacks native support for arbitrary string manipulation.
The expected use case is in Pulumi YAML programs, or Pulumi programs generated by Pulumi Eject.
Examples
Replace within a string
variables:
simple-replace:
Fn::str:replace:
string: fizz-bar
old: bar
new: buzz
regexp-replace:
Fn::str:regexp:replace:
string: fizz-foo-bar
old: -.*
new: -buzz
outputs:
simple-replace: # fizz-buzz
${simple-replace.result}
regexp-replace: # fizz-buzz
${regexp-replace.result}
Viewing docs for String v1.0.0
published on Friday, Oct 28, 2022 by DEPRECATED
published on Friday, Oct 28, 2022 by DEPRECATED
