Welcome to Pulumi Registry, your window into the cloud. Read the announcement.

Snowflake

v0.2.1 published on Monday, Sep 27, 2021 by Pulumi

getCurrentAccount

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;
using Snowflake = Pulumi.Snowflake;

class MyStack : Stack
{
    public MyStack()
    {
        var @this = Output.Create(Snowflake.GetCurrentAccount.InvokeAsync());
        var snowflakeAccountUrl = new Aws.Ssm.Parameter("snowflakeAccountUrl", new Aws.Ssm.ParameterArgs
        {
            Type = "String",
            Value = @this.Apply(@this => @this.Url),
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/ssm"
	"github.com/pulumi/pulumi-snowflake/sdk/go/snowflake"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		this, err := snowflake.GetCurrentAccount(ctx, nil, nil)
		if err != nil {
			return err
		}
		_, err = ssm.NewParameter(ctx, "snowflakeAccountUrl", &ssm.ParameterArgs{
			Type:  pulumi.String("String"),
			Value: pulumi.String(this.Url),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_aws as aws
import pulumi_snowflake as snowflake

this = snowflake.get_current_account()
snowflake_account_url = aws.ssm.Parameter("snowflakeAccountUrl",
    type="String",
    value=this.url)
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
import * as snowflake from "@pulumi/snowflake";

const this = snowflake.getCurrentAccount({});
const snowflakeAccountUrl = new aws.ssm.Parameter("snowflakeAccountUrl", {
    type: "String",
    value: _this.then(_this => _this.url),
});

Using getCurrentAccount

function getCurrentAccount(opts?: InvokeOptions): Promise<GetCurrentAccountResult>
def get_current_account(opts: Optional[InvokeOptions] = None) -> GetCurrentAccountResult
func GetCurrentAccount(ctx *Context, opts ...InvokeOption) (*GetCurrentAccountResult, error)

Note: This function is named GetCurrentAccount in the Go SDK.

public static class GetCurrentAccount {
    public static Task<GetCurrentAccountResult> InvokeAsync(InvokeOptions? opts = null)
}

getCurrentAccount Result

The following output properties are available:

Account string
The Snowflake Account ID; as returned by CURRENT_ACCOUNT().
Id string
The provider-assigned unique ID for this managed resource.
Region string
The Snowflake Region; as returned by CURRENT_REGION()
Url string
The Snowflake URL.
Account string
The Snowflake Account ID; as returned by CURRENT_ACCOUNT().
Id string
The provider-assigned unique ID for this managed resource.
Region string
The Snowflake Region; as returned by CURRENT_REGION()
Url string
The Snowflake URL.
account string
The Snowflake Account ID; as returned by CURRENT_ACCOUNT().
id string
The provider-assigned unique ID for this managed resource.
region string
The Snowflake Region; as returned by CURRENT_REGION()
url string
The Snowflake URL.
account str
The Snowflake Account ID; as returned by CURRENT_ACCOUNT().
id str
The provider-assigned unique ID for this managed resource.
region str
The Snowflake Region; as returned by CURRENT_REGION()
url str
The Snowflake URL.

Package Details

Repository
https://github.com/pulumi/pulumi-snowflake
License
Apache-2.0
Notes
This Pulumi package is based on the snowflake Terraform Provider.