pulumi / pulumi/examples

Replace the string interpolation examples

Open
#820 0 comments 1 reaction 1 assignee View on GitHub

@jaxxstorm is already working on this.

Since Oct 29, 2020.

Dominant language
TypeScript
Stars
2.6k
Forks
894
Avg merge
12h 19m
Merged PRs (30d)
39

Description

Lots of the examples in this repo use string interpolation to build YAML or JSON documents, especially around generating kubeconfig files. A few examples I could find:

https://github.com/pulumi/examples/blob/fd422a115ca1602eed9a895ab4ed748185d798cc/aws-go-eks/main.go#L227
https://github.com/pulumi/examples/blob/90f6fa541f7d6cf0b5171b39e7ef234b785cc98f/aws-cs-eks/EksStack.cs#L14-L52

Unfortunately, this is error-prone, and we've had several examples of users copying and pasting these examples and creating typos, which bubble up into weird errors and are hard to debug.

It would be great if we could move this into the native language JSON/YAML encoding, so we can catch errors and stop the proliferation of these requests

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.