Skip to content

Commit

Permalink
Upgrade terraform-provider-snowflake to v0.45.0
Browse files Browse the repository at this point in the history
  • Loading branch information
viveklak committed Sep 29, 2022
1 parent 45973ab commit 564843a
Show file tree
Hide file tree
Showing 39 changed files with 3,433 additions and 112 deletions.
177 changes: 173 additions & 4 deletions provider/cmd/pulumi-resource-snowflake/schema.json

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions provider/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ go 1.18
replace (
cloud.google.com/go/storage => cloud.google.com/go/storage v1.15.0
github.com/hashicorp/terraform-plugin-sdk/v2 => github.com/pulumi/terraform-plugin-sdk/v2 v2.0.0-20220725190814-23001ad6ec03
github.com/mattn/go-ieproxy => github.com/mattn/go-ieproxy v0.0.9
github.com/mattn/go-ieproxy => github.com/mattn/go-ieproxy v0.0.1
)

require (
github.com/Snowflake-Labs/terraform-provider-snowflake v0.42.0
github.com/Snowflake-Labs/terraform-provider-snowflake v0.45.0
github.com/pulumi/pulumi-terraform-bridge/v3 v3.31.0
github.com/pulumi/pulumi/sdk/v3 v3.40.2
)
Expand All @@ -22,13 +22,13 @@ require (
cloud.google.com/go/logging v1.0.0 // indirect
cloud.google.com/go/storage v1.22.1 // indirect
github.com/Azure/azure-pipeline-go v0.2.3 // indirect
github.com/Azure/azure-sdk-for-go v57.0.0+incompatible // indirect
github.com/Azure/azure-sdk-for-go v59.3.0+incompatible // indirect
github.com/Azure/azure-storage-blob-go v0.15.0 // indirect
github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 // indirect
github.com/Azure/go-autorest v14.2.0+incompatible // indirect
github.com/Azure/go-autorest/autorest v0.11.20 // indirect
github.com/Azure/go-autorest/autorest/adal v0.9.15 // indirect
github.com/Azure/go-autorest/autorest/azure/auth v0.5.8 // indirect
github.com/Azure/go-autorest/autorest v0.11.22 // indirect
github.com/Azure/go-autorest/autorest/adal v0.9.17 // indirect
github.com/Azure/go-autorest/autorest/azure/auth v0.5.9 // indirect
github.com/Azure/go-autorest/autorest/azure/cli v0.4.3 // indirect
github.com/Azure/go-autorest/autorest/date v0.3.0 // indirect
github.com/Azure/go-autorest/autorest/to v0.4.0 // indirect
Expand Down Expand Up @@ -62,7 +62,7 @@ require (
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.1.13 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.9.12 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.13.12 // indirect
github.com/aws/aws-sdk-go-v2/service/kms v1.5.0 // indirect
github.com/aws/aws-sdk-go-v2/service/kms v1.16.3 // indirect
github.com/aws/aws-sdk-go-v2/service/s3 v1.27.5 // indirect
github.com/aws/aws-sdk-go-v2/service/sso v1.11.17 // indirect
github.com/aws/aws-sdk-go-v2/service/sts v1.16.13 // indirect
Expand All @@ -88,7 +88,7 @@ require (
github.com/go-git/go-git/v5 v5.4.2 // indirect
github.com/gofrs/uuid v4.2.0+incompatible // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang-jwt/jwt/v4 v4.0.0 // indirect
github.com/golang-jwt/jwt/v4 v4.4.1 // indirect
github.com/golang/glog v1.0.0 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/protobuf v1.5.2 // indirect
Expand Down Expand Up @@ -221,7 +221,7 @@ require (
golang.org/x/sys v0.0.0-20220823224334-20c2bfdbfe24 // indirect
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 // indirect
golang.org/x/text v0.3.7 // indirect
golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac // indirect
golang.org/x/time v0.0.0-20220224211638-0e9765cccd65 // indirect
golang.org/x/xerrors v0.0.0-20220609144429-65e65417b02f // indirect
google.golang.org/api v0.74.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
Expand Down
39 changes: 26 additions & 13 deletions provider/go.sum

Large diffs are not rendered by default.

120 changes: 61 additions & 59 deletions provider/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,65 +77,67 @@ func Provider() tfbridge.ProviderInfo {
Repository: "https://github.com/pulumi/pulumi-snowflake",
Config: map[string]*tfbridge.SchemaInfo{},
Resources: map[string]*tfbridge.ResourceInfo{
"snowflake_account_grant": {Tok: makeResource(mainMod, "AccountGrant")},
"snowflake_api_integration": {Tok: makeResource(mainMod, "ApiIntegration")},
"snowflake_database": {Tok: makeResource(mainMod, "Database")},
"snowflake_database_grant": {Tok: makeResource(mainMod, "DatabaseGrant")},
"snowflake_external_function": {Tok: makeResource(mainMod, "ExternalFunction")},
"snowflake_external_table": {Tok: makeResource(mainMod, "ExternalTable")},
"snowflake_external_table_grant": {Tok: makeResource(mainMod, "ExternalTableGrant")},
"snowflake_file_format": {Tok: makeResource(mainMod, "FileFormat")},
"snowflake_file_format_grant": {Tok: makeResource(mainMod, "FileFormatGrant")},
"snowflake_function": {Tok: makeResource(mainMod, "Function")},
"snowflake_function_grant": {Tok: makeResource(mainMod, "FunctionGrant")},
"snowflake_integration_grant": {Tok: makeResource(mainMod, "IntegrationGrant")},
"snowflake_managed_account": {Tok: makeResource(mainMod, "ManagedAccount")},
"snowflake_masking_policy": {Tok: makeResource(mainMod, "MaskingPolicy")},
"snowflake_masking_policy_grant": {Tok: makeResource(mainMod, "MaskingPolicyGrant")},
"snowflake_materialized_view": {Tok: makeResource(mainMod, "MaterializedView")},
"snowflake_materialized_view_grant": {Tok: makeResource(mainMod, "MaterializedViewGrant")},
"snowflake_network_policy": {Tok: makeResource(mainMod, "NetworkPolicy")},
"snowflake_network_policy_attachment": {Tok: makeResource(mainMod, "NetworkPolicyAttachment")},
"snowflake_notification_integration": {Tok: makeResource(mainMod, "NotificationIntegration")},
"snowflake_pipe": {Tok: makeResource(mainMod, "Pipe")},
"snowflake_pipe_grant": {Tok: makeResource(mainMod, "PipeGrant")},
"snowflake_procedure": {Tok: makeResource(mainMod, "Procedure")},
"snowflake_procedure_grant": {Tok: makeResource(mainMod, "ProcedureGrant")},
"snowflake_resource_monitor": {Tok: makeResource(mainMod, "ResourceMonitor")},
"snowflake_resource_monitor_grant": {Tok: makeResource(mainMod, "ResourceMonitorGrant")},
"snowflake_role": {Tok: makeResource(mainMod, "Role")},
"snowflake_role_grants": {Tok: makeResource(mainMod, "RoleGrants")},
"snowflake_row_access_policy": {Tok: makeResource(mainMod, "RowAccessPolicy")},
"snowflake_row_access_policy_grant": {Tok: makeResource(mainMod, "RowAccessPolicyGrant")},
"snowflake_schema": {Tok: makeResource(mainMod, "Schema")},
"snowflake_schema_grant": {Tok: makeResource(mainMod, "SchemaGrant")},
"snowflake_scim_integration": {Tok: makeResource(mainMod, "ScimIntegration")},
"snowflake_sequence": {Tok: makeResource(mainMod, "Sequence")},
"snowflake_sequence_grant": {Tok: makeResource(mainMod, "SequenceGrant")},
"snowflake_share": {Tok: makeResource(mainMod, "Share")},
"snowflake_stage": {Tok: makeResource(mainMod, "Stage")},
"snowflake_stage_grant": {Tok: makeResource(mainMod, "StageGrant")},
"snowflake_storage_integration": {Tok: makeResource(mainMod, "StorageIntegration")},
"snowflake_stream": {Tok: makeResource(mainMod, "Stream")},
"snowflake_stream_grant": {Tok: makeResource(mainMod, "StreamGrant")},
"snowflake_table": {Tok: makeResource(mainMod, "Table")},
"snowflake_table_grant": {Tok: makeResource(mainMod, "TableGrant")},
"snowflake_tag": {Tok: makeResource(mainMod, "Tag")},
"snowflake_task": {Tok: makeResource(mainMod, "Task")},
"snowflake_task_grant": {Tok: makeResource(mainMod, "TaskGrant")},
"snowflake_user": {Tok: makeResource(mainMod, "User")},
"snowflake_user_public_keys": {Tok: makeResource(mainMod, "UserPublicKeys")},
"snowflake_view": {Tok: makeResource(mainMod, "View")},
"snowflake_view_grant": {Tok: makeResource(mainMod, "ViewGrant")},
"snowflake_warehouse": {Tok: makeResource(mainMod, "Warehouse")},
"snowflake_warehouse_grant": {Tok: makeResource(mainMod, "WarehouseGrant")},
"snowflake_oauth_integration": {Tok: makeResource(mainMod, "OauthIntegration")},
"snowflake_saml_integration": {Tok: makeResource(mainMod, "SamlIntegration")},
"snowflake_external_oauth_integration": {Tok: makeResource(mainMod, "ExternalOauthIntegration")},
"snowflake_role_ownership_grant": {Tok: makeResource(mainMod, "RoleOwnershipGrant")},
"snowflake_user_ownership_grant": {Tok: makeResource(mainMod, "UserOwnershipGrant")},
"snowflake_tag_grant": {Tok: makeResource(mainMod, "TagGrant")},
"snowflake_tag_association": {Tok: makeResource(mainMod, "TagAssociation")},
"snowflake_account_grant": {Tok: makeResource(mainMod, "AccountGrant")},
"snowflake_api_integration": {Tok: makeResource(mainMod, "ApiIntegration")},
"snowflake_database": {Tok: makeResource(mainMod, "Database")},
"snowflake_database_grant": {Tok: makeResource(mainMod, "DatabaseGrant")},
"snowflake_external_function": {Tok: makeResource(mainMod, "ExternalFunction")},
"snowflake_external_table": {Tok: makeResource(mainMod, "ExternalTable")},
"snowflake_external_table_grant": {Tok: makeResource(mainMod, "ExternalTableGrant")},
"snowflake_file_format": {Tok: makeResource(mainMod, "FileFormat")},
"snowflake_file_format_grant": {Tok: makeResource(mainMod, "FileFormatGrant")},
"snowflake_function": {Tok: makeResource(mainMod, "Function")},
"snowflake_function_grant": {Tok: makeResource(mainMod, "FunctionGrant")},
"snowflake_integration_grant": {Tok: makeResource(mainMod, "IntegrationGrant")},
"snowflake_managed_account": {Tok: makeResource(mainMod, "ManagedAccount")},
"snowflake_masking_policy": {Tok: makeResource(mainMod, "MaskingPolicy")},
"snowflake_masking_policy_grant": {Tok: makeResource(mainMod, "MaskingPolicyGrant")},
"snowflake_materialized_view": {Tok: makeResource(mainMod, "MaterializedView")},
"snowflake_materialized_view_grant": {Tok: makeResource(mainMod, "MaterializedViewGrant")},
"snowflake_network_policy": {Tok: makeResource(mainMod, "NetworkPolicy")},
"snowflake_network_policy_attachment": {Tok: makeResource(mainMod, "NetworkPolicyAttachment")},
"snowflake_notification_integration": {Tok: makeResource(mainMod, "NotificationIntegration")},
"snowflake_pipe": {Tok: makeResource(mainMod, "Pipe")},
"snowflake_pipe_grant": {Tok: makeResource(mainMod, "PipeGrant")},
"snowflake_procedure": {Tok: makeResource(mainMod, "Procedure")},
"snowflake_procedure_grant": {Tok: makeResource(mainMod, "ProcedureGrant")},
"snowflake_resource_monitor": {Tok: makeResource(mainMod, "ResourceMonitor")},
"snowflake_resource_monitor_grant": {Tok: makeResource(mainMod, "ResourceMonitorGrant")},
"snowflake_role": {Tok: makeResource(mainMod, "Role")},
"snowflake_role_grants": {Tok: makeResource(mainMod, "RoleGrants")},
"snowflake_row_access_policy": {Tok: makeResource(mainMod, "RowAccessPolicy")},
"snowflake_row_access_policy_grant": {Tok: makeResource(mainMod, "RowAccessPolicyGrant")},
"snowflake_schema": {Tok: makeResource(mainMod, "Schema")},
"snowflake_schema_grant": {Tok: makeResource(mainMod, "SchemaGrant")},
"snowflake_scim_integration": {Tok: makeResource(mainMod, "ScimIntegration")},
"snowflake_sequence": {Tok: makeResource(mainMod, "Sequence")},
"snowflake_sequence_grant": {Tok: makeResource(mainMod, "SequenceGrant")},
"snowflake_share": {Tok: makeResource(mainMod, "Share")},
"snowflake_stage": {Tok: makeResource(mainMod, "Stage")},
"snowflake_stage_grant": {Tok: makeResource(mainMod, "StageGrant")},
"snowflake_storage_integration": {Tok: makeResource(mainMod, "StorageIntegration")},
"snowflake_stream": {Tok: makeResource(mainMod, "Stream")},
"snowflake_stream_grant": {Tok: makeResource(mainMod, "StreamGrant")},
"snowflake_table": {Tok: makeResource(mainMod, "Table")},
"snowflake_table_grant": {Tok: makeResource(mainMod, "TableGrant")},
"snowflake_tag": {Tok: makeResource(mainMod, "Tag")},
"snowflake_task": {Tok: makeResource(mainMod, "Task")},
"snowflake_task_grant": {Tok: makeResource(mainMod, "TaskGrant")},
"snowflake_user": {Tok: makeResource(mainMod, "User")},
"snowflake_user_grant": {Tok: makeResource(mainMod, "UserGrant")},
"snowflake_user_public_keys": {Tok: makeResource(mainMod, "UserPublicKeys")},
"snowflake_view": {Tok: makeResource(mainMod, "View")},
"snowflake_view_grant": {Tok: makeResource(mainMod, "ViewGrant")},
"snowflake_warehouse": {Tok: makeResource(mainMod, "Warehouse")},
"snowflake_warehouse_grant": {Tok: makeResource(mainMod, "WarehouseGrant")},
"snowflake_oauth_integration": {Tok: makeResource(mainMod, "OauthIntegration")},
"snowflake_saml_integration": {Tok: makeResource(mainMod, "SamlIntegration")},
"snowflake_external_oauth_integration": {Tok: makeResource(mainMod, "ExternalOauthIntegration")},
"snowflake_role_ownership_grant": {Tok: makeResource(mainMod, "RoleOwnershipGrant")},
"snowflake_user_ownership_grant": {Tok: makeResource(mainMod, "UserOwnershipGrant")},
"snowflake_tag_association": {Tok: makeResource(mainMod, "TagAssociation")},
"snowflake_tag_grant": {Tok: makeResource(mainMod, "TagGrant")},
"snowflake_tag_masking_policy_association": {Tok: makeResource(mainMod, "TagMaskingPolicyAssociation")},
},
DataSources: map[string]*tfbridge.DataSourceInfo{
"snowflake_current_account": {Tok: makeDataSource(mainMod, "getCurrentAccount")},
Expand Down
23 changes: 22 additions & 1 deletion sdk/dotnet/Config/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,17 @@ public static string? Password
set => _password.Set(value);
}

private static readonly __Value<int?> _port = new __Value<int?>(() => __config.GetInt32("port"));
/// <summary>
/// Support custom port values to snowflake go driver for use with privatelink. Can be sourced from `SNOWFLAKE_PORT`
/// environment variable.
/// </summary>
public static int? Port
{
get => _port.Get();
set => _port.Set(value);
}

private static readonly __Value<string?> _privateKey = new __Value<string?>(() => __config.Get("privateKey"));
/// <summary>
/// Private Key for username+private-key auth. Cannot be used with `browser_auth` or `password`. Can be source from
Expand Down Expand Up @@ -171,6 +182,16 @@ public static string? PrivateKeyPath
set => _privateKeyPath.Set(value);
}

private static readonly __Value<string?> _protocol = new __Value<string?>(() => __config.Get("protocol"));
/// <summary>
/// Support custom protocols to snowflake go driver. Can be sourced from `SNOWFLAKE_PROTOCOL` environment variable.
/// </summary>
public static string? Protocol
{
get => _protocol.Get();
set => _protocol.Set(value);
}

private static readonly __Value<string?> _region = new __Value<string?>(() => __config.Get("region"));
/// <summary>
/// [Snowflake region](https://docs.snowflake.com/en/user-guide/intro-regions.html) to use. Can be source from the
Expand Down Expand Up @@ -205,7 +226,7 @@ public static string? Username

private static readonly __Value<string?> _warehouse = new __Value<string?>(() => __config.Get("warehouse"));
/// <summary>
/// Sets the default warehouse. Optional. Can be sourced from SNOWFLAKE_WAREHOUSE enviornment variable.
/// Sets the default warehouse. Optional. Can be sourced from SNOWFLAKE_WAREHOUSE environment variable.
/// </summary>
public static string? Warehouse
{
Expand Down
1 change: 1 addition & 0 deletions sdk/dotnet/ExternalTable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ namespace Pulumi.Snowflake
/// },
/// Comment = "External table",
/// Database = "db",
/// FileFormat = "TYPE = CSV FIELD_DELIMITER = '|'",
/// Schema = "schema",
/// });
///
Expand Down
23 changes: 21 additions & 2 deletions sdk/dotnet/Provider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,12 @@ public partial class Provider : global::Pulumi.ProviderResource
[Output("privateKeyPath")]
public Output<string?> PrivateKeyPath { get; private set; } = null!;

/// <summary>
/// Support custom protocols to snowflake go driver. Can be sourced from `SNOWFLAKE_PROTOCOL` environment variable.
/// </summary>
[Output("protocol")]
public Output<string?> Protocol { get; private set; } = null!;

/// <summary>
/// [Snowflake region](https://docs.snowflake.com/en/user-guide/intro-regions.html) to use. Can be source from the
/// `SNOWFLAKE_REGION` environment variable.
Expand All @@ -120,7 +126,7 @@ public partial class Provider : global::Pulumi.ProviderResource
public Output<string> Username { get; private set; } = null!;

/// <summary>
/// Sets the default warehouse. Optional. Can be sourced from SNOWFLAKE_WAREHOUSE enviornment variable.
/// Sets the default warehouse. Optional. Can be sourced from SNOWFLAKE_WAREHOUSE environment variable.
/// </summary>
[Output("warehouse")]
public Output<string?> Warehouse { get; private set; } = null!;
Expand Down Expand Up @@ -302,6 +308,13 @@ public Input<string>? Password
}
}

/// <summary>
/// Support custom port values to snowflake go driver for use with privatelink. Can be sourced from `SNOWFLAKE_PORT`
/// environment variable.
/// </summary>
[Input("port", json: true)]
public Input<int>? Port { get; set; }

[Input("privateKey")]
private Input<string>? _privateKey;

Expand Down Expand Up @@ -353,6 +366,12 @@ public Input<string>? PrivateKeyPath
}
}

/// <summary>
/// Support custom protocols to snowflake go driver. Can be sourced from `SNOWFLAKE_PROTOCOL` environment variable.
/// </summary>
[Input("protocol")]
public Input<string>? Protocol { get; set; }

/// <summary>
/// [Snowflake region](https://docs.snowflake.com/en/user-guide/intro-regions.html) to use. Can be source from the
/// `SNOWFLAKE_REGION` environment variable.
Expand All @@ -374,7 +393,7 @@ public Input<string>? PrivateKeyPath
public Input<string> Username { get; set; } = null!;

/// <summary>
/// Sets the default warehouse. Optional. Can be sourced from SNOWFLAKE_WAREHOUSE enviornment variable.
/// Sets the default warehouse. Optional. Can be sourced from SNOWFLAKE_WAREHOUSE environment variable.
/// </summary>
[Input("warehouse")]
public Input<string>? Warehouse { get; set; }
Expand Down
Loading

0 comments on commit 564843a

Please sign in to comment.