Skip to main content

StackMigrate

Resource StackMigrate in pulumi-portainer.
2 min read

Resource StackMigrate in pulumi-portainer.

Pulumi type: portainer:index/stackMigrate:StackMigrate.

name is the Pulumi resource name. Nested object fields are documented under that object. They are not arguments of this resource.

Example#

Only required arguments are set. A string in angle brackets stands in for that argument. Any other value is an option or example written in the SDK description.

Arguments#

PropertyTypeRequiredDescription
endpointIdnumbernoOptional source environment (endpoint) identifier. Required for stacks created before Portainer 1.18.0.
stackIdnumberyesStack identifier to migrate.
stackMigrateIdstringno
stackNamestringnoNew name for the stack after migration. If not set, the original name is kept.
swarmIdstringnoSwarm cluster identifier (required when migrating to a Swarm environment).
targetEndpointIdnumberyesTarget environment (endpoint) identifier to migrate the stack to.

Outputs#

Computed outputs are produced by the provider. They are not constructor arguments.

PropertyTypeComputedDescription
endpointIdnumbernoOptional source environment (endpoint) identifier. Required for stacks created before Portainer 1.18.0.
stackIdnumbernoStack identifier to migrate.
stackMigrateIdstringno
stackNamestringnoNew name for the stack after migration. If not set, the original name is kept.
swarmIdstringnoSwarm cluster identifier (required when migrating to a Swarm environment).
targetEndpointIdnumbernoTarget environment (endpoint) identifier to migrate the stack to.