1. Packages
  2. Packages
  3. Alibaba Cloud Provider
  4. API Docs
  5. ros
  6. StackInstances
Viewing docs for Alibaba Cloud v3.104.0
published on Thursday, Jun 25, 2026 by Pulumi
alicloud logo
Viewing docs for Alibaba Cloud v3.104.0
published on Thursday, Jun 25, 2026 by Pulumi

    Provides a ROS Stack Instances resource that allows you to deploy, update, or remove stack instances in bulk across multiple target regions and Alibaba Cloud accounts within a Stack Group. It supports both self-managed and service-managed permission models.

    For information about ROS Stack Instances and how to use it, see What is Stack Instance.

    NOTE: Available since v1.279.0.

    Note: Stack Groups and Stack Instances rely on asynchronous batch operations. Partial failures do not trigger automatic rollback. See the Important Notes section for operational guidance.

    Example Usage

    Basic Usage - Self-Managed Permissions

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "tf-example";
    const _this = alicloud.getAccount({});
    const _default = alicloud.ros.getRegions({});
    const defaultStackGroup = new alicloud.ros.StackGroup("default", {
        stackGroupName: name,
        templateBody: "{\"ROSTemplateFormatVersion\":\"2015-09-01\", \"Parameters\": {\"VpcName\": {\"Type\": \"String\"},\"InstanceType\": {\"Type\": \"String\"}}}",
        description: "test for stack groups",
        parameters: [
            {
                parameterKey: "VpcName",
                parameterValue: "VpcName",
            },
            {
                parameterKey: "InstanceType",
                parameterValue: "InstanceType",
            },
        ],
    });
    const selfManaged = new alicloud.ros.StackInstances("self_managed", {
        stackGroupName: defaultStackGroup.stackGroupName,
        regionIds: [_default.then(_default => _default.regions?.[0]?.regionId)],
        accountIds: [_this.then(_this => _this.id)],
        parameterOverrides: [{
            parameterValue: "VpcName",
            parameterKey: "VpcName",
        }],
        timeoutInMinutes: 45,
        operationDescription: "Batch deployment for production environment",
        disableRollback: false,
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "tf-example"
    this = alicloud.get_account()
    default = alicloud.ros.get_regions()
    default_stack_group = alicloud.ros.StackGroup("default",
        stack_group_name=name,
        template_body="{\"ROSTemplateFormatVersion\":\"2015-09-01\", \"Parameters\": {\"VpcName\": {\"Type\": \"String\"},\"InstanceType\": {\"Type\": \"String\"}}}",
        description="test for stack groups",
        parameters=[
            {
                "parameter_key": "VpcName",
                "parameter_value": "VpcName",
            },
            {
                "parameter_key": "InstanceType",
                "parameter_value": "InstanceType",
            },
        ])
    self_managed = alicloud.ros.StackInstances("self_managed",
        stack_group_name=default_stack_group.stack_group_name,
        region_ids=[default.regions[0].region_id],
        account_ids=[this.id],
        parameter_overrides=[{
            "parameter_value": "VpcName",
            "parameter_key": "VpcName",
        }],
        timeout_in_minutes=45,
        operation_description="Batch deployment for production environment",
        disable_rollback=False)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ros"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "tf-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		this, err := alicloud.GetAccount(ctx, map[string]interface{}{}, nil)
    		if err != nil {
    			return err
    		}
    		_default, err := ros.GetRegions(ctx, &ros.GetRegionsArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		defaultStackGroup, err := ros.NewStackGroup(ctx, "default", &ros.StackGroupArgs{
    			StackGroupName: pulumi.String(name),
    			TemplateBody:   pulumi.String("{\"ROSTemplateFormatVersion\":\"2015-09-01\", \"Parameters\": {\"VpcName\": {\"Type\": \"String\"},\"InstanceType\": {\"Type\": \"String\"}}}"),
    			Description:    pulumi.String("test for stack groups"),
    			Parameters: ros.StackGroupParameterArray{
    				&ros.StackGroupParameterArgs{
    					ParameterKey:   pulumi.String("VpcName"),
    					ParameterValue: pulumi.String("VpcName"),
    				},
    				&ros.StackGroupParameterArgs{
    					ParameterKey:   pulumi.String("InstanceType"),
    					ParameterValue: pulumi.String("InstanceType"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = ros.NewStackInstances(ctx, "self_managed", &ros.StackInstancesArgs{
    			StackGroupName: defaultStackGroup.StackGroupName,
    			RegionIds: pulumi.StringArray{
    				pulumi.String(_default.Regions[0].RegionId),
    			},
    			AccountIds: pulumi.StringArray{
    				pulumi.String(this.Id),
    			},
    			ParameterOverrides: ros.StackInstancesParameterOverrideArray{
    				&ros.StackInstancesParameterOverrideArgs{
    					ParameterValue: pulumi.String("VpcName"),
    					ParameterKey:   pulumi.String("VpcName"),
    				},
    			},
    			TimeoutInMinutes:     pulumi.Int(45),
    			OperationDescription: pulumi.String("Batch deployment for production environment"),
    			DisableRollback:      pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "tf-example";
        var @this = AliCloud.GetAccount.Invoke();
    
        var @default = AliCloud.Ros.GetRegions.Invoke();
    
        var defaultStackGroup = new AliCloud.Ros.StackGroup("default", new()
        {
            StackGroupName = name,
            TemplateBody = "{\"ROSTemplateFormatVersion\":\"2015-09-01\", \"Parameters\": {\"VpcName\": {\"Type\": \"String\"},\"InstanceType\": {\"Type\": \"String\"}}}",
            Description = "test for stack groups",
            Parameters = new[]
            {
                new AliCloud.Ros.Inputs.StackGroupParameterArgs
                {
                    ParameterKey = "VpcName",
                    ParameterValue = "VpcName",
                },
                new AliCloud.Ros.Inputs.StackGroupParameterArgs
                {
                    ParameterKey = "InstanceType",
                    ParameterValue = "InstanceType",
                },
            },
        });
    
        var selfManaged = new AliCloud.Ros.StackInstances("self_managed", new()
        {
            StackGroupName = defaultStackGroup.StackGroupName,
            RegionIds = new[]
            {
                @default.Apply(@default => @default.Apply(getRegionsResult => getRegionsResult.Regions[0]?.RegionId)),
            },
            AccountIds = new[]
            {
                @this.Apply(@this => @this.Apply(getAccountResult => getAccountResult.Id)),
            },
            ParameterOverrides = new[]
            {
                new AliCloud.Ros.Inputs.StackInstancesParameterOverrideArgs
                {
                    ParameterValue = "VpcName",
                    ParameterKey = "VpcName",
                },
            },
            TimeoutInMinutes = 45,
            OperationDescription = "Batch deployment for production environment",
            DisableRollback = false,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.AlicloudFunctions;
    import com.pulumi.alicloud.ros.RosFunctions;
    import com.pulumi.alicloud.ros.inputs.GetRegionsArgs;
    import com.pulumi.alicloud.ros.StackGroup;
    import com.pulumi.alicloud.ros.StackGroupArgs;
    import com.pulumi.alicloud.ros.inputs.StackGroupParameterArgs;
    import com.pulumi.alicloud.ros.StackInstances;
    import com.pulumi.alicloud.ros.StackInstancesArgs;
    import com.pulumi.alicloud.ros.inputs.StackInstancesParameterOverrideArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var config = ctx.config();
            final var name = config.get("name").orElse("tf-example");
            final var this = AlicloudFunctions.getAccount(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference);
    
            final var default = RosFunctions.getRegions(GetRegionsArgs.builder()
                .build());
    
            var defaultStackGroup = new StackGroup("defaultStackGroup", StackGroupArgs.builder()
                .stackGroupName(name)
                .templateBody("{\"ROSTemplateFormatVersion\":\"2015-09-01\", \"Parameters\": {\"VpcName\": {\"Type\": \"String\"},\"InstanceType\": {\"Type\": \"String\"}}}")
                .description("test for stack groups")
                .parameters(            
                    StackGroupParameterArgs.builder()
                        .parameterKey("VpcName")
                        .parameterValue("VpcName")
                        .build(),
                    StackGroupParameterArgs.builder()
                        .parameterKey("InstanceType")
                        .parameterValue("InstanceType")
                        .build())
                .build());
    
            var selfManaged = new StackInstances("selfManaged", StackInstancesArgs.builder()
                .stackGroupName(defaultStackGroup.stackGroupName())
                .regionIds(default_.regions()[0].regionId())
                .accountIds(this_.id())
                .parameterOverrides(StackInstancesParameterOverrideArgs.builder()
                    .parameterValue("VpcName")
                    .parameterKey("VpcName")
                    .build())
                .timeoutInMinutes(45)
                .operationDescription("Batch deployment for production environment")
                .disableRollback(false)
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: tf-example
    resources:
      defaultStackGroup:
        type: alicloud:ros:StackGroup
        name: default
        properties:
          stackGroupName: ${name}
          templateBody: '{"ROSTemplateFormatVersion":"2015-09-01", "Parameters": {"VpcName": {"Type": "String"},"InstanceType": {"Type": "String"}}}'
          description: test for stack groups
          parameters:
            - parameterKey: VpcName
              parameterValue: VpcName
            - parameterKey: InstanceType
              parameterValue: InstanceType
      selfManaged:
        type: alicloud:ros:StackInstances
        name: self_managed
        properties:
          stackGroupName: ${defaultStackGroup.stackGroupName}
          regionIds:
            - ${default.regions[0].regionId}
          accountIds:
            - ${this.id}
          parameterOverrides:
            - parameterValue: VpcName
              parameterKey: VpcName
          timeoutInMinutes: 45
          operationDescription: Batch deployment for production environment
          disableRollback: false
    variables:
      this:
        fn::invoke:
          function: alicloud:getAccount
          arguments: {}
      default:
        fn::invoke:
          function: alicloud:ros:getRegions
          arguments: {}
    
    pulumi {
      required_providers {
        alicloud = {
          source = "pulumi/alicloud"
        }
      }
    }
    
    data "alicloud_getaccount" "this" {
    }
    data "alicloud_ros_getregions" "default" {
    }
    
    resource "alicloud_ros_stackgroup" "default" {
      stack_group_name = var.name
      template_body    = "{\"ROSTemplateFormatVersion\":\"2015-09-01\", \"Parameters\": {\"VpcName\": {\"Type\": \"String\"},\"InstanceType\": {\"Type\": \"String\"}}}"
      description      = "test for stack groups"
      parameters {
        parameter_key   = "VpcName"
        parameter_value = "VpcName"
      }
      parameters {
        parameter_key   = "InstanceType"
        parameter_value = "InstanceType"
      }
    }
    resource "alicloud_ros_stackinstances" "self_managed" {
      stack_group_name = alicloud_ros_stackgroup.default.stack_group_name
      region_ids       = [data.alicloud_ros_getregions.default.regions[0].region_id]
      account_ids      = [data.alicloud_getaccount.this.id]
      parameter_overrides {
        parameter_value = "VpcName"
        parameter_key   = "VpcName"
      }
      timeout_in_minutes    = 45
      operation_description = "Batch deployment for production environment"
      disable_rollback      = false
    }
    variable "name" {
      type    = string
      default = "tf-example"
    }
    

    📚 Need more examples? VIEW MORE EXAMPLES

    Create StackInstances Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new StackInstances(name: string, args: StackInstancesArgs, opts?: CustomResourceOptions);
    @overload
    def StackInstances(resource_name: str,
                       args: StackInstancesArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def StackInstances(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       region_ids: Optional[Sequence[str]] = None,
                       stack_group_name: Optional[str] = None,
                       account_ids: Optional[Sequence[str]] = None,
                       deployment_options: Optional[str] = None,
                       deployment_targets: Optional[StackInstancesDeploymentTargetsArgs] = None,
                       disable_rollback: Optional[bool] = None,
                       operation_description: Optional[str] = None,
                       operation_preferences: Optional[StackInstancesOperationPreferencesArgs] = None,
                       parameter_overrides: Optional[Sequence[StackInstancesParameterOverrideArgs]] = None,
                       timeout_in_minutes: Optional[int] = None)
    func NewStackInstances(ctx *Context, name string, args StackInstancesArgs, opts ...ResourceOption) (*StackInstances, error)
    public StackInstances(string name, StackInstancesArgs args, CustomResourceOptions? opts = null)
    public StackInstances(String name, StackInstancesArgs args)
    public StackInstances(String name, StackInstancesArgs args, CustomResourceOptions options)
    
    type: alicloud:ros:StackInstances
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "alicloud_ros_stackinstances" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args StackInstancesArgs
    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 StackInstancesArgs
    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 StackInstancesArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args StackInstancesArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args StackInstancesArgs
    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 stackInstancesResource = new AliCloud.Ros.StackInstances("stackInstancesResource", new()
    {
        RegionIds = new[]
        {
            "string",
        },
        StackGroupName = "string",
        AccountIds = new[]
        {
            "string",
        },
        DeploymentOptions = "string",
        DeploymentTargets = new AliCloud.Ros.Inputs.StackInstancesDeploymentTargetsArgs
        {
            AccountIds = new[]
            {
                "string",
            },
            RdFolderIds = new[]
            {
                "string",
            },
        },
        DisableRollback = false,
        OperationDescription = "string",
        OperationPreferences = new AliCloud.Ros.Inputs.StackInstancesOperationPreferencesArgs
        {
            FailureToleranceCount = 0,
            FailureTolerancePercentage = 0,
            MaxConcurrentCount = 0,
            MaxConcurrentPercentage = 0,
            RegionConcurrencyType = "string",
        },
        ParameterOverrides = new[]
        {
            new AliCloud.Ros.Inputs.StackInstancesParameterOverrideArgs
            {
                ParameterKey = "string",
                ParameterValue = "string",
            },
        },
        TimeoutInMinutes = 0,
    });
    
    example, err := ros.NewStackInstances(ctx, "stackInstancesResource", &ros.StackInstancesArgs{
    	RegionIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	StackGroupName: pulumi.String("string"),
    	AccountIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	DeploymentOptions: pulumi.String("string"),
    	DeploymentTargets: &ros.StackInstancesDeploymentTargetsArgs{
    		AccountIds: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		RdFolderIds: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    	},
    	DisableRollback:      pulumi.Bool(false),
    	OperationDescription: pulumi.String("string"),
    	OperationPreferences: &ros.StackInstancesOperationPreferencesArgs{
    		FailureToleranceCount:      pulumi.Int(0),
    		FailureTolerancePercentage: pulumi.Int(0),
    		MaxConcurrentCount:         pulumi.Int(0),
    		MaxConcurrentPercentage:    pulumi.Int(0),
    		RegionConcurrencyType:      pulumi.String("string"),
    	},
    	ParameterOverrides: ros.StackInstancesParameterOverrideArray{
    		&ros.StackInstancesParameterOverrideArgs{
    			ParameterKey:   pulumi.String("string"),
    			ParameterValue: pulumi.String("string"),
    		},
    	},
    	TimeoutInMinutes: pulumi.Int(0),
    })
    
    resource "alicloud_ros_stackinstances" "stackInstancesResource" {
      region_ids         = ["string"]
      stack_group_name   = "string"
      account_ids        = ["string"]
      deployment_options = "string"
      deployment_targets = {
        account_ids   = ["string"]
        rd_folder_ids = ["string"]
      }
      disable_rollback      = false
      operation_description = "string"
      operation_preferences = {
        failure_tolerance_count      = 0
        failure_tolerance_percentage = 0
        max_concurrent_count         = 0
        max_concurrent_percentage    = 0
        region_concurrency_type      = "string"
      }
      parameter_overrides {
        parameter_key   = "string"
        parameter_value = "string"
      }
      timeout_in_minutes = 0
    }
    
    var stackInstancesResource = new StackInstances("stackInstancesResource", StackInstancesArgs.builder()
        .regionIds("string")
        .stackGroupName("string")
        .accountIds("string")
        .deploymentOptions("string")
        .deploymentTargets(StackInstancesDeploymentTargetsArgs.builder()
            .accountIds("string")
            .rdFolderIds("string")
            .build())
        .disableRollback(false)
        .operationDescription("string")
        .operationPreferences(StackInstancesOperationPreferencesArgs.builder()
            .failureToleranceCount(0)
            .failureTolerancePercentage(0)
            .maxConcurrentCount(0)
            .maxConcurrentPercentage(0)
            .regionConcurrencyType("string")
            .build())
        .parameterOverrides(StackInstancesParameterOverrideArgs.builder()
            .parameterKey("string")
            .parameterValue("string")
            .build())
        .timeoutInMinutes(0)
        .build());
    
    stack_instances_resource = alicloud.ros.StackInstances("stackInstancesResource",
        region_ids=["string"],
        stack_group_name="string",
        account_ids=["string"],
        deployment_options="string",
        deployment_targets={
            "account_ids": ["string"],
            "rd_folder_ids": ["string"],
        },
        disable_rollback=False,
        operation_description="string",
        operation_preferences={
            "failure_tolerance_count": 0,
            "failure_tolerance_percentage": 0,
            "max_concurrent_count": 0,
            "max_concurrent_percentage": 0,
            "region_concurrency_type": "string",
        },
        parameter_overrides=[{
            "parameter_key": "string",
            "parameter_value": "string",
        }],
        timeout_in_minutes=0)
    
    const stackInstancesResource = new alicloud.ros.StackInstances("stackInstancesResource", {
        regionIds: ["string"],
        stackGroupName: "string",
        accountIds: ["string"],
        deploymentOptions: "string",
        deploymentTargets: {
            accountIds: ["string"],
            rdFolderIds: ["string"],
        },
        disableRollback: false,
        operationDescription: "string",
        operationPreferences: {
            failureToleranceCount: 0,
            failureTolerancePercentage: 0,
            maxConcurrentCount: 0,
            maxConcurrentPercentage: 0,
            regionConcurrencyType: "string",
        },
        parameterOverrides: [{
            parameterKey: "string",
            parameterValue: "string",
        }],
        timeoutInMinutes: 0,
    });
    
    type: alicloud:ros:StackInstances
    properties:
        accountIds:
            - string
        deploymentOptions: string
        deploymentTargets:
            accountIds:
                - string
            rdFolderIds:
                - string
        disableRollback: false
        operationDescription: string
        operationPreferences:
            failureToleranceCount: 0
            failureTolerancePercentage: 0
            maxConcurrentCount: 0
            maxConcurrentPercentage: 0
            regionConcurrencyType: string
        parameterOverrides:
            - parameterKey: string
              parameterValue: string
        regionIds:
            - string
        stackGroupName: string
        timeoutInMinutes: 0
    

    StackInstances 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 StackInstances resource accepts the following input properties:

    RegionIds List<string>
    List of target region IDs where stack instances will be deployed. You can specify 1 to 20 regions. This parameter cannot be modified after creation. Example: ["cn-beijing", "cn-shanghai"].
    StackGroupName string
    The name of the stack group to which the stack instances belong. This parameter cannot be modified after creation.
    AccountIds List<string>
    List of target Alibaba Cloud account IDs for self-managed permissions model. You can specify 1 to 50 accounts. This parameter conflicts with deploymentTargets. This parameter cannot be modified after creation. Example: ["123456789012****", "098765432109****"].
    DeploymentOptions string
    List of deployment options for service-managed permissions. Currently only supports IgnoreExisting, which skips existing stack instances during deployment. This parameter cannot be modified after creation. Example: ["IgnoreExisting"].
    DeploymentTargets Pulumi.AliCloud.Ros.Inputs.StackInstancesDeploymentTargets

    Configuration block defining deployment targets for service-managed permissions model. This parameter conflicts with accountIds. This parameter cannot be modified after creation. See deploymentTargets below.

    NOTE: You must specify either accountIds (for self-managed permissions) or deploymentTargets (for service-managed permissions), but not both.

    DisableRollback bool
    Specifies whether to disable the rollback policy when creating stack instances fails. Valid values: true, false. Default value: false. This parameter cannot be modified after creation.
    OperationDescription string
    Description of the stack instances operation. The description must be 1 to 256 characters in length.
    OperationPreferences Pulumi.AliCloud.Ros.Inputs.StackInstancesOperationPreferences
    Configuration block defining preferences for how the operation is performed across multiple accounts and regions. See operationPreferences below.
    ParameterOverrides List<Pulumi.AliCloud.Ros.Inputs.StackInstancesParameterOverride>
    A set of parameters to override in the stack instances. See parameterOverrides below.
    TimeoutInMinutes int
    The amount of time in minutes that can elapse before the stack operation status is set to TIMED_OUT. Valid values: 1 to 1440. Default value: 60.
    RegionIds []string
    List of target region IDs where stack instances will be deployed. You can specify 1 to 20 regions. This parameter cannot be modified after creation. Example: ["cn-beijing", "cn-shanghai"].
    StackGroupName string
    The name of the stack group to which the stack instances belong. This parameter cannot be modified after creation.
    AccountIds []string
    List of target Alibaba Cloud account IDs for self-managed permissions model. You can specify 1 to 50 accounts. This parameter conflicts with deploymentTargets. This parameter cannot be modified after creation. Example: ["123456789012****", "098765432109****"].
    DeploymentOptions string
    List of deployment options for service-managed permissions. Currently only supports IgnoreExisting, which skips existing stack instances during deployment. This parameter cannot be modified after creation. Example: ["IgnoreExisting"].
    DeploymentTargets StackInstancesDeploymentTargetsArgs

    Configuration block defining deployment targets for service-managed permissions model. This parameter conflicts with accountIds. This parameter cannot be modified after creation. See deploymentTargets below.

    NOTE: You must specify either accountIds (for self-managed permissions) or deploymentTargets (for service-managed permissions), but not both.

    DisableRollback bool
    Specifies whether to disable the rollback policy when creating stack instances fails. Valid values: true, false. Default value: false. This parameter cannot be modified after creation.
    OperationDescription string
    Description of the stack instances operation. The description must be 1 to 256 characters in length.
    OperationPreferences StackInstancesOperationPreferencesArgs
    Configuration block defining preferences for how the operation is performed across multiple accounts and regions. See operationPreferences below.
    ParameterOverrides []StackInstancesParameterOverrideArgs
    A set of parameters to override in the stack instances. See parameterOverrides below.
    TimeoutInMinutes int
    The amount of time in minutes that can elapse before the stack operation status is set to TIMED_OUT. Valid values: 1 to 1440. Default value: 60.
    region_ids list(string)
    List of target region IDs where stack instances will be deployed. You can specify 1 to 20 regions. This parameter cannot be modified after creation. Example: ["cn-beijing", "cn-shanghai"].
    stack_group_name string
    The name of the stack group to which the stack instances belong. This parameter cannot be modified after creation.
    account_ids list(string)
    List of target Alibaba Cloud account IDs for self-managed permissions model. You can specify 1 to 50 accounts. This parameter conflicts with deploymentTargets. This parameter cannot be modified after creation. Example: ["123456789012****", "098765432109****"].
    deployment_options string
    List of deployment options for service-managed permissions. Currently only supports IgnoreExisting, which skips existing stack instances during deployment. This parameter cannot be modified after creation. Example: ["IgnoreExisting"].
    deployment_targets object

    Configuration block defining deployment targets for service-managed permissions model. This parameter conflicts with accountIds. This parameter cannot be modified after creation. See deploymentTargets below.

    NOTE: You must specify either accountIds (for self-managed permissions) or deploymentTargets (for service-managed permissions), but not both.

    disable_rollback bool
    Specifies whether to disable the rollback policy when creating stack instances fails. Valid values: true, false. Default value: false. This parameter cannot be modified after creation.
    operation_description string
    Description of the stack instances operation. The description must be 1 to 256 characters in length.
    operation_preferences object
    Configuration block defining preferences for how the operation is performed across multiple accounts and regions. See operationPreferences below.
    parameter_overrides list(object)
    A set of parameters to override in the stack instances. See parameterOverrides below.
    timeout_in_minutes number
    The amount of time in minutes that can elapse before the stack operation status is set to TIMED_OUT. Valid values: 1 to 1440. Default value: 60.
    regionIds List<String>
    List of target region IDs where stack instances will be deployed. You can specify 1 to 20 regions. This parameter cannot be modified after creation. Example: ["cn-beijing", "cn-shanghai"].
    stackGroupName String
    The name of the stack group to which the stack instances belong. This parameter cannot be modified after creation.
    accountIds List<String>
    List of target Alibaba Cloud account IDs for self-managed permissions model. You can specify 1 to 50 accounts. This parameter conflicts with deploymentTargets. This parameter cannot be modified after creation. Example: ["123456789012****", "098765432109****"].
    deploymentOptions String
    List of deployment options for service-managed permissions. Currently only supports IgnoreExisting, which skips existing stack instances during deployment. This parameter cannot be modified after creation. Example: ["IgnoreExisting"].
    deploymentTargets StackInstancesDeploymentTargets

    Configuration block defining deployment targets for service-managed permissions model. This parameter conflicts with accountIds. This parameter cannot be modified after creation. See deploymentTargets below.

    NOTE: You must specify either accountIds (for self-managed permissions) or deploymentTargets (for service-managed permissions), but not both.

    disableRollback Boolean
    Specifies whether to disable the rollback policy when creating stack instances fails. Valid values: true, false. Default value: false. This parameter cannot be modified after creation.
    operationDescription String
    Description of the stack instances operation. The description must be 1 to 256 characters in length.
    operationPreferences StackInstancesOperationPreferences
    Configuration block defining preferences for how the operation is performed across multiple accounts and regions. See operationPreferences below.
    parameterOverrides List<StackInstancesParameterOverride>
    A set of parameters to override in the stack instances. See parameterOverrides below.
    timeoutInMinutes Integer
    The amount of time in minutes that can elapse before the stack operation status is set to TIMED_OUT. Valid values: 1 to 1440. Default value: 60.
    regionIds string[]
    List of target region IDs where stack instances will be deployed. You can specify 1 to 20 regions. This parameter cannot be modified after creation. Example: ["cn-beijing", "cn-shanghai"].
    stackGroupName string
    The name of the stack group to which the stack instances belong. This parameter cannot be modified after creation.
    accountIds string[]
    List of target Alibaba Cloud account IDs for self-managed permissions model. You can specify 1 to 50 accounts. This parameter conflicts with deploymentTargets. This parameter cannot be modified after creation. Example: ["123456789012****", "098765432109****"].
    deploymentOptions string
    List of deployment options for service-managed permissions. Currently only supports IgnoreExisting, which skips existing stack instances during deployment. This parameter cannot be modified after creation. Example: ["IgnoreExisting"].
    deploymentTargets StackInstancesDeploymentTargets

    Configuration block defining deployment targets for service-managed permissions model. This parameter conflicts with accountIds. This parameter cannot be modified after creation. See deploymentTargets below.

    NOTE: You must specify either accountIds (for self-managed permissions) or deploymentTargets (for service-managed permissions), but not both.

    disableRollback boolean
    Specifies whether to disable the rollback policy when creating stack instances fails. Valid values: true, false. Default value: false. This parameter cannot be modified after creation.
    operationDescription string
    Description of the stack instances operation. The description must be 1 to 256 characters in length.
    operationPreferences StackInstancesOperationPreferences
    Configuration block defining preferences for how the operation is performed across multiple accounts and regions. See operationPreferences below.
    parameterOverrides StackInstancesParameterOverride[]
    A set of parameters to override in the stack instances. See parameterOverrides below.
    timeoutInMinutes number
    The amount of time in minutes that can elapse before the stack operation status is set to TIMED_OUT. Valid values: 1 to 1440. Default value: 60.
    region_ids Sequence[str]
    List of target region IDs where stack instances will be deployed. You can specify 1 to 20 regions. This parameter cannot be modified after creation. Example: ["cn-beijing", "cn-shanghai"].
    stack_group_name str
    The name of the stack group to which the stack instances belong. This parameter cannot be modified after creation.
    account_ids Sequence[str]
    List of target Alibaba Cloud account IDs for self-managed permissions model. You can specify 1 to 50 accounts. This parameter conflicts with deploymentTargets. This parameter cannot be modified after creation. Example: ["123456789012****", "098765432109****"].
    deployment_options str
    List of deployment options for service-managed permissions. Currently only supports IgnoreExisting, which skips existing stack instances during deployment. This parameter cannot be modified after creation. Example: ["IgnoreExisting"].
    deployment_targets StackInstancesDeploymentTargetsArgs

    Configuration block defining deployment targets for service-managed permissions model. This parameter conflicts with accountIds. This parameter cannot be modified after creation. See deploymentTargets below.

    NOTE: You must specify either accountIds (for self-managed permissions) or deploymentTargets (for service-managed permissions), but not both.

    disable_rollback bool
    Specifies whether to disable the rollback policy when creating stack instances fails. Valid values: true, false. Default value: false. This parameter cannot be modified after creation.
    operation_description str
    Description of the stack instances operation. The description must be 1 to 256 characters in length.
    operation_preferences StackInstancesOperationPreferencesArgs
    Configuration block defining preferences for how the operation is performed across multiple accounts and regions. See operationPreferences below.
    parameter_overrides Sequence[StackInstancesParameterOverrideArgs]
    A set of parameters to override in the stack instances. See parameterOverrides below.
    timeout_in_minutes int
    The amount of time in minutes that can elapse before the stack operation status is set to TIMED_OUT. Valid values: 1 to 1440. Default value: 60.
    regionIds List<String>
    List of target region IDs where stack instances will be deployed. You can specify 1 to 20 regions. This parameter cannot be modified after creation. Example: ["cn-beijing", "cn-shanghai"].
    stackGroupName String
    The name of the stack group to which the stack instances belong. This parameter cannot be modified after creation.
    accountIds List<String>
    List of target Alibaba Cloud account IDs for self-managed permissions model. You can specify 1 to 50 accounts. This parameter conflicts with deploymentTargets. This parameter cannot be modified after creation. Example: ["123456789012****", "098765432109****"].
    deploymentOptions String
    List of deployment options for service-managed permissions. Currently only supports IgnoreExisting, which skips existing stack instances during deployment. This parameter cannot be modified after creation. Example: ["IgnoreExisting"].
    deploymentTargets Property Map

    Configuration block defining deployment targets for service-managed permissions model. This parameter conflicts with accountIds. This parameter cannot be modified after creation. See deploymentTargets below.

    NOTE: You must specify either accountIds (for self-managed permissions) or deploymentTargets (for service-managed permissions), but not both.

    disableRollback Boolean
    Specifies whether to disable the rollback policy when creating stack instances fails. Valid values: true, false. Default value: false. This parameter cannot be modified after creation.
    operationDescription String
    Description of the stack instances operation. The description must be 1 to 256 characters in length.
    operationPreferences Property Map
    Configuration block defining preferences for how the operation is performed across multiple accounts and regions. See operationPreferences below.
    parameterOverrides List<Property Map>
    A set of parameters to override in the stack instances. See parameterOverrides below.
    timeoutInMinutes Number
    The amount of time in minutes that can elapse before the stack operation status is set to TIMED_OUT. Valid values: 1 to 1440. Default value: 60.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the StackInstances resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Instances List<Pulumi.AliCloud.Ros.Outputs.StackInstancesStackInstance>
    A list of stack instances with their latest operation tracking information. See stackInstances below.
    Id string
    The provider-assigned unique ID for this managed resource.
    StackInstances []StackInstancesStackInstance
    A list of stack instances with their latest operation tracking information. See stackInstances below.
    id string
    The provider-assigned unique ID for this managed resource.
    stack_instances list(object)
    A list of stack instances with their latest operation tracking information. See stackInstances below.
    id String
    The provider-assigned unique ID for this managed resource.
    stackInstances List<StackInstancesStackInstance>
    A list of stack instances with their latest operation tracking information. See stackInstances below.
    id string
    The provider-assigned unique ID for this managed resource.
    stackInstances StackInstancesStackInstance[]
    A list of stack instances with their latest operation tracking information. See stackInstances below.
    id str
    The provider-assigned unique ID for this managed resource.
    stack_instances Sequence[StackInstancesStackInstance]
    A list of stack instances with their latest operation tracking information. See stackInstances below.
    id String
    The provider-assigned unique ID for this managed resource.
    stackInstances List<Property Map>
    A list of stack instances with their latest operation tracking information. See stackInstances below.

    Look up Existing StackInstances Resource

    Get an existing StackInstances 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?: StackInstancesState, opts?: CustomResourceOptions): StackInstances
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_ids: Optional[Sequence[str]] = None,
            deployment_options: Optional[str] = None,
            deployment_targets: Optional[StackInstancesDeploymentTargetsArgs] = None,
            disable_rollback: Optional[bool] = None,
            operation_description: Optional[str] = None,
            operation_preferences: Optional[StackInstancesOperationPreferencesArgs] = None,
            parameter_overrides: Optional[Sequence[StackInstancesParameterOverrideArgs]] = None,
            region_ids: Optional[Sequence[str]] = None,
            stack_group_name: Optional[str] = None,
            stack_instances: Optional[Sequence[StackInstancesStackInstanceArgs]] = None,
            timeout_in_minutes: Optional[int] = None) -> StackInstances
    func GetStackInstances(ctx *Context, name string, id IDInput, state *StackInstancesState, opts ...ResourceOption) (*StackInstances, error)
    public static StackInstances Get(string name, Input<string> id, StackInstancesState? state, CustomResourceOptions? opts = null)
    public static StackInstances get(String name, Output<String> id, StackInstancesState state, CustomResourceOptions options)
    resources:  _:    type: alicloud:ros:StackInstances    get:      id: ${id}
    import {
      to = alicloud_ros_stackinstances.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.
    The following state arguments are supported:
    AccountIds List<string>
    List of target Alibaba Cloud account IDs for self-managed permissions model. You can specify 1 to 50 accounts. This parameter conflicts with deploymentTargets. This parameter cannot be modified after creation. Example: ["123456789012****", "098765432109****"].
    DeploymentOptions string
    List of deployment options for service-managed permissions. Currently only supports IgnoreExisting, which skips existing stack instances during deployment. This parameter cannot be modified after creation. Example: ["IgnoreExisting"].
    DeploymentTargets Pulumi.AliCloud.Ros.Inputs.StackInstancesDeploymentTargets

    Configuration block defining deployment targets for service-managed permissions model. This parameter conflicts with accountIds. This parameter cannot be modified after creation. See deploymentTargets below.

    NOTE: You must specify either accountIds (for self-managed permissions) or deploymentTargets (for service-managed permissions), but not both.

    DisableRollback bool
    Specifies whether to disable the rollback policy when creating stack instances fails. Valid values: true, false. Default value: false. This parameter cannot be modified after creation.
    Instances List<Pulumi.AliCloud.Ros.Inputs.StackInstancesStackInstance>
    A list of stack instances with their latest operation tracking information. See stackInstances below.
    OperationDescription string
    Description of the stack instances operation. The description must be 1 to 256 characters in length.
    OperationPreferences Pulumi.AliCloud.Ros.Inputs.StackInstancesOperationPreferences
    Configuration block defining preferences for how the operation is performed across multiple accounts and regions. See operationPreferences below.
    ParameterOverrides List<Pulumi.AliCloud.Ros.Inputs.StackInstancesParameterOverride>
    A set of parameters to override in the stack instances. See parameterOverrides below.
    RegionIds List<string>
    List of target region IDs where stack instances will be deployed. You can specify 1 to 20 regions. This parameter cannot be modified after creation. Example: ["cn-beijing", "cn-shanghai"].
    StackGroupName string
    The name of the stack group to which the stack instances belong. This parameter cannot be modified after creation.
    TimeoutInMinutes int
    The amount of time in minutes that can elapse before the stack operation status is set to TIMED_OUT. Valid values: 1 to 1440. Default value: 60.
    AccountIds []string
    List of target Alibaba Cloud account IDs for self-managed permissions model. You can specify 1 to 50 accounts. This parameter conflicts with deploymentTargets. This parameter cannot be modified after creation. Example: ["123456789012****", "098765432109****"].
    DeploymentOptions string
    List of deployment options for service-managed permissions. Currently only supports IgnoreExisting, which skips existing stack instances during deployment. This parameter cannot be modified after creation. Example: ["IgnoreExisting"].
    DeploymentTargets StackInstancesDeploymentTargetsArgs

    Configuration block defining deployment targets for service-managed permissions model. This parameter conflicts with accountIds. This parameter cannot be modified after creation. See deploymentTargets below.

    NOTE: You must specify either accountIds (for self-managed permissions) or deploymentTargets (for service-managed permissions), but not both.

    DisableRollback bool
    Specifies whether to disable the rollback policy when creating stack instances fails. Valid values: true, false. Default value: false. This parameter cannot be modified after creation.
    OperationDescription string
    Description of the stack instances operation. The description must be 1 to 256 characters in length.
    OperationPreferences StackInstancesOperationPreferencesArgs
    Configuration block defining preferences for how the operation is performed across multiple accounts and regions. See operationPreferences below.
    ParameterOverrides []StackInstancesParameterOverrideArgs
    A set of parameters to override in the stack instances. See parameterOverrides below.
    RegionIds []string
    List of target region IDs where stack instances will be deployed. You can specify 1 to 20 regions. This parameter cannot be modified after creation. Example: ["cn-beijing", "cn-shanghai"].
    StackGroupName string
    The name of the stack group to which the stack instances belong. This parameter cannot be modified after creation.
    StackInstances []StackInstancesStackInstanceArgs
    A list of stack instances with their latest operation tracking information. See stackInstances below.
    TimeoutInMinutes int
    The amount of time in minutes that can elapse before the stack operation status is set to TIMED_OUT. Valid values: 1 to 1440. Default value: 60.
    account_ids list(string)
    List of target Alibaba Cloud account IDs for self-managed permissions model. You can specify 1 to 50 accounts. This parameter conflicts with deploymentTargets. This parameter cannot be modified after creation. Example: ["123456789012****", "098765432109****"].
    deployment_options string
    List of deployment options for service-managed permissions. Currently only supports IgnoreExisting, which skips existing stack instances during deployment. This parameter cannot be modified after creation. Example: ["IgnoreExisting"].
    deployment_targets object

    Configuration block defining deployment targets for service-managed permissions model. This parameter conflicts with accountIds. This parameter cannot be modified after creation. See deploymentTargets below.

    NOTE: You must specify either accountIds (for self-managed permissions) or deploymentTargets (for service-managed permissions), but not both.

    disable_rollback bool
    Specifies whether to disable the rollback policy when creating stack instances fails. Valid values: true, false. Default value: false. This parameter cannot be modified after creation.
    operation_description string
    Description of the stack instances operation. The description must be 1 to 256 characters in length.
    operation_preferences object
    Configuration block defining preferences for how the operation is performed across multiple accounts and regions. See operationPreferences below.
    parameter_overrides list(object)
    A set of parameters to override in the stack instances. See parameterOverrides below.
    region_ids list(string)
    List of target region IDs where stack instances will be deployed. You can specify 1 to 20 regions. This parameter cannot be modified after creation. Example: ["cn-beijing", "cn-shanghai"].
    stack_group_name string
    The name of the stack group to which the stack instances belong. This parameter cannot be modified after creation.
    stack_instances list(object)
    A list of stack instances with their latest operation tracking information. See stackInstances below.
    timeout_in_minutes number
    The amount of time in minutes that can elapse before the stack operation status is set to TIMED_OUT. Valid values: 1 to 1440. Default value: 60.
    accountIds List<String>
    List of target Alibaba Cloud account IDs for self-managed permissions model. You can specify 1 to 50 accounts. This parameter conflicts with deploymentTargets. This parameter cannot be modified after creation. Example: ["123456789012****", "098765432109****"].
    deploymentOptions String
    List of deployment options for service-managed permissions. Currently only supports IgnoreExisting, which skips existing stack instances during deployment. This parameter cannot be modified after creation. Example: ["IgnoreExisting"].
    deploymentTargets StackInstancesDeploymentTargets

    Configuration block defining deployment targets for service-managed permissions model. This parameter conflicts with accountIds. This parameter cannot be modified after creation. See deploymentTargets below.

    NOTE: You must specify either accountIds (for self-managed permissions) or deploymentTargets (for service-managed permissions), but not both.

    disableRollback Boolean
    Specifies whether to disable the rollback policy when creating stack instances fails. Valid values: true, false. Default value: false. This parameter cannot be modified after creation.
    operationDescription String
    Description of the stack instances operation. The description must be 1 to 256 characters in length.
    operationPreferences StackInstancesOperationPreferences
    Configuration block defining preferences for how the operation is performed across multiple accounts and regions. See operationPreferences below.
    parameterOverrides List<StackInstancesParameterOverride>
    A set of parameters to override in the stack instances. See parameterOverrides below.
    regionIds List<String>
    List of target region IDs where stack instances will be deployed. You can specify 1 to 20 regions. This parameter cannot be modified after creation. Example: ["cn-beijing", "cn-shanghai"].
    stackGroupName String
    The name of the stack group to which the stack instances belong. This parameter cannot be modified after creation.
    stackInstances List<StackInstancesStackInstance>
    A list of stack instances with their latest operation tracking information. See stackInstances below.
    timeoutInMinutes Integer
    The amount of time in minutes that can elapse before the stack operation status is set to TIMED_OUT. Valid values: 1 to 1440. Default value: 60.
    accountIds string[]
    List of target Alibaba Cloud account IDs for self-managed permissions model. You can specify 1 to 50 accounts. This parameter conflicts with deploymentTargets. This parameter cannot be modified after creation. Example: ["123456789012****", "098765432109****"].
    deploymentOptions string
    List of deployment options for service-managed permissions. Currently only supports IgnoreExisting, which skips existing stack instances during deployment. This parameter cannot be modified after creation. Example: ["IgnoreExisting"].
    deploymentTargets StackInstancesDeploymentTargets

    Configuration block defining deployment targets for service-managed permissions model. This parameter conflicts with accountIds. This parameter cannot be modified after creation. See deploymentTargets below.

    NOTE: You must specify either accountIds (for self-managed permissions) or deploymentTargets (for service-managed permissions), but not both.

    disableRollback boolean
    Specifies whether to disable the rollback policy when creating stack instances fails. Valid values: true, false. Default value: false. This parameter cannot be modified after creation.
    operationDescription string
    Description of the stack instances operation. The description must be 1 to 256 characters in length.
    operationPreferences StackInstancesOperationPreferences
    Configuration block defining preferences for how the operation is performed across multiple accounts and regions. See operationPreferences below.
    parameterOverrides StackInstancesParameterOverride[]
    A set of parameters to override in the stack instances. See parameterOverrides below.
    regionIds string[]
    List of target region IDs where stack instances will be deployed. You can specify 1 to 20 regions. This parameter cannot be modified after creation. Example: ["cn-beijing", "cn-shanghai"].
    stackGroupName string
    The name of the stack group to which the stack instances belong. This parameter cannot be modified after creation.
    stackInstances StackInstancesStackInstance[]
    A list of stack instances with their latest operation tracking information. See stackInstances below.
    timeoutInMinutes number
    The amount of time in minutes that can elapse before the stack operation status is set to TIMED_OUT. Valid values: 1 to 1440. Default value: 60.
    account_ids Sequence[str]
    List of target Alibaba Cloud account IDs for self-managed permissions model. You can specify 1 to 50 accounts. This parameter conflicts with deploymentTargets. This parameter cannot be modified after creation. Example: ["123456789012****", "098765432109****"].
    deployment_options str
    List of deployment options for service-managed permissions. Currently only supports IgnoreExisting, which skips existing stack instances during deployment. This parameter cannot be modified after creation. Example: ["IgnoreExisting"].
    deployment_targets StackInstancesDeploymentTargetsArgs

    Configuration block defining deployment targets for service-managed permissions model. This parameter conflicts with accountIds. This parameter cannot be modified after creation. See deploymentTargets below.

    NOTE: You must specify either accountIds (for self-managed permissions) or deploymentTargets (for service-managed permissions), but not both.

    disable_rollback bool
    Specifies whether to disable the rollback policy when creating stack instances fails. Valid values: true, false. Default value: false. This parameter cannot be modified after creation.
    operation_description str
    Description of the stack instances operation. The description must be 1 to 256 characters in length.
    operation_preferences StackInstancesOperationPreferencesArgs
    Configuration block defining preferences for how the operation is performed across multiple accounts and regions. See operationPreferences below.
    parameter_overrides Sequence[StackInstancesParameterOverrideArgs]
    A set of parameters to override in the stack instances. See parameterOverrides below.
    region_ids Sequence[str]
    List of target region IDs where stack instances will be deployed. You can specify 1 to 20 regions. This parameter cannot be modified after creation. Example: ["cn-beijing", "cn-shanghai"].
    stack_group_name str
    The name of the stack group to which the stack instances belong. This parameter cannot be modified after creation.
    stack_instances Sequence[StackInstancesStackInstanceArgs]
    A list of stack instances with their latest operation tracking information. See stackInstances below.
    timeout_in_minutes int
    The amount of time in minutes that can elapse before the stack operation status is set to TIMED_OUT. Valid values: 1 to 1440. Default value: 60.
    accountIds List<String>
    List of target Alibaba Cloud account IDs for self-managed permissions model. You can specify 1 to 50 accounts. This parameter conflicts with deploymentTargets. This parameter cannot be modified after creation. Example: ["123456789012****", "098765432109****"].
    deploymentOptions String
    List of deployment options for service-managed permissions. Currently only supports IgnoreExisting, which skips existing stack instances during deployment. This parameter cannot be modified after creation. Example: ["IgnoreExisting"].
    deploymentTargets Property Map

    Configuration block defining deployment targets for service-managed permissions model. This parameter conflicts with accountIds. This parameter cannot be modified after creation. See deploymentTargets below.

    NOTE: You must specify either accountIds (for self-managed permissions) or deploymentTargets (for service-managed permissions), but not both.

    disableRollback Boolean
    Specifies whether to disable the rollback policy when creating stack instances fails. Valid values: true, false. Default value: false. This parameter cannot be modified after creation.
    operationDescription String
    Description of the stack instances operation. The description must be 1 to 256 characters in length.
    operationPreferences Property Map
    Configuration block defining preferences for how the operation is performed across multiple accounts and regions. See operationPreferences below.
    parameterOverrides List<Property Map>
    A set of parameters to override in the stack instances. See parameterOverrides below.
    regionIds List<String>
    List of target region IDs where stack instances will be deployed. You can specify 1 to 20 regions. This parameter cannot be modified after creation. Example: ["cn-beijing", "cn-shanghai"].
    stackGroupName String
    The name of the stack group to which the stack instances belong. This parameter cannot be modified after creation.
    stackInstances List<Property Map>
    A list of stack instances with their latest operation tracking information. See stackInstances below.
    timeoutInMinutes Number
    The amount of time in minutes that can elapse before the stack operation status is set to TIMED_OUT. Valid values: 1 to 1440. Default value: 60.

    Supporting Types

    StackInstancesDeploymentTargets, StackInstancesDeploymentTargetsArgs

    AccountIds List<string>
    List of Alibaba Cloud account IDs for service-managed permissions. Maximum 50 accounts.
    RdFolderIds List<string>
    List of Resource Directory folder IDs. Maximum 20 folders.
    AccountIds []string
    List of Alibaba Cloud account IDs for service-managed permissions. Maximum 50 accounts.
    RdFolderIds []string
    List of Resource Directory folder IDs. Maximum 20 folders.
    account_ids list(string)
    List of Alibaba Cloud account IDs for service-managed permissions. Maximum 50 accounts.
    rd_folder_ids list(string)
    List of Resource Directory folder IDs. Maximum 20 folders.
    accountIds List<String>
    List of Alibaba Cloud account IDs for service-managed permissions. Maximum 50 accounts.
    rdFolderIds List<String>
    List of Resource Directory folder IDs. Maximum 20 folders.
    accountIds string[]
    List of Alibaba Cloud account IDs for service-managed permissions. Maximum 50 accounts.
    rdFolderIds string[]
    List of Resource Directory folder IDs. Maximum 20 folders.
    account_ids Sequence[str]
    List of Alibaba Cloud account IDs for service-managed permissions. Maximum 50 accounts.
    rd_folder_ids Sequence[str]
    List of Resource Directory folder IDs. Maximum 20 folders.
    accountIds List<String>
    List of Alibaba Cloud account IDs for service-managed permissions. Maximum 50 accounts.
    rdFolderIds List<String>
    List of Resource Directory folder IDs. Maximum 20 folders.

    StackInstancesOperationPreferences, StackInstancesOperationPreferencesArgs

    FailureToleranceCount int
    Number of failures tolerated per region. Valid values: 0 to 20. Conflicts with failureTolerancePercentage.
    FailureTolerancePercentage int
    Percentage of failures tolerated per region. Valid values: 0 to 100. Conflicts with failureToleranceCount.
    MaxConcurrentCount int
    Maximum number of concurrent operations per region. Valid values: 1 to 20. Conflicts with maxConcurrentPercentage.
    MaxConcurrentPercentage int
    Maximum percentage of concurrent targets per region. Valid values: 1 to 100. Conflicts with maxConcurrentCount.
    RegionConcurrencyType string
    Concurrency type for regions. Valid values: SEQUENTIAL, PARALLEL.
    FailureToleranceCount int
    Number of failures tolerated per region. Valid values: 0 to 20. Conflicts with failureTolerancePercentage.
    FailureTolerancePercentage int
    Percentage of failures tolerated per region. Valid values: 0 to 100. Conflicts with failureToleranceCount.
    MaxConcurrentCount int
    Maximum number of concurrent operations per region. Valid values: 1 to 20. Conflicts with maxConcurrentPercentage.
    MaxConcurrentPercentage int
    Maximum percentage of concurrent targets per region. Valid values: 1 to 100. Conflicts with maxConcurrentCount.
    RegionConcurrencyType string
    Concurrency type for regions. Valid values: SEQUENTIAL, PARALLEL.
    failure_tolerance_count number
    Number of failures tolerated per region. Valid values: 0 to 20. Conflicts with failureTolerancePercentage.
    failure_tolerance_percentage number
    Percentage of failures tolerated per region. Valid values: 0 to 100. Conflicts with failureToleranceCount.
    max_concurrent_count number
    Maximum number of concurrent operations per region. Valid values: 1 to 20. Conflicts with maxConcurrentPercentage.
    max_concurrent_percentage number
    Maximum percentage of concurrent targets per region. Valid values: 1 to 100. Conflicts with maxConcurrentCount.
    region_concurrency_type string
    Concurrency type for regions. Valid values: SEQUENTIAL, PARALLEL.
    failureToleranceCount Integer
    Number of failures tolerated per region. Valid values: 0 to 20. Conflicts with failureTolerancePercentage.
    failureTolerancePercentage Integer
    Percentage of failures tolerated per region. Valid values: 0 to 100. Conflicts with failureToleranceCount.
    maxConcurrentCount Integer
    Maximum number of concurrent operations per region. Valid values: 1 to 20. Conflicts with maxConcurrentPercentage.
    maxConcurrentPercentage Integer
    Maximum percentage of concurrent targets per region. Valid values: 1 to 100. Conflicts with maxConcurrentCount.
    regionConcurrencyType String
    Concurrency type for regions. Valid values: SEQUENTIAL, PARALLEL.
    failureToleranceCount number
    Number of failures tolerated per region. Valid values: 0 to 20. Conflicts with failureTolerancePercentage.
    failureTolerancePercentage number
    Percentage of failures tolerated per region. Valid values: 0 to 100. Conflicts with failureToleranceCount.
    maxConcurrentCount number
    Maximum number of concurrent operations per region. Valid values: 1 to 20. Conflicts with maxConcurrentPercentage.
    maxConcurrentPercentage number
    Maximum percentage of concurrent targets per region. Valid values: 1 to 100. Conflicts with maxConcurrentCount.
    regionConcurrencyType string
    Concurrency type for regions. Valid values: SEQUENTIAL, PARALLEL.
    failure_tolerance_count int
    Number of failures tolerated per region. Valid values: 0 to 20. Conflicts with failureTolerancePercentage.
    failure_tolerance_percentage int
    Percentage of failures tolerated per region. Valid values: 0 to 100. Conflicts with failureToleranceCount.
    max_concurrent_count int
    Maximum number of concurrent operations per region. Valid values: 1 to 20. Conflicts with maxConcurrentPercentage.
    max_concurrent_percentage int
    Maximum percentage of concurrent targets per region. Valid values: 1 to 100. Conflicts with maxConcurrentCount.
    region_concurrency_type str
    Concurrency type for regions. Valid values: SEQUENTIAL, PARALLEL.
    failureToleranceCount Number
    Number of failures tolerated per region. Valid values: 0 to 20. Conflicts with failureTolerancePercentage.
    failureTolerancePercentage Number
    Percentage of failures tolerated per region. Valid values: 0 to 100. Conflicts with failureToleranceCount.
    maxConcurrentCount Number
    Maximum number of concurrent operations per region. Valid values: 1 to 20. Conflicts with maxConcurrentPercentage.
    maxConcurrentPercentage Number
    Maximum percentage of concurrent targets per region. Valid values: 1 to 100. Conflicts with maxConcurrentCount.
    regionConcurrencyType String
    Concurrency type for regions. Valid values: SEQUENTIAL, PARALLEL.

    StackInstancesParameterOverride, StackInstancesParameterOverrideArgs

    ParameterKey string
    The key of the parameter to override.
    ParameterValue string
    The value of the parameter to override. This field is sensitive and will be masked in logs.
    ParameterKey string
    The key of the parameter to override.
    ParameterValue string
    The value of the parameter to override. This field is sensitive and will be masked in logs.
    parameter_key string
    The key of the parameter to override.
    parameter_value string
    The value of the parameter to override. This field is sensitive and will be masked in logs.
    parameterKey String
    The key of the parameter to override.
    parameterValue String
    The value of the parameter to override. This field is sensitive and will be masked in logs.
    parameterKey string
    The key of the parameter to override.
    parameterValue string
    The value of the parameter to override. This field is sensitive and will be masked in logs.
    parameter_key str
    The key of the parameter to override.
    parameter_value str
    The value of the parameter to override. This field is sensitive and will be masked in logs.
    parameterKey String
    The key of the parameter to override.
    parameterValue String
    The value of the parameter to override. This field is sensitive and will be masked in logs.

    StackInstancesStackInstance, StackInstancesStackInstanceArgs

    AccountId string
    The Alibaba Cloud account ID where the stack instance is deployed.
    DriftDetectionTime string
    The timestamp when drift detection was last performed.
    LastOperationId string
    The ID of the last operation performed on this stack instance.
    RdFolderId string
    The Resource Directory folder ID (if applicable).
    RegionId string
    The region ID where the stack instance is deployed.
    StackDriftStatus string
    The drift status of the stack. Valid values: NOT_CHECKED, IN_SYNC, DRIFTED, CHECK_FAILED, etc.
    StackGroupId string
    The ID of the stack group to which this instance belongs.
    StackGroupName string
    The name of the stack group to which the stack instances belong. This parameter cannot be modified after creation.
    StackId string
    The ID of the underlying stack.
    Status string
    The status of the stack instance. Valid values: CURRENT, OUTDATED, INOPERABLE, RUNNING, FAILED, SUCCEEDED, etc.
    StatusReason string
    The reason for the current status of the stack instance.
    AccountId string
    The Alibaba Cloud account ID where the stack instance is deployed.
    DriftDetectionTime string
    The timestamp when drift detection was last performed.
    LastOperationId string
    The ID of the last operation performed on this stack instance.
    RdFolderId string
    The Resource Directory folder ID (if applicable).
    RegionId string
    The region ID where the stack instance is deployed.
    StackDriftStatus string
    The drift status of the stack. Valid values: NOT_CHECKED, IN_SYNC, DRIFTED, CHECK_FAILED, etc.
    StackGroupId string
    The ID of the stack group to which this instance belongs.
    StackGroupName string
    The name of the stack group to which the stack instances belong. This parameter cannot be modified after creation.
    StackId string
    The ID of the underlying stack.
    Status string
    The status of the stack instance. Valid values: CURRENT, OUTDATED, INOPERABLE, RUNNING, FAILED, SUCCEEDED, etc.
    StatusReason string
    The reason for the current status of the stack instance.
    account_id string
    The Alibaba Cloud account ID where the stack instance is deployed.
    drift_detection_time string
    The timestamp when drift detection was last performed.
    last_operation_id string
    The ID of the last operation performed on this stack instance.
    rd_folder_id string
    The Resource Directory folder ID (if applicable).
    region_id string
    The region ID where the stack instance is deployed.
    stack_drift_status string
    The drift status of the stack. Valid values: NOT_CHECKED, IN_SYNC, DRIFTED, CHECK_FAILED, etc.
    stack_group_id string
    The ID of the stack group to which this instance belongs.
    stack_group_name string
    The name of the stack group to which the stack instances belong. This parameter cannot be modified after creation.
    stack_id string
    The ID of the underlying stack.
    status string
    The status of the stack instance. Valid values: CURRENT, OUTDATED, INOPERABLE, RUNNING, FAILED, SUCCEEDED, etc.
    status_reason string
    The reason for the current status of the stack instance.
    accountId String
    The Alibaba Cloud account ID where the stack instance is deployed.
    driftDetectionTime String
    The timestamp when drift detection was last performed.
    lastOperationId String
    The ID of the last operation performed on this stack instance.
    rdFolderId String
    The Resource Directory folder ID (if applicable).
    regionId String
    The region ID where the stack instance is deployed.
    stackDriftStatus String
    The drift status of the stack. Valid values: NOT_CHECKED, IN_SYNC, DRIFTED, CHECK_FAILED, etc.
    stackGroupId String
    The ID of the stack group to which this instance belongs.
    stackGroupName String
    The name of the stack group to which the stack instances belong. This parameter cannot be modified after creation.
    stackId String
    The ID of the underlying stack.
    status String
    The status of the stack instance. Valid values: CURRENT, OUTDATED, INOPERABLE, RUNNING, FAILED, SUCCEEDED, etc.
    statusReason String
    The reason for the current status of the stack instance.
    accountId string
    The Alibaba Cloud account ID where the stack instance is deployed.
    driftDetectionTime string
    The timestamp when drift detection was last performed.
    lastOperationId string
    The ID of the last operation performed on this stack instance.
    rdFolderId string
    The Resource Directory folder ID (if applicable).
    regionId string
    The region ID where the stack instance is deployed.
    stackDriftStatus string
    The drift status of the stack. Valid values: NOT_CHECKED, IN_SYNC, DRIFTED, CHECK_FAILED, etc.
    stackGroupId string
    The ID of the stack group to which this instance belongs.
    stackGroupName string
    The name of the stack group to which the stack instances belong. This parameter cannot be modified after creation.
    stackId string
    The ID of the underlying stack.
    status string
    The status of the stack instance. Valid values: CURRENT, OUTDATED, INOPERABLE, RUNNING, FAILED, SUCCEEDED, etc.
    statusReason string
    The reason for the current status of the stack instance.
    account_id str
    The Alibaba Cloud account ID where the stack instance is deployed.
    drift_detection_time str
    The timestamp when drift detection was last performed.
    last_operation_id str
    The ID of the last operation performed on this stack instance.
    rd_folder_id str
    The Resource Directory folder ID (if applicable).
    region_id str
    The region ID where the stack instance is deployed.
    stack_drift_status str
    The drift status of the stack. Valid values: NOT_CHECKED, IN_SYNC, DRIFTED, CHECK_FAILED, etc.
    stack_group_id str
    The ID of the stack group to which this instance belongs.
    stack_group_name str
    The name of the stack group to which the stack instances belong. This parameter cannot be modified after creation.
    stack_id str
    The ID of the underlying stack.
    status str
    The status of the stack instance. Valid values: CURRENT, OUTDATED, INOPERABLE, RUNNING, FAILED, SUCCEEDED, etc.
    status_reason str
    The reason for the current status of the stack instance.
    accountId String
    The Alibaba Cloud account ID where the stack instance is deployed.
    driftDetectionTime String
    The timestamp when drift detection was last performed.
    lastOperationId String
    The ID of the last operation performed on this stack instance.
    rdFolderId String
    The Resource Directory folder ID (if applicable).
    regionId String
    The region ID where the stack instance is deployed.
    stackDriftStatus String
    The drift status of the stack. Valid values: NOT_CHECKED, IN_SYNC, DRIFTED, CHECK_FAILED, etc.
    stackGroupId String
    The ID of the stack group to which this instance belongs.
    stackGroupName String
    The name of the stack group to which the stack instances belong. This parameter cannot be modified after creation.
    stackId String
    The ID of the underlying stack.
    status String
    The status of the stack instance. Valid values: CURRENT, OUTDATED, INOPERABLE, RUNNING, FAILED, SUCCEEDED, etc.
    statusReason String
    The reason for the current status of the stack instance.

    Import

    ant Notes

    1. Asynchronous Operations: Stack instance operations (create, update, delete) are asynchronous batch operations. The provider waits for the operation to complete, but partial failures may occur where some instances succeed while others fail.

    2. No Automatic Rollback: If some stack instances fail to create, successful instances are NOT automatically rolled back. You need to manually handle failed instances or retry the operation.

    3. Operation Conflicts: Only one stack group operation can run at a time. If you attempt to perform another operation while one is in progress, you will receive a StackGroupOperationInProgress error. The provider will automatically retry in this case.

    4. State Management: If the create operation encounters partial failures, the resource ID will NOT be set in Terraform state. This allows Terraform to retry the entire operation on the next apply. This is intentional to prevent orphaned resources.

    5. Parameter Sensitivity: The parameterValue field in parameterOverrides is marked as sensitive. Values will be masked in Terraform output and logs for security.

    6. ForceNew Parameters: Most parameters (stackGroupName, regionIds, accountIds, deploymentTargets, disableRollback, deploymentOptions) require resource recreation if modified. Only parameterOverrides, operationPreferences, timeoutInMinutes, and operationDescription support in-place updates.

    7. Empty Results: If your deployment targets result in no stack instances being created (e.g., targeting an empty folder), the stackInstances attribute will be an empty list. This is expected behavior and does not indicate an error.

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Viewing docs for Alibaba Cloud v3.104.0
    published on Thursday, Jun 25, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial