-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2d7e518
commit 7e4f17c
Showing
7 changed files
with
227 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
--- | ||
title: "Introducing Auto-naming Configuration in Pulumi" | ||
date: 2025-01-16T08:00:00-07:00 | ||
meta_desc: "Learn how to configure Pulumi's resource naming to match your organization's naming conventions and requirements across all cloud providers." | ||
meta_image: meta.png | ||
authors: | ||
- mikhail-shilkov | ||
tags: | ||
- features | ||
--- | ||
|
||
I'm thrilled to announce the release of our auto-naming configuration feature. This highly anticipated capability addresses one of our most requested features [pulumi/pulumi#1518](https://github.com/pulumi/pulumi/issues/1518) and gives you complete control over how Pulumi names your cloud resources. | ||
|
||
<!--more--> | ||
|
||
## The Journey to Better Resource Naming | ||
|
||
Since Pulumi's early days, auto-naming has been a core feature that ensures unique names for cloud resources by generating names or name suffixes. While this approach solved many challenges around zero-downtime deployments and stack replication, we heard consistently from our community that you needed more control over how your resources are named. | ||
|
||
The original [feature request](https://github.com/pulumi/pulumi/issues/1518) I opened in June 2018 has generated extensive discussion, with users sharing various use cases and requirements. Today, I'm happy to finally close that issue with a solution that addresses the community's needs while maintaining Pulumi's robust resource management capabilities. | ||
|
||
## Introducing Auto-naming Configuration | ||
|
||
With the new auto-naming configuration feature, you now have full control over how Pulumi generates resource names. Here are some common scenarios you can achieve: | ||
|
||
### Disable Auto-naming | ||
|
||
If you want complete control over your resource names, you can disable auto-naming entirely: | ||
|
||
```yaml | ||
pulumi:autonaming: | ||
mode: disabled | ||
``` | ||
### Use Logical Names As-Is | ||
For scenarios where you want Pulumi to use exactly the names you specify: | ||
```yaml | ||
pulumi:autonaming: | ||
mode: verbatim | ||
``` | ||
### Custom Naming Patterns | ||
Create your own naming patterns that combine static text, resource information, and random elements: | ||
```yaml | ||
pulumi:autonaming: | ||
pattern: ${project}-${stack}-${name}${alphanum(6)} | ||
``` | ||
### Configuration Syntax | ||
The configuration syntax differs slightly depending on where you define it: | ||
In your project file (Pulumi.yaml): | ||
```yaml | ||
config: | ||
pulumi:autonaming: | ||
value: | ||
mode: verbatim | ||
``` | ||
In your stack configuration file (Pulumi.<stack-name>.yaml): | ||
```yaml | ||
config: | ||
pulumi:autonaming: | ||
mode: verbatim | ||
``` | ||
The same applies to other configuration patterns shown above - use the `value:` key in project-level configuration, but omit it in stack-level configuration. | ||
|
||
## Getting Started | ||
|
||
To use the auto-naming configuration feature, you'll need: | ||
|
||
1. Pulumi CLI 3.143.0 or later | ||
2. The following minimum provider versions: | ||
- AWS provider 6.66.0 or later | ||
- Azure Native provider 2.78.0 or later | ||
- Azure Classic provider 6.14.0 or later | ||
- Google Cloud Platform provider 8.11.0 or later | ||
|
||
Once you have the required versions installed, simply add your desired auto-naming configuration to your Pulumi configuration file | ||
|
||
For complete documentation and advanced usage scenarios, visit our [auto-naming configuration documentation](https://www.pulumi.com/docs/intro/concepts/resources/names/#auto-naming-configuration). | ||
|
||
## General Availability | ||
|
||
We're excited to announce that the auto-naming configuration feature is now generally available across our major cloud providers. This release marks an important milestone in Pulumi's evolution, delivering a robust and flexible solution for resource naming that our community has been asking for. | ||
|
||
Thank you to everyone who participated in the preview period and provided valuable feedback. Your input has been invaluable in creating a solution that works for diverse use cases while maintaining Pulumi's core strengths. | ||
|
||
If you have any questions or feedback about the auto-naming configuration feature, please don't hesitate to reach out to us on GitHub or in the Pulumi Community Slack. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters