Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update terraform-provider-snowflake to v0.30.0 #108

Merged
merged 1 commit into from
Apr 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions provider/cmd/pulumi-resource-snowflake/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
"browserAuth": {
"type": "boolean"
},
"host": {
"type": "string",
"description": "Supports passing in a custom host value to the snowflake go driver for use with privatelink\n"
},
"oauthAccessToken": {
"type": "string"
},
Expand Down Expand Up @@ -2019,6 +2023,10 @@
"browserAuth": {
"type": "boolean"
},
"host": {
"type": "string",
"description": "Supports passing in a custom host value to the snowflake go driver for use with privatelink\n"
},
"oauthAccessToken": {
"type": "string"
},
Expand Down Expand Up @@ -2072,6 +2080,10 @@
"browserAuth": {
"type": "boolean"
},
"host": {
"type": "string",
"description": "Supports passing in a custom host value to the snowflake go driver for use with privatelink\n"
},
"oauthAccessToken": {
"type": "string"
},
Expand Down
2 changes: 1 addition & 1 deletion provider/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ replace (

require (
cloud.google.com/go/kms v1.4.0 // indirect
github.com/chanzuckerberg/terraform-provider-snowflake v0.29.0
github.com/chanzuckerberg/terraform-provider-snowflake v0.30.0
github.com/hashicorp/terraform-plugin-sdk v1.9.1 // indirect
github.com/pulumi/pulumi-terraform-bridge/v3 v3.20.0
github.com/pulumi/pulumi/sdk/v3 v3.27.0
Expand Down
4 changes: 2 additions & 2 deletions provider/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -402,8 +402,8 @@ github.com/chanzuckerberg/aws-oidc v0.23.1/go.mod h1:AbN6f7tGQ1aR8kJdr5Mpnyk3iab
github.com/chanzuckerberg/go-misc v0.0.0-20200814145037-61fd36eedee6/go.mod h1:5GljuH2+xw/T7ovs4sRj9WbNRrgePgom8sMzJJPlAAo=
github.com/chanzuckerberg/go-misc v0.0.0-20220309145137-a6d9e8c090d2 h1:yQ3ygwbCH0Wp0YPQSlILa21yGLD5guv4eUZrVaJ0ZPw=
github.com/chanzuckerberg/go-misc v0.0.0-20220309145137-a6d9e8c090d2/go.mod h1:josvORVy6Us8JVr+O3qkNUgFmqu2I0Goy/5ZXKK5bVQ=
github.com/chanzuckerberg/terraform-provider-snowflake v0.29.0 h1:SG1QXNj+YnoyPxqFGcjlJ4t3xFH7U+EiTs1GmCsR4EA=
github.com/chanzuckerberg/terraform-provider-snowflake v0.29.0/go.mod h1:1vwIUm8Ot8i1AcxqVksNTIq4tTzp3F46qR1PrS/oX5k=
github.com/chanzuckerberg/terraform-provider-snowflake v0.30.0 h1:qcPefK2BFmwQ4p9k5qwBCbhneIPg42xyoh0oVZgbTuo=
github.com/chanzuckerberg/terraform-provider-snowflake v0.30.0/go.mod h1:1vwIUm8Ot8i1AcxqVksNTIq4tTzp3F46qR1PrS/oX5k=
github.com/checkpoint-restore/go-criu/v4 v4.1.0/go.mod h1:xUQBLp4RLc5zJtWY++yjOoMoB5lihDt7fai+75m+rGw=
github.com/cheggaaa/pb v1.0.18/go.mod h1:pQciLPpbU0oxA0h+VJYYLxO+XeDQb5pZijXscXHm81s=
github.com/cheggaaa/pb v1.0.27 h1:wIkZHkNfC7R6GI5w7l/PdAdzXzlrbcI3p8OAlnkTsnc=
Expand Down
10 changes: 10 additions & 0 deletions sdk/dotnet/Config/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,16 @@ public static bool? BrowserAuth
set => _browserAuth.Set(value);
}

private static readonly __Value<string?> _host = new __Value<string?>(() => __config.Get("host"));
/// <summary>
/// Supports passing in a custom host value to the snowflake go driver for use with privatelink
/// </summary>
public static string? Host
{
get => _host.Get();
set => _host.Set(value);
}

private static readonly __Value<string?> _oauthAccessToken = new __Value<string?>(() => __config.Get("oauthAccessToken"));
public static string? OauthAccessToken
{
Expand Down
12 changes: 12 additions & 0 deletions sdk/dotnet/Provider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ public partial class Provider : Pulumi.ProviderResource
[Output("account")]
public Output<string> Account { get; private set; } = null!;

/// <summary>
/// Supports passing in a custom host value to the snowflake go driver for use with privatelink
/// </summary>
[Output("host")]
public Output<string?> Host { get; private set; } = null!;

[Output("oauthAccessToken")]
public Output<string?> OauthAccessToken { get; private set; } = null!;

Expand Down Expand Up @@ -98,6 +104,12 @@ public sealed class ProviderArgs : Pulumi.ResourceArgs
[Input("browserAuth", json: true)]
public Input<bool>? BrowserAuth { get; set; }

/// <summary>
/// Supports passing in a custom host value to the snowflake go driver for use with privatelink
/// </summary>
[Input("host")]
public Input<string>? Host { get; set; }

[Input("oauthAccessToken")]
public Input<string>? OauthAccessToken { get; set; }

Expand Down
5 changes: 5 additions & 0 deletions sdk/go/snowflake/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ func GetAccount(ctx *pulumi.Context) string {
func GetBrowserAuth(ctx *pulumi.Context) bool {
return config.GetBool(ctx, "snowflake:browserAuth")
}

// Supports passing in a custom host value to the snowflake go driver for use with privatelink
func GetHost(ctx *pulumi.Context) string {
return config.Get(ctx, "snowflake:host")
}
func GetOauthAccessToken(ctx *pulumi.Context) string {
return config.Get(ctx, "snowflake:oauthAccessToken")
}
Expand Down
16 changes: 11 additions & 5 deletions sdk/go/snowflake/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ import (
type Provider struct {
pulumi.ProviderResourceState

Account pulumi.StringOutput `pulumi:"account"`
Account pulumi.StringOutput `pulumi:"account"`
// Supports passing in a custom host value to the snowflake go driver for use with privatelink
Host pulumi.StringPtrOutput `pulumi:"host"`
OauthAccessToken pulumi.StringPtrOutput `pulumi:"oauthAccessToken"`
OauthClientId pulumi.StringPtrOutput `pulumi:"oauthClientId"`
OauthClientSecret pulumi.StringPtrOutput `pulumi:"oauthClientSecret"`
Expand Down Expand Up @@ -61,8 +63,10 @@ func NewProvider(ctx *pulumi.Context,
}

type providerArgs struct {
Account string `pulumi:"account"`
BrowserAuth *bool `pulumi:"browserAuth"`
Account string `pulumi:"account"`
BrowserAuth *bool `pulumi:"browserAuth"`
// Supports passing in a custom host value to the snowflake go driver for use with privatelink
Host *string `pulumi:"host"`
OauthAccessToken *string `pulumi:"oauthAccessToken"`
OauthClientId *string `pulumi:"oauthClientId"`
OauthClientSecret *string `pulumi:"oauthClientSecret"`
Expand All @@ -82,8 +86,10 @@ type providerArgs struct {

// The set of arguments for constructing a Provider resource.
type ProviderArgs struct {
Account pulumi.StringInput
BrowserAuth pulumi.BoolPtrInput
Account pulumi.StringInput
BrowserAuth pulumi.BoolPtrInput
// Supports passing in a custom host value to the snowflake go driver for use with privatelink
Host pulumi.StringPtrInput
OauthAccessToken pulumi.StringPtrInput
OauthClientId pulumi.StringPtrInput
OauthClientSecret pulumi.StringPtrInput
Expand Down
11 changes: 11 additions & 0 deletions sdk/nodejs/config/vars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,17 @@ Object.defineProperty(exports, "browserAuth", {
enumerable: true,
});

/**
* Supports passing in a custom host value to the snowflake go driver for use with privatelink
*/
export declare const host: string | undefined;
Object.defineProperty(exports, "host", {
get() {
return __config.get("host");
},
enumerable: true,
});

export declare const oauthAccessToken: string | undefined;
Object.defineProperty(exports, "oauthAccessToken", {
get() {
Expand Down
9 changes: 9 additions & 0 deletions sdk/nodejs/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ export class Provider extends pulumi.ProviderResource {
}

public readonly account!: pulumi.Output<string>;
/**
* Supports passing in a custom host value to the snowflake go driver for use with privatelink
*/
public readonly host!: pulumi.Output<string | undefined>;
public readonly oauthAccessToken!: pulumi.Output<string | undefined>;
public readonly oauthClientId!: pulumi.Output<string | undefined>;
public readonly oauthClientSecret!: pulumi.Output<string | undefined>;
Expand Down Expand Up @@ -66,6 +70,7 @@ export class Provider extends pulumi.ProviderResource {
}
resourceInputs["account"] = args ? args.account : undefined;
resourceInputs["browserAuth"] = pulumi.output(args ? args.browserAuth : undefined).apply(JSON.stringify);
resourceInputs["host"] = args ? args.host : undefined;
resourceInputs["oauthAccessToken"] = args ? args.oauthAccessToken : undefined;
resourceInputs["oauthClientId"] = args ? args.oauthClientId : undefined;
resourceInputs["oauthClientSecret"] = args ? args.oauthClientSecret : undefined;
Expand All @@ -91,6 +96,10 @@ export class Provider extends pulumi.ProviderResource {
export interface ProviderArgs {
account: pulumi.Input<string>;
browserAuth?: pulumi.Input<boolean>;
/**
* Supports passing in a custom host value to the snowflake go driver for use with privatelink
*/
host?: pulumi.Input<string>;
oauthAccessToken?: pulumi.Input<string>;
oauthClientId?: pulumi.Input<string>;
oauthClientSecret?: pulumi.Input<string>;
Expand Down
5 changes: 5 additions & 0 deletions sdk/python/pulumi_snowflake/config/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ account: Optional[str]

browserAuth: Optional[bool]

host: Optional[str]
"""
Supports passing in a custom host value to the snowflake go driver for use with privatelink
"""

oauthAccessToken: Optional[str]

oauthClientId: Optional[str]
Expand Down
7 changes: 7 additions & 0 deletions sdk/python/pulumi_snowflake/config/vars.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ def account(self) -> Optional[str]:
def browser_auth(self) -> Optional[bool]:
return __config__.get_bool('browserAuth')

@property
def host(self) -> Optional[str]:
"""
Supports passing in a custom host value to the snowflake go driver for use with privatelink
"""
return __config__.get('host')

@property
def oauth_access_token(self) -> Optional[str]:
return __config__.get('oauthAccessToken')
Expand Down
28 changes: 28 additions & 0 deletions sdk/python/pulumi_snowflake/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ def __init__(__self__, *,
region: pulumi.Input[str],
username: pulumi.Input[str],
browser_auth: Optional[pulumi.Input[bool]] = None,
host: Optional[pulumi.Input[str]] = None,
oauth_access_token: Optional[pulumi.Input[str]] = None,
oauth_client_id: Optional[pulumi.Input[str]] = None,
oauth_client_secret: Optional[pulumi.Input[str]] = None,
Expand All @@ -30,6 +31,7 @@ def __init__(__self__, *,
role: Optional[pulumi.Input[str]] = None):
"""
The set of arguments for constructing a Provider resource.
:param pulumi.Input[str] host: Supports passing in a custom host value to the snowflake go driver for use with privatelink
:param pulumi.Input[str] private_key_passphrase: Supports the encryption ciphers aes-128-cbc, aes-128-gcm, aes-192-cbc, aes-192-gcm, aes-256-cbc, aes-256-gcm, and
des-ede3-cbc
"""
Expand All @@ -38,6 +40,8 @@ def __init__(__self__, *,
pulumi.set(__self__, "username", username)
if browser_auth is not None:
pulumi.set(__self__, "browser_auth", browser_auth)
if host is not None:
pulumi.set(__self__, "host", host)
if oauth_access_token is not None:
pulumi.set(__self__, "oauth_access_token", oauth_access_token)
if oauth_client_id is not None:
Expand Down Expand Up @@ -97,6 +101,18 @@ def browser_auth(self) -> Optional[pulumi.Input[bool]]:
def browser_auth(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "browser_auth", value)

@property
@pulumi.getter
def host(self) -> Optional[pulumi.Input[str]]:
"""
Supports passing in a custom host value to the snowflake go driver for use with privatelink
"""
return pulumi.get(self, "host")

@host.setter
def host(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "host", value)

@property
@pulumi.getter(name="oauthAccessToken")
def oauth_access_token(self) -> Optional[pulumi.Input[str]]:
Expand Down Expand Up @@ -208,6 +224,7 @@ def __init__(__self__,
opts: Optional[pulumi.ResourceOptions] = None,
account: Optional[pulumi.Input[str]] = None,
browser_auth: Optional[pulumi.Input[bool]] = None,
host: Optional[pulumi.Input[str]] = None,
oauth_access_token: Optional[pulumi.Input[str]] = None,
oauth_client_id: Optional[pulumi.Input[str]] = None,
oauth_client_secret: Optional[pulumi.Input[str]] = None,
Expand All @@ -230,6 +247,7 @@ def __init__(__self__,

:param str resource_name: The name of the resource.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] host: Supports passing in a custom host value to the snowflake go driver for use with privatelink
:param pulumi.Input[str] private_key_passphrase: Supports the encryption ciphers aes-128-cbc, aes-128-gcm, aes-192-cbc, aes-192-gcm, aes-256-cbc, aes-256-gcm, and
des-ede3-cbc
"""
Expand Down Expand Up @@ -262,6 +280,7 @@ def _internal_init(__self__,
opts: Optional[pulumi.ResourceOptions] = None,
account: Optional[pulumi.Input[str]] = None,
browser_auth: Optional[pulumi.Input[bool]] = None,
host: Optional[pulumi.Input[str]] = None,
oauth_access_token: Optional[pulumi.Input[str]] = None,
oauth_client_id: Optional[pulumi.Input[str]] = None,
oauth_client_secret: Optional[pulumi.Input[str]] = None,
Expand Down Expand Up @@ -291,6 +310,7 @@ def _internal_init(__self__,
raise TypeError("Missing required property 'account'")
__props__.__dict__["account"] = account
__props__.__dict__["browser_auth"] = pulumi.Output.from_input(browser_auth).apply(pulumi.runtime.to_json) if browser_auth is not None else None
__props__.__dict__["host"] = host
__props__.__dict__["oauth_access_token"] = oauth_access_token
__props__.__dict__["oauth_client_id"] = oauth_client_id
__props__.__dict__["oauth_client_secret"] = oauth_client_secret
Expand Down Expand Up @@ -319,6 +339,14 @@ def _internal_init(__self__,
def account(self) -> pulumi.Output[str]:
return pulumi.get(self, "account")

@property
@pulumi.getter
def host(self) -> pulumi.Output[Optional[str]]:
"""
Supports passing in a custom host value to the snowflake go driver for use with privatelink
"""
return pulumi.get(self, "host")

@property
@pulumi.getter(name="oauthAccessToken")
def oauth_access_token(self) -> pulumi.Output[Optional[str]]:
Expand Down