1. Packages
  2. Snowflake Provider
  3. API Docs
  4. ManagedAccount
Viewing docs for Snowflake v2.13.0
published on Thursday, Feb 26, 2026 by Pulumi
snowflake logo
Viewing docs for Snowflake v2.13.0
published on Thursday, Feb 26, 2026 by Pulumi

    !> Caution: Preview Feature This feature is considered a preview feature in the provider, regardless of the state of the resource in Snowflake. We do not guarantee its stability. It will be reworked and marked as a stable feature in future releases. Breaking changes are expected, even without bumping the major version. To use this feature, add the relevant feature name to preview_features_enabled field in the provider configuration. Please always refer to the Getting Help section in our Github repo to best determine how to get help for your questions.

    Example Usage

    Note Instead of using fully_qualified_name, you can reference objects managed outside Terraform by constructing a correct ID, consult identifiers guide.

    import * as pulumi from "@pulumi/pulumi";
    import * as snowflake from "@pulumi/snowflake";
    
    const config = new pulumi.Config();
    const adminPassword = config.require("adminPassword");
    const account = new snowflake.ManagedAccount("account", {
        name: "managed account",
        adminName: "admin",
        adminPassword: adminPassword,
        type: "READER",
        comment: "A managed account.",
        cloud: "aws",
        region: "us-west-2",
        locator: "managed-account",
    });
    
    import pulumi
    import pulumi_snowflake as snowflake
    
    config = pulumi.Config()
    admin_password = config.require("adminPassword")
    account = snowflake.ManagedAccount("account",
        name="managed account",
        admin_name="admin",
        admin_password=admin_password,
        type="READER",
        comment="A managed account.",
        cloud="aws",
        region="us-west-2",
        locator="managed-account")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-snowflake/sdk/v2/go/snowflake"
    	"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, "")
    		adminPassword := cfg.Require("adminPassword")
    		_, err := snowflake.NewManagedAccount(ctx, "account", &snowflake.ManagedAccountArgs{
    			Name:          pulumi.String("managed account"),
    			AdminName:     pulumi.String("admin"),
    			AdminPassword: pulumi.String(adminPassword),
    			Type:          pulumi.String("READER"),
    			Comment:       pulumi.String("A managed account."),
    			Cloud:         "aws",
    			Region:        "us-west-2",
    			Locator:       "managed-account",
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Snowflake = Pulumi.Snowflake;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var adminPassword = config.Require("adminPassword");
        var account = new Snowflake.ManagedAccount("account", new()
        {
            Name = "managed account",
            AdminName = "admin",
            AdminPassword = adminPassword,
            Type = "READER",
            Comment = "A managed account.",
            Cloud = "aws",
            Region = "us-west-2",
            Locator = "managed-account",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.snowflake.ManagedAccount;
    import com.pulumi.snowflake.ManagedAccountArgs;
    import java.util.List;
    import java.util.ArrayList;
    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 adminPassword = config.get("adminPassword");
            var account = new ManagedAccount("account", ManagedAccountArgs.builder()
                .name("managed account")
                .adminName("admin")
                .adminPassword(adminPassword)
                .type("READER")
                .comment("A managed account.")
                .cloud("aws")
                .region("us-west-2")
                .locator("managed-account")
                .build());
    
        }
    }
    
    configuration:
      adminPassword:
        type: string
    resources:
      account:
        type: snowflake:ManagedAccount
        properties:
          name: managed account
          adminName: admin
          adminPassword: ${adminPassword}
          type: READER
          comment: A managed account.
          cloud: aws
          region: us-west-2
          locator: managed-account
    

    Note If a field has a default value, it is shown next to the type in the schema.

    Create ManagedAccount Resource

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

    Constructor syntax

    new ManagedAccount(name: string, args: ManagedAccountArgs, opts?: CustomResourceOptions);
    @overload
    def ManagedAccount(resource_name: str,
                       args: ManagedAccountArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def ManagedAccount(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       admin_name: Optional[str] = None,
                       admin_password: Optional[str] = None,
                       comment: Optional[str] = None,
                       name: Optional[str] = None,
                       type: Optional[str] = None)
    func NewManagedAccount(ctx *Context, name string, args ManagedAccountArgs, opts ...ResourceOption) (*ManagedAccount, error)
    public ManagedAccount(string name, ManagedAccountArgs args, CustomResourceOptions? opts = null)
    public ManagedAccount(String name, ManagedAccountArgs args)
    public ManagedAccount(String name, ManagedAccountArgs args, CustomResourceOptions options)
    
    type: snowflake:ManagedAccount
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ManagedAccountArgs
    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 ManagedAccountArgs
    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 ManagedAccountArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ManagedAccountArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ManagedAccountArgs
    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 managedAccountResource = new Snowflake.ManagedAccount("managedAccountResource", new()
    {
        AdminName = "string",
        AdminPassword = "string",
        Comment = "string",
        Name = "string",
        Type = "string",
    });
    
    example, err := snowflake.NewManagedAccount(ctx, "managedAccountResource", &snowflake.ManagedAccountArgs{
    	AdminName:     pulumi.String("string"),
    	AdminPassword: pulumi.String("string"),
    	Comment:       pulumi.String("string"),
    	Name:          pulumi.String("string"),
    	Type:          pulumi.String("string"),
    })
    
    var managedAccountResource = new ManagedAccount("managedAccountResource", ManagedAccountArgs.builder()
        .adminName("string")
        .adminPassword("string")
        .comment("string")
        .name("string")
        .type("string")
        .build());
    
    managed_account_resource = snowflake.ManagedAccount("managedAccountResource",
        admin_name="string",
        admin_password="string",
        comment="string",
        name="string",
        type="string")
    
    const managedAccountResource = new snowflake.ManagedAccount("managedAccountResource", {
        adminName: "string",
        adminPassword: "string",
        comment: "string",
        name: "string",
        type: "string",
    });
    
    type: snowflake:ManagedAccount
    properties:
        adminName: string
        adminPassword: string
        comment: string
        name: string
        type: string
    

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

    AdminName string
    Identifier, as well as login name, for the initial user in the managed account. This user serves as the account administrator for the account.
    AdminPassword string
    Password for the initial user in the managed account. Check Snowflake-provided password policy.
    Comment string
    Specifies a comment for the managed account.
    Name string
    Identifier for the managed account; must be unique for your account.
    Type string
    (Default: READER) Specifies the type of managed account.
    AdminName string
    Identifier, as well as login name, for the initial user in the managed account. This user serves as the account administrator for the account.
    AdminPassword string
    Password for the initial user in the managed account. Check Snowflake-provided password policy.
    Comment string
    Specifies a comment for the managed account.
    Name string
    Identifier for the managed account; must be unique for your account.
    Type string
    (Default: READER) Specifies the type of managed account.
    adminName String
    Identifier, as well as login name, for the initial user in the managed account. This user serves as the account administrator for the account.
    adminPassword String
    Password for the initial user in the managed account. Check Snowflake-provided password policy.
    comment String
    Specifies a comment for the managed account.
    name String
    Identifier for the managed account; must be unique for your account.
    type String
    (Default: READER) Specifies the type of managed account.
    adminName string
    Identifier, as well as login name, for the initial user in the managed account. This user serves as the account administrator for the account.
    adminPassword string
    Password for the initial user in the managed account. Check Snowflake-provided password policy.
    comment string
    Specifies a comment for the managed account.
    name string
    Identifier for the managed account; must be unique for your account.
    type string
    (Default: READER) Specifies the type of managed account.
    admin_name str
    Identifier, as well as login name, for the initial user in the managed account. This user serves as the account administrator for the account.
    admin_password str
    Password for the initial user in the managed account. Check Snowflake-provided password policy.
    comment str
    Specifies a comment for the managed account.
    name str
    Identifier for the managed account; must be unique for your account.
    type str
    (Default: READER) Specifies the type of managed account.
    adminName String
    Identifier, as well as login name, for the initial user in the managed account. This user serves as the account administrator for the account.
    adminPassword String
    Password for the initial user in the managed account. Check Snowflake-provided password policy.
    comment String
    Specifies a comment for the managed account.
    name String
    Identifier for the managed account; must be unique for your account.
    type String
    (Default: READER) Specifies the type of managed account.

    Outputs

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

    Cloud string
    Cloud in which the managed account is located.
    CreatedOn string
    Date and time when the managed account was created.
    FullyQualifiedName string
    Fully qualified name of the resource. For more information, see object name resolution.
    Id string
    The provider-assigned unique ID for this managed resource.
    Locator string
    Display name of the managed account.
    Region string
    Snowflake Region in which the managed account is located.
    Url string
    URL for accessing the managed account, particularly through the web interface.
    Cloud string
    Cloud in which the managed account is located.
    CreatedOn string
    Date and time when the managed account was created.
    FullyQualifiedName string
    Fully qualified name of the resource. For more information, see object name resolution.
    Id string
    The provider-assigned unique ID for this managed resource.
    Locator string
    Display name of the managed account.
    Region string
    Snowflake Region in which the managed account is located.
    Url string
    URL for accessing the managed account, particularly through the web interface.
    cloud String
    Cloud in which the managed account is located.
    createdOn String
    Date and time when the managed account was created.
    fullyQualifiedName String
    Fully qualified name of the resource. For more information, see object name resolution.
    id String
    The provider-assigned unique ID for this managed resource.
    locator String
    Display name of the managed account.
    region String
    Snowflake Region in which the managed account is located.
    url String
    URL for accessing the managed account, particularly through the web interface.
    cloud string
    Cloud in which the managed account is located.
    createdOn string
    Date and time when the managed account was created.
    fullyQualifiedName string
    Fully qualified name of the resource. For more information, see object name resolution.
    id string
    The provider-assigned unique ID for this managed resource.
    locator string
    Display name of the managed account.
    region string
    Snowflake Region in which the managed account is located.
    url string
    URL for accessing the managed account, particularly through the web interface.
    cloud str
    Cloud in which the managed account is located.
    created_on str
    Date and time when the managed account was created.
    fully_qualified_name str
    Fully qualified name of the resource. For more information, see object name resolution.
    id str
    The provider-assigned unique ID for this managed resource.
    locator str
    Display name of the managed account.
    region str
    Snowflake Region in which the managed account is located.
    url str
    URL for accessing the managed account, particularly through the web interface.
    cloud String
    Cloud in which the managed account is located.
    createdOn String
    Date and time when the managed account was created.
    fullyQualifiedName String
    Fully qualified name of the resource. For more information, see object name resolution.
    id String
    The provider-assigned unique ID for this managed resource.
    locator String
    Display name of the managed account.
    region String
    Snowflake Region in which the managed account is located.
    url String
    URL for accessing the managed account, particularly through the web interface.

    Look up Existing ManagedAccount Resource

    Get an existing ManagedAccount 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?: ManagedAccountState, opts?: CustomResourceOptions): ManagedAccount
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            admin_name: Optional[str] = None,
            admin_password: Optional[str] = None,
            cloud: Optional[str] = None,
            comment: Optional[str] = None,
            created_on: Optional[str] = None,
            fully_qualified_name: Optional[str] = None,
            locator: Optional[str] = None,
            name: Optional[str] = None,
            region: Optional[str] = None,
            type: Optional[str] = None,
            url: Optional[str] = None) -> ManagedAccount
    func GetManagedAccount(ctx *Context, name string, id IDInput, state *ManagedAccountState, opts ...ResourceOption) (*ManagedAccount, error)
    public static ManagedAccount Get(string name, Input<string> id, ManagedAccountState? state, CustomResourceOptions? opts = null)
    public static ManagedAccount get(String name, Output<String> id, ManagedAccountState state, CustomResourceOptions options)
    resources:  _:    type: snowflake:ManagedAccount    get:      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:
    AdminName string
    Identifier, as well as login name, for the initial user in the managed account. This user serves as the account administrator for the account.
    AdminPassword string
    Password for the initial user in the managed account. Check Snowflake-provided password policy.
    Cloud string
    Cloud in which the managed account is located.
    Comment string
    Specifies a comment for the managed account.
    CreatedOn string
    Date and time when the managed account was created.
    FullyQualifiedName string
    Fully qualified name of the resource. For more information, see object name resolution.
    Locator string
    Display name of the managed account.
    Name string
    Identifier for the managed account; must be unique for your account.
    Region string
    Snowflake Region in which the managed account is located.
    Type string
    (Default: READER) Specifies the type of managed account.
    Url string
    URL for accessing the managed account, particularly through the web interface.
    AdminName string
    Identifier, as well as login name, for the initial user in the managed account. This user serves as the account administrator for the account.
    AdminPassword string
    Password for the initial user in the managed account. Check Snowflake-provided password policy.
    Cloud string
    Cloud in which the managed account is located.
    Comment string
    Specifies a comment for the managed account.
    CreatedOn string
    Date and time when the managed account was created.
    FullyQualifiedName string
    Fully qualified name of the resource. For more information, see object name resolution.
    Locator string
    Display name of the managed account.
    Name string
    Identifier for the managed account; must be unique for your account.
    Region string
    Snowflake Region in which the managed account is located.
    Type string
    (Default: READER) Specifies the type of managed account.
    Url string
    URL for accessing the managed account, particularly through the web interface.
    adminName String
    Identifier, as well as login name, for the initial user in the managed account. This user serves as the account administrator for the account.
    adminPassword String
    Password for the initial user in the managed account. Check Snowflake-provided password policy.
    cloud String
    Cloud in which the managed account is located.
    comment String
    Specifies a comment for the managed account.
    createdOn String
    Date and time when the managed account was created.
    fullyQualifiedName String
    Fully qualified name of the resource. For more information, see object name resolution.
    locator String
    Display name of the managed account.
    name String
    Identifier for the managed account; must be unique for your account.
    region String
    Snowflake Region in which the managed account is located.
    type String
    (Default: READER) Specifies the type of managed account.
    url String
    URL for accessing the managed account, particularly through the web interface.
    adminName string
    Identifier, as well as login name, for the initial user in the managed account. This user serves as the account administrator for the account.
    adminPassword string
    Password for the initial user in the managed account. Check Snowflake-provided password policy.
    cloud string
    Cloud in which the managed account is located.
    comment string
    Specifies a comment for the managed account.
    createdOn string
    Date and time when the managed account was created.
    fullyQualifiedName string
    Fully qualified name of the resource. For more information, see object name resolution.
    locator string
    Display name of the managed account.
    name string
    Identifier for the managed account; must be unique for your account.
    region string
    Snowflake Region in which the managed account is located.
    type string
    (Default: READER) Specifies the type of managed account.
    url string
    URL for accessing the managed account, particularly through the web interface.
    admin_name str
    Identifier, as well as login name, for the initial user in the managed account. This user serves as the account administrator for the account.
    admin_password str
    Password for the initial user in the managed account. Check Snowflake-provided password policy.
    cloud str
    Cloud in which the managed account is located.
    comment str
    Specifies a comment for the managed account.
    created_on str
    Date and time when the managed account was created.
    fully_qualified_name str
    Fully qualified name of the resource. For more information, see object name resolution.
    locator str
    Display name of the managed account.
    name str
    Identifier for the managed account; must be unique for your account.
    region str
    Snowflake Region in which the managed account is located.
    type str
    (Default: READER) Specifies the type of managed account.
    url str
    URL for accessing the managed account, particularly through the web interface.
    adminName String
    Identifier, as well as login name, for the initial user in the managed account. This user serves as the account administrator for the account.
    adminPassword String
    Password for the initial user in the managed account. Check Snowflake-provided password policy.
    cloud String
    Cloud in which the managed account is located.
    comment String
    Specifies a comment for the managed account.
    createdOn String
    Date and time when the managed account was created.
    fullyQualifiedName String
    Fully qualified name of the resource. For more information, see object name resolution.
    locator String
    Display name of the managed account.
    name String
    Identifier for the managed account; must be unique for your account.
    region String
    Snowflake Region in which the managed account is located.
    type String
    (Default: READER) Specifies the type of managed account.
    url String
    URL for accessing the managed account, particularly through the web interface.

    Import

    $ pulumi import snowflake:index/managedAccount:ManagedAccount example name
    

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

    Package Details

    Repository
    Snowflake pulumi/pulumi-snowflake
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the snowflake Terraform Provider.
    snowflake logo
    Viewing docs for Snowflake v2.13.0
    published on Thursday, Feb 26, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.