published on Friday, Sep 11, 2026 by incident-io
published on Friday, Sep 11, 2026 by incident-io
Import
Import is supported using an import block or the pulumi import command:
The pulumi import command can be used, for example:
#!/bin/bash
Import a secret using its ID
Replace the ID with a real ID from your incident.io organization
$ pulumi import incident:index/secret:Secret example 01ABC123DEF456GHI789JKL
An imported secret has no value_wo_version, because the value it already holds didn’t
come from your configuration. If your config sets value_wo and value_wo_version, the
first apply after importing will rotate the secret to that value - the plan says so.
To adopt a secret without touching its value, leave both attributes unset.
Create Secret Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Secret(name: string, args?: SecretArgs, opts?: CustomResourceOptions);@overload
def Secret(resource_name: str,
args: Optional[SecretArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Secret(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
name: Optional[str] = None,
owning_team_ids: Optional[Sequence[str]] = None,
value_wo: Optional[str] = None,
value_wo_version: Optional[float] = None)func NewSecret(ctx *Context, name string, args *SecretArgs, opts ...ResourceOption) (*Secret, error)public Secret(string name, SecretArgs? args = null, CustomResourceOptions? opts = null)
public Secret(String name, SecretArgs args)
public Secret(String name, SecretArgs args, CustomResourceOptions options)
type: incident:Secret
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "incident_secret" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args SecretArgs
- 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 SecretArgs
- 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 SecretArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SecretArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SecretArgs
- 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 secretResource = new Incident.Secret("secretResource", new()
{
Description = "string",
Name = "string",
OwningTeamIds = new[]
{
"string",
},
ValueWo = "string",
ValueWoVersion = 0.0,
});
example, err := incident.NewSecret(ctx, "secretResource", &incident.SecretArgs{
Description: pulumi.String("string"),
Name: pulumi.String("string"),
OwningTeamIds: pulumi.StringArray{
pulumi.String("string"),
},
ValueWo: pulumi.String("string"),
ValueWoVersion: pulumi.Float64(0),
})
resource "incident_secret" "secretResource" {
lifecycle {
create_before_destroy = true
}
description = "string"
name = "string"
owning_team_ids = ["string"]
value_wo = "string"
value_wo_version = 0
}
var secretResource = new Secret("secretResource", SecretArgs.builder()
.description("string")
.name("string")
.owningTeamIds("string")
.valueWo("string")
.valueWoVersion(0.0)
.build());
secret_resource = incident.Secret("secretResource",
description="string",
name="string",
owning_team_ids=["string"],
value_wo="string",
value_wo_version=float(0))
const secretResource = new incident.Secret("secretResource", {
description: "string",
name: "string",
owningTeamIds: ["string"],
valueWo: "string",
valueWoVersion: 0,
});
type: incident:Secret
properties:
description: string
name: string
owningTeamIds:
- string
valueWo: string
valueWoVersion: 0
Secret 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 Secret resource accepts the following input properties:
- Description string
- Optional description of what this secret is for
- Name string
- Human-readable name, unique within the organisation amongst unarchived secrets. At most 1024 bytes, counted in bytes rather than characters, so a name using multi-byte characters reaches the limit sooner.
- Owning
Team List<string>Ids - IDs of the teams that own this secret. Empty means the secret is owned by the whole organisation.
- Value
Wo string - Value
Wo doubleVersion
- Description string
- Optional description of what this secret is for
- Name string
- Human-readable name, unique within the organisation amongst unarchived secrets. At most 1024 bytes, counted in bytes rather than characters, so a name using multi-byte characters reaches the limit sooner.
- Owning
Team []stringIds - IDs of the teams that own this secret. Empty means the secret is owned by the whole organisation.
- Value
Wo string - Value
Wo float64Version
- description string
- Optional description of what this secret is for
- name string
- Human-readable name, unique within the organisation amongst unarchived secrets. At most 1024 bytes, counted in bytes rather than characters, so a name using multi-byte characters reaches the limit sooner.
- owning_
team_ list(string)ids - IDs of the teams that own this secret. Empty means the secret is owned by the whole organisation.
- value_
wo string - value_
wo_ numberversion
- description String
- Optional description of what this secret is for
- name String
- Human-readable name, unique within the organisation amongst unarchived secrets. At most 1024 bytes, counted in bytes rather than characters, so a name using multi-byte characters reaches the limit sooner.
- owning
Team List<String>Ids - IDs of the teams that own this secret. Empty means the secret is owned by the whole organisation.
- value
Wo String - value
Wo DoubleVersion
- description string
- Optional description of what this secret is for
- name string
- Human-readable name, unique within the organisation amongst unarchived secrets. At most 1024 bytes, counted in bytes rather than characters, so a name using multi-byte characters reaches the limit sooner.
- owning
Team string[]Ids - IDs of the teams that own this secret. Empty means the secret is owned by the whole organisation.
- value
Wo string - value
Wo numberVersion
- description str
- Optional description of what this secret is for
- name str
- Human-readable name, unique within the organisation amongst unarchived secrets. At most 1024 bytes, counted in bytes rather than characters, so a name using multi-byte characters reaches the limit sooner.
- owning_
team_ Sequence[str]ids - IDs of the teams that own this secret. Empty means the secret is owned by the whole organisation.
- value_
wo str - value_
wo_ floatversion
- description String
- Optional description of what this secret is for
- name String
- Human-readable name, unique within the organisation amongst unarchived secrets. At most 1024 bytes, counted in bytes rather than characters, so a name using multi-byte characters reaches the limit sooner.
- owning
Team List<String>Ids - IDs of the teams that own this secret. Empty means the secret is owned by the whole organisation.
- value
Wo String - value
Wo NumberVersion
Outputs
All input properties are implicitly available as output properties. Additionally, the Secret resource produces the following output properties:
- Created
At string - When this secret was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Four stringChars - The last four characters of the current value, for masked display. Absent when the value is four characters or shorter.
- Updated
At string - When this secret was last changed, which includes being rotated as well as having its metadata edited.
- Version double
- The current version number, incremented on each rotation
- Created
At string - When this secret was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Four stringChars - The last four characters of the current value, for masked display. Absent when the value is four characters or shorter.
- Updated
At string - When this secret was last changed, which includes being rotated as well as having its metadata edited.
- Version float64
- The current version number, incremented on each rotation
- created_
at string - When this secret was created.
- id string
- The provider-assigned unique ID for this managed resource.
- last_
four_ stringchars - The last four characters of the current value, for masked display. Absent when the value is four characters or shorter.
- updated_
at string - When this secret was last changed, which includes being rotated as well as having its metadata edited.
- version number
- The current version number, incremented on each rotation
- created
At String - When this secret was created.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Four StringChars - The last four characters of the current value, for masked display. Absent when the value is four characters or shorter.
- updated
At String - When this secret was last changed, which includes being rotated as well as having its metadata edited.
- version Double
- The current version number, incremented on each rotation
- created
At string - When this secret was created.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Four stringChars - The last four characters of the current value, for masked display. Absent when the value is four characters or shorter.
- updated
At string - When this secret was last changed, which includes being rotated as well as having its metadata edited.
- version number
- The current version number, incremented on each rotation
- created_
at str - When this secret was created.
- id str
- The provider-assigned unique ID for this managed resource.
- last_
four_ strchars - The last four characters of the current value, for masked display. Absent when the value is four characters or shorter.
- updated_
at str - When this secret was last changed, which includes being rotated as well as having its metadata edited.
- version float
- The current version number, incremented on each rotation
- created
At String - When this secret was created.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Four StringChars - The last four characters of the current value, for masked display. Absent when the value is four characters or shorter.
- updated
At String - When this secret was last changed, which includes being rotated as well as having its metadata edited.
- version Number
- The current version number, incremented on each rotation
Look up Existing Secret Resource
Get an existing Secret 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>, state?: SecretState, opts?: CustomResourceOptions): Secret@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created_at: Optional[str] = None,
description: Optional[str] = None,
last_four_chars: Optional[str] = None,
name: Optional[str] = None,
owning_team_ids: Optional[Sequence[str]] = None,
updated_at: Optional[str] = None,
value_wo: Optional[str] = None,
value_wo_version: Optional[float] = None,
version: Optional[float] = None) -> Secretfunc GetSecret(ctx *Context, name string, id IDInput, state *SecretState, opts ...ResourceOption) (*Secret, error)public static Secret Get(string name, Input<string> id, SecretState? state, CustomResourceOptions? opts = null)public static Secret get(String name, Output<String> id, SecretState state, CustomResourceOptions options)resources: _: type: incident:Secret get: id: ${id}import {
to = incident_secret.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Created
At string - When this secret was created.
- Description string
- Optional description of what this secret is for
- Last
Four stringChars - The last four characters of the current value, for masked display. Absent when the value is four characters or shorter.
- Name string
- Human-readable name, unique within the organisation amongst unarchived secrets. At most 1024 bytes, counted in bytes rather than characters, so a name using multi-byte characters reaches the limit sooner.
- Owning
Team List<string>Ids - IDs of the teams that own this secret. Empty means the secret is owned by the whole organisation.
- Updated
At string - When this secret was last changed, which includes being rotated as well as having its metadata edited.
- Value
Wo string - Value
Wo doubleVersion - Version double
- The current version number, incremented on each rotation
- Created
At string - When this secret was created.
- Description string
- Optional description of what this secret is for
- Last
Four stringChars - The last four characters of the current value, for masked display. Absent when the value is four characters or shorter.
- Name string
- Human-readable name, unique within the organisation amongst unarchived secrets. At most 1024 bytes, counted in bytes rather than characters, so a name using multi-byte characters reaches the limit sooner.
- Owning
Team []stringIds - IDs of the teams that own this secret. Empty means the secret is owned by the whole organisation.
- Updated
At string - When this secret was last changed, which includes being rotated as well as having its metadata edited.
- Value
Wo string - Value
Wo float64Version - Version float64
- The current version number, incremented on each rotation
- created_
at string - When this secret was created.
- description string
- Optional description of what this secret is for
- last_
four_ stringchars - The last four characters of the current value, for masked display. Absent when the value is four characters or shorter.
- name string
- Human-readable name, unique within the organisation amongst unarchived secrets. At most 1024 bytes, counted in bytes rather than characters, so a name using multi-byte characters reaches the limit sooner.
- owning_
team_ list(string)ids - IDs of the teams that own this secret. Empty means the secret is owned by the whole organisation.
- updated_
at string - When this secret was last changed, which includes being rotated as well as having its metadata edited.
- value_
wo string - value_
wo_ numberversion - version number
- The current version number, incremented on each rotation
- created
At String - When this secret was created.
- description String
- Optional description of what this secret is for
- last
Four StringChars - The last four characters of the current value, for masked display. Absent when the value is four characters or shorter.
- name String
- Human-readable name, unique within the organisation amongst unarchived secrets. At most 1024 bytes, counted in bytes rather than characters, so a name using multi-byte characters reaches the limit sooner.
- owning
Team List<String>Ids - IDs of the teams that own this secret. Empty means the secret is owned by the whole organisation.
- updated
At String - When this secret was last changed, which includes being rotated as well as having its metadata edited.
- value
Wo String - value
Wo DoubleVersion - version Double
- The current version number, incremented on each rotation
- created
At string - When this secret was created.
- description string
- Optional description of what this secret is for
- last
Four stringChars - The last four characters of the current value, for masked display. Absent when the value is four characters or shorter.
- name string
- Human-readable name, unique within the organisation amongst unarchived secrets. At most 1024 bytes, counted in bytes rather than characters, so a name using multi-byte characters reaches the limit sooner.
- owning
Team string[]Ids - IDs of the teams that own this secret. Empty means the secret is owned by the whole organisation.
- updated
At string - When this secret was last changed, which includes being rotated as well as having its metadata edited.
- value
Wo string - value
Wo numberVersion - version number
- The current version number, incremented on each rotation
- created_
at str - When this secret was created.
- description str
- Optional description of what this secret is for
- last_
four_ strchars - The last four characters of the current value, for masked display. Absent when the value is four characters or shorter.
- name str
- Human-readable name, unique within the organisation amongst unarchived secrets. At most 1024 bytes, counted in bytes rather than characters, so a name using multi-byte characters reaches the limit sooner.
- owning_
team_ Sequence[str]ids - IDs of the teams that own this secret. Empty means the secret is owned by the whole organisation.
- updated_
at str - When this secret was last changed, which includes being rotated as well as having its metadata edited.
- value_
wo str - value_
wo_ floatversion - version float
- The current version number, incremented on each rotation
- created
At String - When this secret was created.
- description String
- Optional description of what this secret is for
- last
Four StringChars - The last four characters of the current value, for masked display. Absent when the value is four characters or shorter.
- name String
- Human-readable name, unique within the organisation amongst unarchived secrets. At most 1024 bytes, counted in bytes rather than characters, so a name using multi-byte characters reaches the limit sooner.
- owning
Team List<String>Ids - IDs of the teams that own this secret. Empty means the secret is owned by the whole organisation.
- updated
At String - When this secret was last changed, which includes being rotated as well as having its metadata edited.
- value
Wo String - value
Wo NumberVersion - version Number
- The current version number, incremented on each rotation
Package Details
- Repository
- incident incident-io/terraform-provider-incident
- License
- Notes
- This Pulumi package is based on the
incidentTerraform Provider.
published on Friday, Sep 11, 2026 by incident-io