Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explain how ESC can be used for org-level autonaming config #14483

Merged
merged 1 commit into from
Mar 21, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions content/docs/iac/concepts/resources/names.md
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ resources:

## Configuring Auto-Naming {#autonaming-configuration}

You can customize how Pulumi generates resource names through the `pulumi:autonaming` configuration setting. This can be set at the stack, project, or organization level.
You can customize how Pulumi generates resource names through the `pulumi:autonaming` configuration setting. This can be set at the stack or project level. And by leveraging [Pulumi ESC](/docs/esc/), autonaming can be managed at the organization level.

{{% notes %}}
When configuring auto-naming in your project configuration (`Pulumi.yaml`), you need to wrap the configuration in a `value` key:
Expand All @@ -290,15 +290,24 @@ When configuring auto-naming in your project configuration (`Pulumi.yaml`), you
config:
pulumi:autonaming:
value:
mode: verbatim
pattern: ${name}-${project}-${stack}
```

However, when configuring it in a stack configuration file (`Pulumi.<stack-name>.yaml`), you can specify the configuration directly:

```yaml
config:
pulumi:autonaming:
mode: verbatim
pattern: ${name}-${project}-${stack}
```

And when configuring it in an [ESC environment](/docs/esc/get-started/integrate-with-pulumi-iac/), you can specify the configuration as such:

```yaml
pulumiConfig:
pulumi:autonaming:
# Note the "$$".
pattern: $${name}-$${project}-$${stack}
```

{{% /notes %}}
Expand Down
Loading