This provider is currently in preview.
published on Tuesday, Apr 28, 2026 by Pulumi
This provider is currently in preview.
published on Tuesday, Apr 28, 2026 by Pulumi
Manages a set of stack tags as a single resource via a tags map, instead of one StackTag per key — useful for YAML programs.
Only tags declared in tags are managed; tags added out-of-band (CLI, pulumibot, a singular StackTag resource) are left alone. Tag values are immutable in Pulumi Cloud, so a value change is implemented as delete-and-recreate.
Importing with ID {organization}/{project}/{stack}/tags adopts every tag currently on the stack; declare tags explicitly after import so subsequent updates match your intent. See the registry docs for full usage and examples.
Create StackTags Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new StackTags(name: string, args: StackTagsArgs, opts?: CustomResourceOptions);@overload
def StackTags(resource_name: str,
args: StackTagsArgs,
opts: Optional[ResourceOptions] = None)
@overload
def StackTags(resource_name: str,
opts: Optional[ResourceOptions] = None,
organization: Optional[str] = None,
project: Optional[str] = None,
stack: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)func NewStackTags(ctx *Context, name string, args StackTagsArgs, opts ...ResourceOption) (*StackTags, error)public StackTags(string name, StackTagsArgs args, CustomResourceOptions? opts = null)
public StackTags(String name, StackTagsArgs args)
public StackTags(String name, StackTagsArgs args, CustomResourceOptions options)
type: pulumiservice:StackTags
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args StackTagsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args StackTagsArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args StackTagsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args StackTagsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args StackTagsArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var stackTagsResource = new PulumiService.StackTags("stackTagsResource", new()
{
Organization = "string",
Project = "string",
Stack = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := pulumiservice.NewStackTags(ctx, "stackTagsResource", &pulumiservice.StackTagsArgs{
Organization: pulumi.String("string"),
Project: pulumi.String("string"),
Stack: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var stackTagsResource = new StackTags("stackTagsResource", StackTagsArgs.builder()
.organization("string")
.project("string")
.stack("string")
.tags(Map.of("string", "string"))
.build());
stack_tags_resource = pulumiservice.StackTags("stackTagsResource",
organization="string",
project="string",
stack="string",
tags={
"string": "string",
})
const stackTagsResource = new pulumiservice.StackTags("stackTagsResource", {
organization: "string",
project: "string",
stack: "string",
tags: {
string: "string",
},
});
type: pulumiservice:StackTags
properties:
organization: string
project: string
stack: string
tags:
string: string
StackTags Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The StackTags resource accepts the following input properties:
- Organization string
- Organization name.
- Project string
- Project name.
- Stack string
- Stack name.
- Dictionary<string, string>
- Map of tag names to values. Each entry represents a stack tag.
- Organization string
- Organization name.
- Project string
- Project name.
- Stack string
- Stack name.
- map[string]string
- Map of tag names to values. Each entry represents a stack tag.
- organization String
- Organization name.
- project String
- Project name.
- stack String
- Stack name.
- Map<String,String>
- Map of tag names to values. Each entry represents a stack tag.
- organization string
- Organization name.
- project string
- Project name.
- stack string
- Stack name.
- {[key: string]: string}
- Map of tag names to values. Each entry represents a stack tag.
- organization str
- Organization name.
- project str
- Project name.
- stack str
- Stack name.
- Mapping[str, str]
- Map of tag names to values. Each entry represents a stack tag.
- organization String
- Organization name.
- project String
- Project name.
- stack String
- Stack name.
- Map<String>
- Map of tag names to values. Each entry represents a stack tag.
Outputs
All input properties are implicitly available as output properties. Additionally, the StackTags resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Package Details
- Repository
- pulumiservice pulumi/pulumi-pulumiservice
- License
- Apache-2.0
This provider is currently in preview.
published on Tuesday, Apr 28, 2026 by Pulumi
