published on Thursday, Nov 19, 2026 by Pulumi
published on Thursday, Nov 19, 2026 by Pulumi
Pulumi Webhooks allow you to notify external services of events happening within your Pulumi organization, stack, or ESC environment. For example, you can trigger a notification whenever a stack is updated or an environment revision is created. Whenever an event occurs, Pulumi will send an HTTP POST request to all registered webhooks. The webhook can then be used to emit some notification, start running integration tests, or even update additional stacks.
The webhook’s scope is set by which properties you provide:
- Organization webhook:
organizationNameonly. - Stack webhook:
organizationName,projectName, andstackName. - Environment webhook:
organizationName,projectName, andenvironmentName. See ESC webhooks for the available events.
Create Webhook Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Webhook(name: string, args: WebhookArgs, opts?: CustomResourceOptions);@overload
def Webhook(resource_name: str,
args: WebhookArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Webhook(resource_name: str,
opts: Optional[ResourceOptions] = None,
active: Optional[bool] = None,
organization_name: Optional[str] = None,
payload_url: Optional[str] = None,
display_name: Optional[str] = None,
environment_name: Optional[str] = None,
filters: Optional[Sequence[WebhookFilters]] = None,
format: Optional[WebhookFormat] = None,
groups: Optional[Sequence[WebhookGroup]] = None,
project_name: Optional[str] = None,
secret: Optional[str] = None,
stack_name: Optional[str] = None)func NewWebhook(ctx *Context, name string, args WebhookArgs, opts ...ResourceOption) (*Webhook, error)public Webhook(string name, WebhookArgs args, CustomResourceOptions? opts = null)
public Webhook(String name, WebhookArgs args)
public Webhook(String name, WebhookArgs args, CustomResourceOptions options)
type: pulumiservice:Webhook
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "pulumiservice_webhook" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args WebhookArgs
- 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 WebhookArgs
- 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 WebhookArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WebhookArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WebhookArgs
- 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 examplewebhookResourceResourceFromIndex = new PulumiService.Webhook("examplewebhookResourceResourceFromIndex", new()
{
Active = false,
OrganizationName = "string",
PayloadUrl = "string",
DisplayName = "string",
EnvironmentName = "string",
Filters = new[]
{
PulumiService.WebhookFilters.StackCreated,
},
Format = PulumiService.WebhookFormat.Raw,
Groups = new[]
{
PulumiService.WebhookGroup.Stacks,
},
ProjectName = "string",
Secret = "string",
StackName = "string",
});
example, err := pulumiservice.NewWebhook(ctx, "examplewebhookResourceResourceFromIndex", &pulumiservice.WebhookArgs{
Active: pulumi.Bool(false),
OrganizationName: pulumi.String("string"),
PayloadUrl: pulumi.String("string"),
DisplayName: pulumi.String("string"),
EnvironmentName: pulumi.String("string"),
Filters: pulumiservice.WebhookFiltersArray{
pulumiservice.WebhookFiltersStackCreated,
},
Format: pulumiservice.WebhookFormatRaw,
Groups: pulumiservice.WebhookGroupArray{
pulumiservice.WebhookGroupStacks,
},
ProjectName: pulumi.String("string"),
Secret: pulumi.String("string"),
StackName: pulumi.String("string"),
})
resource "pulumiservice_webhook" "examplewebhookResourceResourceFromIndex" {
lifecycle {
create_before_destroy = true
}
active = false
organization_name = "string"
payload_url = "string"
display_name = "string"
environment_name = "string"
filters = ["stack_created"]
format = "raw"
groups = ["stacks"]
project_name = "string"
secret = "string"
stack_name = "string"
}
var examplewebhookResourceResourceFromIndex = new com.pulumi.pulumiservice.Webhook("examplewebhookResourceResourceFromIndex", com.pulumi.pulumiservice.WebhookArgs.builder()
.active(false)
.organizationName("string")
.payloadUrl("string")
.displayName("string")
.environmentName("string")
.filters("stack_created")
.format(com.pulumi.pulumiservice.enums.WebhookFormat.Raw)
.groups("stacks")
.projectName("string")
.secret("string")
.stackName("string")
.build());
examplewebhook_resource_resource_from_index = pulumiservice.Webhook("examplewebhookResourceResourceFromIndex",
active=False,
organization_name="string",
payload_url="string",
display_name="string",
environment_name="string",
filters=[pulumiservice.WebhookFilters.STACK_CREATED],
format=pulumiservice.WebhookFormat.RAW,
groups=[pulumiservice.WebhookGroup.STACKS],
project_name="string",
secret="string",
stack_name="string")
const examplewebhookResourceResourceFromIndex = new pulumiservice.Webhook("examplewebhookResourceResourceFromIndex", {
active: false,
organizationName: "string",
payloadUrl: "string",
displayName: "string",
environmentName: "string",
filters: [pulumiservice.WebhookFilters.StackCreated],
format: pulumiservice.WebhookFormat.Raw,
groups: [pulumiservice.WebhookGroup.Stacks],
projectName: "string",
secret: "string",
stackName: "string",
});
type: pulumiservice:Webhook
properties:
active: false
displayName: string
environmentName: string
filters:
- stack_created
format: raw
groups:
- stacks
organizationName: string
payloadUrl: string
projectName: string
secret: string
stackName: string
Webhook 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 Webhook resource accepts the following input properties:
- Active bool
- Indicates whether this webhook is enabled or not.
- Organization
Name string - Name of the organization.
- Payload
Url string - URL to send request to.
- Display
Name string - The friendly name displayed in the Pulumi Cloud, up to 100 bytes. If omitted, Pulumi generates a name from the resource's logical name plus a random suffix, or follows the stack's autonaming configuration.
- Environment
Name string - Name of the environment. Only specified if this is an environment webhook.
- Filters
List<Pulumi.
Pulumi Service. Webhook Filters> - Optional set of filters to apply to the webhook. See webhook docs for more information.
- Format
Pulumi.
Pulumi Service. Webhook Format - Format of the webhook payload. Can be either
raw,slack,ms_teamsorpulumi_deployments. Defaults toraw. - Groups
List<Pulumi.
Pulumi Service. Webhook Group> - Optional set of filter groups to apply to the webhook. See webhook docs for more information.
- Project
Name string - Name of the project. Only specified if this is a stack or environment webhook.
- Secret string
- Optional. secret used as the HMAC key. See webhook docs for more information.
- Stack
Name string - Name of the stack. Only needed if this is a stack webhook.
- Active bool
- Indicates whether this webhook is enabled or not.
- Organization
Name string - Name of the organization.
- Payload
Url string - URL to send request to.
- Display
Name string - The friendly name displayed in the Pulumi Cloud, up to 100 bytes. If omitted, Pulumi generates a name from the resource's logical name plus a random suffix, or follows the stack's autonaming configuration.
- Environment
Name string - Name of the environment. Only specified if this is an environment webhook.
- Filters
[]Webhook
Filters - Optional set of filters to apply to the webhook. See webhook docs for more information.
- Format
Webhook
Format - Format of the webhook payload. Can be either
raw,slack,ms_teamsorpulumi_deployments. Defaults toraw. - Groups
[]Webhook
Group - Optional set of filter groups to apply to the webhook. See webhook docs for more information.
- Project
Name string - Name of the project. Only specified if this is a stack or environment webhook.
- Secret string
- Optional. secret used as the HMAC key. See webhook docs for more information.
- Stack
Name string - Name of the stack. Only needed if this is a stack webhook.
- active bool
- Indicates whether this webhook is enabled or not.
- organization_
name string - Name of the organization.
- payload_
url string - URL to send request to.
- display_
name string - The friendly name displayed in the Pulumi Cloud, up to 100 bytes. If omitted, Pulumi generates a name from the resource's logical name plus a random suffix, or follows the stack's autonaming configuration.
- environment_
name string - Name of the environment. Only specified if this is an environment webhook.
- filters
list("stack_
created" | "stack_ deleted" | "update_ succeeded" | "update_ failed" | "preview_ succeeded" | "preview_ failed" | "destroy_ succeeded" | "destroy_ failed" | "refresh_ succeeded" | "refresh_ failed" | "deployment_ queued" | "deployment_ started" | "deployment_ succeeded" | "deployment_ failed" | "drift_ detected" | "drift_ detection_ succeeded" | "drift_ detection_ failed" | "drift_ remediation_ succeeded" | "drift_ remediation_ failed" | "environment_ created" | "environment_ deleted" | "environment_ revision_ created" | "environment_ revision_ retracted" | "environment_ revision_ tag_ created" | "environment_ revision_ tag_ deleted" | "environment_ revision_ tag_ updated" | "environment_ tag_ created" | "environment_ tag_ deleted" | "environment_ tag_ updated" | "imported_ environment_ changed" | "environment_ rotation_ succeeded" | "environment_ rotation_ failed") - Optional set of filters to apply to the webhook. See webhook docs for more information.
- format
"raw" | "slack" | "pulumi_
deployments" | "ms_ teams" - Format of the webhook payload. Can be either
raw,slack,ms_teamsorpulumi_deployments. Defaults toraw. - groups list("stacks" | "deployments" | "environments")
- Optional set of filter groups to apply to the webhook. See webhook docs for more information.
- project_
name string - Name of the project. Only specified if this is a stack or environment webhook.
- secret string
- Optional. secret used as the HMAC key. See webhook docs for more information.
- stack_
name string - Name of the stack. Only needed if this is a stack webhook.
- active Boolean
- Indicates whether this webhook is enabled or not.
- organization
Name String - Name of the organization.
- payload
Url String - URL to send request to.
- display
Name String - The friendly name displayed in the Pulumi Cloud, up to 100 bytes. If omitted, Pulumi generates a name from the resource's logical name plus a random suffix, or follows the stack's autonaming configuration.
- environment
Name String - Name of the environment. Only specified if this is an environment webhook.
- filters
List<Webhook
Filters> - Optional set of filters to apply to the webhook. See webhook docs for more information.
- format
Webhook
Format - Format of the webhook payload. Can be either
raw,slack,ms_teamsorpulumi_deployments. Defaults toraw. - groups
List<Webhook
Group> - Optional set of filter groups to apply to the webhook. See webhook docs for more information.
- project
Name String - Name of the project. Only specified if this is a stack or environment webhook.
- secret String
- Optional. secret used as the HMAC key. See webhook docs for more information.
- stack
Name String - Name of the stack. Only needed if this is a stack webhook.
- active boolean
- Indicates whether this webhook is enabled or not.
- organization
Name string - Name of the organization.
- payload
Url string - URL to send request to.
- display
Name string - The friendly name displayed in the Pulumi Cloud, up to 100 bytes. If omitted, Pulumi generates a name from the resource's logical name plus a random suffix, or follows the stack's autonaming configuration.
- environment
Name string - Name of the environment. Only specified if this is an environment webhook.
- filters
Webhook
Filters[] - Optional set of filters to apply to the webhook. See webhook docs for more information.
- format
Webhook
Format - Format of the webhook payload. Can be either
raw,slack,ms_teamsorpulumi_deployments. Defaults toraw. - groups
Webhook
Group[] - Optional set of filter groups to apply to the webhook. See webhook docs for more information.
- project
Name string - Name of the project. Only specified if this is a stack or environment webhook.
- secret string
- Optional. secret used as the HMAC key. See webhook docs for more information.
- stack
Name string - Name of the stack. Only needed if this is a stack webhook.
- active bool
- Indicates whether this webhook is enabled or not.
- organization_
name str - Name of the organization.
- payload_
url str - URL to send request to.
- display_
name str - The friendly name displayed in the Pulumi Cloud, up to 100 bytes. If omitted, Pulumi generates a name from the resource's logical name plus a random suffix, or follows the stack's autonaming configuration.
- environment_
name str - Name of the environment. Only specified if this is an environment webhook.
- filters
Sequence[Webhook
Filters] - Optional set of filters to apply to the webhook. See webhook docs for more information.
- format
Webhook
Format - Format of the webhook payload. Can be either
raw,slack,ms_teamsorpulumi_deployments. Defaults toraw. - groups
Sequence[Webhook
Group] - Optional set of filter groups to apply to the webhook. See webhook docs for more information.
- project_
name str - Name of the project. Only specified if this is a stack or environment webhook.
- secret str
- Optional. secret used as the HMAC key. See webhook docs for more information.
- stack_
name str - Name of the stack. Only needed if this is a stack webhook.
- active Boolean
- Indicates whether this webhook is enabled or not.
- organization
Name String - Name of the organization.
- payload
Url String - URL to send request to.
- display
Name String - The friendly name displayed in the Pulumi Cloud, up to 100 bytes. If omitted, Pulumi generates a name from the resource's logical name plus a random suffix, or follows the stack's autonaming configuration.
- environment
Name String - Name of the environment. Only specified if this is an environment webhook.
- filters
List<"stack_
created" | "stack_ deleted" | "update_ succeeded" | "update_ failed" | "preview_ succeeded" | "preview_ failed" | "destroy_ succeeded" | "destroy_ failed" | "refresh_ succeeded" | "refresh_ failed" | "deployment_ queued" | "deployment_ started" | "deployment_ succeeded" | "deployment_ failed" | "drift_ detected" | "drift_ detection_ succeeded" | "drift_ detection_ failed" | "drift_ remediation_ succeeded" | "drift_ remediation_ failed" | "environment_ created" | "environment_ deleted" | "environment_ revision_ created" | "environment_ revision_ retracted" | "environment_ revision_ tag_ created" | "environment_ revision_ tag_ deleted" | "environment_ revision_ tag_ updated" | "environment_ tag_ created" | "environment_ tag_ deleted" | "environment_ tag_ updated" | "imported_ environment_ changed" | "environment_ rotation_ succeeded" | "environment_ rotation_ failed"> - Optional set of filters to apply to the webhook. See webhook docs for more information.
- format
"raw" | "slack" | "pulumi_
deployments" | "ms_ teams" - Format of the webhook payload. Can be either
raw,slack,ms_teamsorpulumi_deployments. Defaults toraw. - groups List<"stacks" | "deployments" | "environments">
- Optional set of filter groups to apply to the webhook. See webhook docs for more information.
- project
Name String - Name of the project. Only specified if this is a stack or environment webhook.
- secret String
- Optional. secret used as the HMAC key. See webhook docs for more information.
- stack
Name String - Name of the stack. Only needed if this is a stack webhook.
Outputs
All input properties are implicitly available as output properties. Additionally, the Webhook resource produces the following output properties:
Look up Existing Webhook Resource
Get an existing Webhook resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, opts?: CustomResourceOptions): Webhook@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None) -> Webhookfunc GetWebhook(ctx *Context, name string, id IDInput, state *WebhookState, opts ...ResourceOption) (*Webhook, error)public static Webhook Get(string name, Input<string> id, CustomResourceOptions? opts = null)public static Webhook get(String name, Output<String> id, CustomResourceOptions options)resources: existingWebhook: type: pulumiservice:Webhook get: id: ${id}import {
to = pulumiservice_webhook.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- 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 resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state WebhookState
- Pass nil. This resource has no state arguments.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Supporting Types
WebhookFilters
| Name | Value | Description |
|---|---|---|
| Stack | stack_created | Trigger a webhook when a stack is created. Only valid for org webhooks. |
| Stack | stack_deleted | Trigger a webhook when a stack is deleted. Only valid for org webhooks. |
| Update | update_succeeded | Trigger a webhook when a stack update succeeds. |
| Update | update_failed | Trigger a webhook when a stack update fails. |
| Preview | preview_succeeded | Trigger a webhook when a stack preview succeeds. |
| Preview | preview_failed | Trigger a webhook when a stack preview fails. |
| Destroy | destroy_succeeded | Trigger a webhook when a stack destroy succeeds. |
| Destroy | destroy_failed | Trigger a webhook when a stack destroy fails. |
| Refresh | refresh_succeeded | Trigger a webhook when a stack refresh succeeds. |
| Refresh | refresh_failed | Trigger a webhook when a stack refresh fails. |
| Deployment | deployment_queued | Trigger a webhook when a deployment is queued. |
| Deployment | deployment_started | Trigger a webhook when a deployment starts running. |
| Deployment | deployment_succeeded | Trigger a webhook when a deployment succeeds. |
| Deployment | deployment_failed | Trigger a webhook when a deployment fails. |
| Drift | drift_detected | Trigger a webhook when drift is detected. |
| Drift | drift_detection_succeeded | Trigger a webhook when a drift detection run succeeds, regardless of whether drift is detected. |
| Drift | drift_detection_failed | Trigger a webhook when a drift detection run fails. |
| Drift | drift_remediation_succeeded | Trigger a webhook when a drift remediation run succeeds. |
| Drift | drift_remediation_failed | Trigger a webhook when a drift remediation run fails. |
| Environment | environment_created | Trigger a webhook when a new environment is created. |
| Environment | environment_deleted | Trigger a webhook when an environment is deleted. |
| Environment | environment_revision_created | Trigger a webhook when a new revision is created on an environment. |
| Environment | environment_revision_retracted | Trigger a webhook when a revision is retracted on an environment. |
| Environment | environment_revision_tag_created | Trigger a webhook when a revision tag is created on an environment. |
| Environment | environment_revision_tag_deleted | Trigger a webhook when a revision tag is deleted on an environment. |
| Environment | environment_revision_tag_updated | Trigger a webhook when a revision tag is updated on an environment. |
| Environment | environment_tag_created | Trigger a webhook when an environment tag is created. |
| Environment | environment_tag_deleted | Trigger a webhook when an environment tag is deleted. |
| Environment | environment_tag_updated | Trigger a webhook when an environment tag is updated. |
| Imported | imported_environment_changed | Trigger a webhook when an imported environment has changed. |
| Environment | environment_rotation_succeeded | Trigger a webhook when an environment rotation succeeds. |
| Environment | environment_rotation_failed | Trigger a webhook when an environment rotation fails. |
| Name | Value | Description |
|---|---|---|
| Webhook | stack_created | Trigger a webhook when a stack is created. Only valid for org webhooks. |
| Webhook | stack_deleted | Trigger a webhook when a stack is deleted. Only valid for org webhooks. |
| Webhook | update_succeeded | Trigger a webhook when a stack update succeeds. |
| Webhook | update_failed | Trigger a webhook when a stack update fails. |
| Webhook | preview_succeeded | Trigger a webhook when a stack preview succeeds. |
| Webhook | preview_failed | Trigger a webhook when a stack preview fails. |
| Webhook | destroy_succeeded | Trigger a webhook when a stack destroy succeeds. |
| Webhook | destroy_failed | Trigger a webhook when a stack destroy fails. |
| Webhook | refresh_succeeded | Trigger a webhook when a stack refresh succeeds. |
| Webhook | refresh_failed | Trigger a webhook when a stack refresh fails. |
| Webhook | deployment_queued | Trigger a webhook when a deployment is queued. |
| Webhook | deployment_started | Trigger a webhook when a deployment starts running. |
| Webhook | deployment_succeeded | Trigger a webhook when a deployment succeeds. |
| Webhook | deployment_failed | Trigger a webhook when a deployment fails. |
| Webhook | drift_detected | Trigger a webhook when drift is detected. |
| Webhook | drift_detection_succeeded | Trigger a webhook when a drift detection run succeeds, regardless of whether drift is detected. |
| Webhook | drift_detection_failed | Trigger a webhook when a drift detection run fails. |
| Webhook | drift_remediation_succeeded | Trigger a webhook when a drift remediation run succeeds. |
| Webhook | drift_remediation_failed | Trigger a webhook when a drift remediation run fails. |
| Webhook | environment_created | Trigger a webhook when a new environment is created. |
| Webhook | environment_deleted | Trigger a webhook when an environment is deleted. |
| Webhook | environment_revision_created | Trigger a webhook when a new revision is created on an environment. |
| Webhook | environment_revision_retracted | Trigger a webhook when a revision is retracted on an environment. |
| Webhook | environment_revision_tag_created | Trigger a webhook when a revision tag is created on an environment. |
| Webhook | environment_revision_tag_deleted | Trigger a webhook when a revision tag is deleted on an environment. |
| Webhook | environment_revision_tag_updated | Trigger a webhook when a revision tag is updated on an environment. |
| Webhook | environment_tag_created | Trigger a webhook when an environment tag is created. |
| Webhook | environment_tag_deleted | Trigger a webhook when an environment tag is deleted. |
| Webhook | environment_tag_updated | Trigger a webhook when an environment tag is updated. |
| Webhook | imported_environment_changed | Trigger a webhook when an imported environment has changed. |
| Webhook | environment_rotation_succeeded | Trigger a webhook when an environment rotation succeeds. |
| Webhook | environment_rotation_failed | Trigger a webhook when an environment rotation fails. |
| Value | Description |
|---|---|
stack_created | Trigger a webhook when a stack is created. Only valid for org webhooks. |
stack_deleted | Trigger a webhook when a stack is deleted. Only valid for org webhooks. |
update_succeeded | Trigger a webhook when a stack update succeeds. |
update_failed | Trigger a webhook when a stack update fails. |
preview_succeeded | Trigger a webhook when a stack preview succeeds. |
preview_failed | Trigger a webhook when a stack preview fails. |
destroy_succeeded | Trigger a webhook when a stack destroy succeeds. |
destroy_failed | Trigger a webhook when a stack destroy fails. |
refresh_succeeded | Trigger a webhook when a stack refresh succeeds. |
refresh_failed | Trigger a webhook when a stack refresh fails. |
deployment_queued | Trigger a webhook when a deployment is queued. |
deployment_started | Trigger a webhook when a deployment starts running. |
deployment_succeeded | Trigger a webhook when a deployment succeeds. |
deployment_failed | Trigger a webhook when a deployment fails. |
drift_detected | Trigger a webhook when drift is detected. |
drift_detection_succeeded | Trigger a webhook when a drift detection run succeeds, regardless of whether drift is detected. |
drift_detection_failed | Trigger a webhook when a drift detection run fails. |
drift_remediation_succeeded | Trigger a webhook when a drift remediation run succeeds. |
drift_remediation_failed | Trigger a webhook when a drift remediation run fails. |
environment_created | Trigger a webhook when a new environment is created. |
environment_deleted | Trigger a webhook when an environment is deleted. |
environment_revision_created | Trigger a webhook when a new revision is created on an environment. |
environment_revision_retracted | Trigger a webhook when a revision is retracted on an environment. |
environment_revision_tag_created | Trigger a webhook when a revision tag is created on an environment. |
environment_revision_tag_deleted | Trigger a webhook when a revision tag is deleted on an environment. |
environment_revision_tag_updated | Trigger a webhook when a revision tag is updated on an environment. |
environment_tag_created | Trigger a webhook when an environment tag is created. |
environment_tag_deleted | Trigger a webhook when an environment tag is deleted. |
environment_tag_updated | Trigger a webhook when an environment tag is updated. |
imported_environment_changed | Trigger a webhook when an imported environment has changed. |
environment_rotation_succeeded | Trigger a webhook when an environment rotation succeeds. |
environment_rotation_failed | Trigger a webhook when an environment rotation fails. |
| Name | Value | Description |
|---|---|---|
| Stack | stack_created | Trigger a webhook when a stack is created. Only valid for org webhooks. |
| Stack | stack_deleted | Trigger a webhook when a stack is deleted. Only valid for org webhooks. |
| Update | update_succeeded | Trigger a webhook when a stack update succeeds. |
| Update | update_failed | Trigger a webhook when a stack update fails. |
| Preview | preview_succeeded | Trigger a webhook when a stack preview succeeds. |
| Preview | preview_failed | Trigger a webhook when a stack preview fails. |
| Destroy | destroy_succeeded | Trigger a webhook when a stack destroy succeeds. |
| Destroy | destroy_failed | Trigger a webhook when a stack destroy fails. |
| Refresh | refresh_succeeded | Trigger a webhook when a stack refresh succeeds. |
| Refresh | refresh_failed | Trigger a webhook when a stack refresh fails. |
| Deployment | deployment_queued | Trigger a webhook when a deployment is queued. |
| Deployment | deployment_started | Trigger a webhook when a deployment starts running. |
| Deployment | deployment_succeeded | Trigger a webhook when a deployment succeeds. |
| Deployment | deployment_failed | Trigger a webhook when a deployment fails. |
| Drift | drift_detected | Trigger a webhook when drift is detected. |
| Drift | drift_detection_succeeded | Trigger a webhook when a drift detection run succeeds, regardless of whether drift is detected. |
| Drift | drift_detection_failed | Trigger a webhook when a drift detection run fails. |
| Drift | drift_remediation_succeeded | Trigger a webhook when a drift remediation run succeeds. |
| Drift | drift_remediation_failed | Trigger a webhook when a drift remediation run fails. |
| Environment | environment_created | Trigger a webhook when a new environment is created. |
| Environment | environment_deleted | Trigger a webhook when an environment is deleted. |
| Environment | environment_revision_created | Trigger a webhook when a new revision is created on an environment. |
| Environment | environment_revision_retracted | Trigger a webhook when a revision is retracted on an environment. |
| Environment | environment_revision_tag_created | Trigger a webhook when a revision tag is created on an environment. |
| Environment | environment_revision_tag_deleted | Trigger a webhook when a revision tag is deleted on an environment. |
| Environment | environment_revision_tag_updated | Trigger a webhook when a revision tag is updated on an environment. |
| Environment | environment_tag_created | Trigger a webhook when an environment tag is created. |
| Environment | environment_tag_deleted | Trigger a webhook when an environment tag is deleted. |
| Environment | environment_tag_updated | Trigger a webhook when an environment tag is updated. |
| Imported | imported_environment_changed | Trigger a webhook when an imported environment has changed. |
| Environment | environment_rotation_succeeded | Trigger a webhook when an environment rotation succeeds. |
| Environment | environment_rotation_failed | Trigger a webhook when an environment rotation fails. |
| Name | Value | Description |
|---|---|---|
| Stack | stack_created | Trigger a webhook when a stack is created. Only valid for org webhooks. |
| Stack | stack_deleted | Trigger a webhook when a stack is deleted. Only valid for org webhooks. |
| Update | update_succeeded | Trigger a webhook when a stack update succeeds. |
| Update | update_failed | Trigger a webhook when a stack update fails. |
| Preview | preview_succeeded | Trigger a webhook when a stack preview succeeds. |
| Preview | preview_failed | Trigger a webhook when a stack preview fails. |
| Destroy | destroy_succeeded | Trigger a webhook when a stack destroy succeeds. |
| Destroy | destroy_failed | Trigger a webhook when a stack destroy fails. |
| Refresh | refresh_succeeded | Trigger a webhook when a stack refresh succeeds. |
| Refresh | refresh_failed | Trigger a webhook when a stack refresh fails. |
| Deployment | deployment_queued | Trigger a webhook when a deployment is queued. |
| Deployment | deployment_started | Trigger a webhook when a deployment starts running. |
| Deployment | deployment_succeeded | Trigger a webhook when a deployment succeeds. |
| Deployment | deployment_failed | Trigger a webhook when a deployment fails. |
| Drift | drift_detected | Trigger a webhook when drift is detected. |
| Drift | drift_detection_succeeded | Trigger a webhook when a drift detection run succeeds, regardless of whether drift is detected. |
| Drift | drift_detection_failed | Trigger a webhook when a drift detection run fails. |
| Drift | drift_remediation_succeeded | Trigger a webhook when a drift remediation run succeeds. |
| Drift | drift_remediation_failed | Trigger a webhook when a drift remediation run fails. |
| Environment | environment_created | Trigger a webhook when a new environment is created. |
| Environment | environment_deleted | Trigger a webhook when an environment is deleted. |
| Environment | environment_revision_created | Trigger a webhook when a new revision is created on an environment. |
| Environment | environment_revision_retracted | Trigger a webhook when a revision is retracted on an environment. |
| Environment | environment_revision_tag_created | Trigger a webhook when a revision tag is created on an environment. |
| Environment | environment_revision_tag_deleted | Trigger a webhook when a revision tag is deleted on an environment. |
| Environment | environment_revision_tag_updated | Trigger a webhook when a revision tag is updated on an environment. |
| Environment | environment_tag_created | Trigger a webhook when an environment tag is created. |
| Environment | environment_tag_deleted | Trigger a webhook when an environment tag is deleted. |
| Environment | environment_tag_updated | Trigger a webhook when an environment tag is updated. |
| Imported | imported_environment_changed | Trigger a webhook when an imported environment has changed. |
| Environment | environment_rotation_succeeded | Trigger a webhook when an environment rotation succeeds. |
| Environment | environment_rotation_failed | Trigger a webhook when an environment rotation fails. |
| Name | Value | Description |
|---|---|---|
| STACK_CREATED | stack_created | Trigger a webhook when a stack is created. Only valid for org webhooks. |
| STACK_DELETED | stack_deleted | Trigger a webhook when a stack is deleted. Only valid for org webhooks. |
| UPDATE_SUCCEEDED | update_succeeded | Trigger a webhook when a stack update succeeds. |
| UPDATE_FAILED | update_failed | Trigger a webhook when a stack update fails. |
| PREVIEW_SUCCEEDED | preview_succeeded | Trigger a webhook when a stack preview succeeds. |
| PREVIEW_FAILED | preview_failed | Trigger a webhook when a stack preview fails. |
| DESTROY_SUCCEEDED | destroy_succeeded | Trigger a webhook when a stack destroy succeeds. |
| DESTROY_FAILED | destroy_failed | Trigger a webhook when a stack destroy fails. |
| REFRESH_SUCCEEDED | refresh_succeeded | Trigger a webhook when a stack refresh succeeds. |
| REFRESH_FAILED | refresh_failed | Trigger a webhook when a stack refresh fails. |
| DEPLOYMENT_QUEUED | deployment_queued | Trigger a webhook when a deployment is queued. |
| DEPLOYMENT_STARTED | deployment_started | Trigger a webhook when a deployment starts running. |
| DEPLOYMENT_SUCCEEDED | deployment_succeeded | Trigger a webhook when a deployment succeeds. |
| DEPLOYMENT_FAILED | deployment_failed | Trigger a webhook when a deployment fails. |
| DRIFT_DETECTED | drift_detected | Trigger a webhook when drift is detected. |
| DRIFT_DETECTION_SUCCEEDED | drift_detection_succeeded | Trigger a webhook when a drift detection run succeeds, regardless of whether drift is detected. |
| DRIFT_DETECTION_FAILED | drift_detection_failed | Trigger a webhook when a drift detection run fails. |
| DRIFT_REMEDIATION_SUCCEEDED | drift_remediation_succeeded | Trigger a webhook when a drift remediation run succeeds. |
| DRIFT_REMEDIATION_FAILED | drift_remediation_failed | Trigger a webhook when a drift remediation run fails. |
| ENVIRONMENT_CREATED | environment_created | Trigger a webhook when a new environment is created. |
| ENVIRONMENT_DELETED | environment_deleted | Trigger a webhook when an environment is deleted. |
| ENVIRONMENT_REVISION_CREATED | environment_revision_created | Trigger a webhook when a new revision is created on an environment. |
| ENVIRONMENT_REVISION_RETRACTED | environment_revision_retracted | Trigger a webhook when a revision is retracted on an environment. |
| ENVIRONMENT_REVISION_TAG_CREATED | environment_revision_tag_created | Trigger a webhook when a revision tag is created on an environment. |
| ENVIRONMENT_REVISION_TAG_DELETED | environment_revision_tag_deleted | Trigger a webhook when a revision tag is deleted on an environment. |
| ENVIRONMENT_REVISION_TAG_UPDATED | environment_revision_tag_updated | Trigger a webhook when a revision tag is updated on an environment. |
| ENVIRONMENT_TAG_CREATED | environment_tag_created | Trigger a webhook when an environment tag is created. |
| ENVIRONMENT_TAG_DELETED | environment_tag_deleted | Trigger a webhook when an environment tag is deleted. |
| ENVIRONMENT_TAG_UPDATED | environment_tag_updated | Trigger a webhook when an environment tag is updated. |
| IMPORTED_ENVIRONMENT_CHANGED | imported_environment_changed | Trigger a webhook when an imported environment has changed. |
| ENVIRONMENT_ROTATION_SUCCEEDED | environment_rotation_succeeded | Trigger a webhook when an environment rotation succeeds. |
| ENVIRONMENT_ROTATION_FAILED | environment_rotation_failed | Trigger a webhook when an environment rotation fails. |
| Value | Description |
|---|---|
stack_created | Trigger a webhook when a stack is created. Only valid for org webhooks. |
stack_deleted | Trigger a webhook when a stack is deleted. Only valid for org webhooks. |
update_succeeded | Trigger a webhook when a stack update succeeds. |
update_failed | Trigger a webhook when a stack update fails. |
preview_succeeded | Trigger a webhook when a stack preview succeeds. |
preview_failed | Trigger a webhook when a stack preview fails. |
destroy_succeeded | Trigger a webhook when a stack destroy succeeds. |
destroy_failed | Trigger a webhook when a stack destroy fails. |
refresh_succeeded | Trigger a webhook when a stack refresh succeeds. |
refresh_failed | Trigger a webhook when a stack refresh fails. |
deployment_queued | Trigger a webhook when a deployment is queued. |
deployment_started | Trigger a webhook when a deployment starts running. |
deployment_succeeded | Trigger a webhook when a deployment succeeds. |
deployment_failed | Trigger a webhook when a deployment fails. |
drift_detected | Trigger a webhook when drift is detected. |
drift_detection_succeeded | Trigger a webhook when a drift detection run succeeds, regardless of whether drift is detected. |
drift_detection_failed | Trigger a webhook when a drift detection run fails. |
drift_remediation_succeeded | Trigger a webhook when a drift remediation run succeeds. |
drift_remediation_failed | Trigger a webhook when a drift remediation run fails. |
environment_created | Trigger a webhook when a new environment is created. |
environment_deleted | Trigger a webhook when an environment is deleted. |
environment_revision_created | Trigger a webhook when a new revision is created on an environment. |
environment_revision_retracted | Trigger a webhook when a revision is retracted on an environment. |
environment_revision_tag_created | Trigger a webhook when a revision tag is created on an environment. |
environment_revision_tag_deleted | Trigger a webhook when a revision tag is deleted on an environment. |
environment_revision_tag_updated | Trigger a webhook when a revision tag is updated on an environment. |
environment_tag_created | Trigger a webhook when an environment tag is created. |
environment_tag_deleted | Trigger a webhook when an environment tag is deleted. |
environment_tag_updated | Trigger a webhook when an environment tag is updated. |
imported_environment_changed | Trigger a webhook when an imported environment has changed. |
environment_rotation_succeeded | Trigger a webhook when an environment rotation succeeds. |
environment_rotation_failed | Trigger a webhook when an environment rotation fails. |
WebhookFormat
| Name | Value | Description |
|---|---|---|
| Raw | raw | The default webhook format. |
| Slack | slack | Messages formatted for consumption by Slack incoming webhooks. |
| Pulumi | pulumi_deployments | Initiate deployments on a stack from a Pulumi Cloud webhook. |
| Microsoft | ms_teams | Messages formatted for consumption by Microsoft Teams incoming webhooks. |
| Name | Value | Description |
|---|---|---|
| Webhook | raw | The default webhook format. |
| Webhook | slack | Messages formatted for consumption by Slack incoming webhooks. |
| Webhook | pulumi_deployments | Initiate deployments on a stack from a Pulumi Cloud webhook. |
| Webhook | ms_teams | Messages formatted for consumption by Microsoft Teams incoming webhooks. |
| Value | Description |
|---|---|
raw | The default webhook format. |
slack | Messages formatted for consumption by Slack incoming webhooks. |
pulumi_deployments | Initiate deployments on a stack from a Pulumi Cloud webhook. |
ms_teams | Messages formatted for consumption by Microsoft Teams incoming webhooks. |
| Name | Value | Description |
|---|---|---|
| Raw | raw | The default webhook format. |
| Slack | slack | Messages formatted for consumption by Slack incoming webhooks. |
| Pulumi | pulumi_deployments | Initiate deployments on a stack from a Pulumi Cloud webhook. |
| Microsoft | ms_teams | Messages formatted for consumption by Microsoft Teams incoming webhooks. |
| Name | Value | Description |
|---|---|---|
| Raw | raw | The default webhook format. |
| Slack | slack | Messages formatted for consumption by Slack incoming webhooks. |
| Pulumi | pulumi_deployments | Initiate deployments on a stack from a Pulumi Cloud webhook. |
| Microsoft | ms_teams | Messages formatted for consumption by Microsoft Teams incoming webhooks. |
| Name | Value | Description |
|---|---|---|
| RAW | raw | The default webhook format. |
| SLACK | slack | Messages formatted for consumption by Slack incoming webhooks. |
| PULUMI_DEPLOYMENTS | pulumi_deployments | Initiate deployments on a stack from a Pulumi Cloud webhook. |
| MICROSOFT_TEAMS | ms_teams | Messages formatted for consumption by Microsoft Teams incoming webhooks. |
| Value | Description |
|---|---|
raw | The default webhook format. |
slack | Messages formatted for consumption by Slack incoming webhooks. |
pulumi_deployments | Initiate deployments on a stack from a Pulumi Cloud webhook. |
ms_teams | Messages formatted for consumption by Microsoft Teams incoming webhooks. |
WebhookGroup
| Name | Value | Description |
|---|---|---|
| Stacks | stacks | A group of webhooks containing all stack events. |
| Deployments | deployments | A group of webhooks containing all deployment events. |
| Environments | environments | A group of webhooks containing all environment events. |
| Name | Value | Description |
|---|---|---|
| Webhook | stacks | A group of webhooks containing all stack events. |
| Webhook | deployments | A group of webhooks containing all deployment events. |
| Webhook | environments | A group of webhooks containing all environment events. |
| Value | Description |
|---|---|
stacks | A group of webhooks containing all stack events. |
deployments | A group of webhooks containing all deployment events. |
environments | A group of webhooks containing all environment events. |
| Name | Value | Description |
|---|---|---|
| Stacks | stacks | A group of webhooks containing all stack events. |
| Deployments | deployments | A group of webhooks containing all deployment events. |
| Environments | environments | A group of webhooks containing all environment events. |
| Name | Value | Description |
|---|---|---|
| Stacks | stacks | A group of webhooks containing all stack events. |
| Deployments | deployments | A group of webhooks containing all deployment events. |
| Environments | environments | A group of webhooks containing all environment events. |
| Name | Value | Description |
|---|---|---|
| STACKS | stacks | A group of webhooks containing all stack events. |
| DEPLOYMENTS | deployments | A group of webhooks containing all deployment events. |
| ENVIRONMENTS | environments | A group of webhooks containing all environment events. |
| Value | Description |
|---|---|
stacks | A group of webhooks containing all stack events. |
deployments | A group of webhooks containing all deployment events. |
environments | A group of webhooks containing all environment events. |
Import
This resource can be imported using its id, which has the format {organization}/{project}/{stack}/{webhookName}, e.g.,
$ pulumi import pulumiservice:index:Webhook my-webhook my-org/my-project/my-stack/4b0d0671
Organization webhooks use {organization}/{webhookName}, and environment webhooks use {organization}/environment/{project}/{environment}/{webhookName}.
The webhook name is the last segment of its page URL in the Pulumi Cloud console, for example https://app.pulumi.com/my-org/my-project/my-stack/settings/webhooks/4b0d0671. It’s an 8-character hex value that Pulumi Cloud assigned, not the webhook’s display name.
The webhook’s secret can’t be read back from Pulumi Cloud, so it’s empty after import.
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- pulumiservice pulumi/pulumi-pulumiservice
- License
- Apache-2.0
published on Thursday, Nov 19, 2026 by Pulumi