Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

Ensure maximum table name length #356

Merged
merged 7 commits into from
Dec 20, 2021
Merged
Show file tree
Hide file tree
Changes from 6 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
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this provider will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased
###### SDK Version: 0.5.7

### 💥 Breaking Changes
* Renamed columns of `aws_sagemaker_model_containers` image_config_repository_auth_config_repository_credentials_provider_arn -> image_config_repository_auth_config_repo_creds_provider_arn [#356](https://github.com/cloudquery/cq-provider-aws/pull/356).

## [v0.8.3] - 2021-12-15
###### SDK Version: 0.5.5

Expand Down
2 changes: 1 addition & 1 deletion client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ var envVarsToCheck = []string{

const (
defaultRegion = "us-east-1"
awsFailedToConfigureErrMsg = "failed to retrieve credentials for account %s. AWS Error: %w, detected aws env variables: %s"
awsFailedToConfigureErrMsg = "failed to retrieve credentials for account %s. AWS Error: %w, detected aws en v variables: %s"
defaultVar = "default"
)

Expand Down
2 changes: 1 addition & 1 deletion docs/tables/aws_sagemaker_model_containers.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Describes the container, as part of model definition.
|environment|jsonb|The environment variables to set in the Docker container|
|image|text|The path where inference code is stored|
|image_config_repository_access_mode|text|Set this to one of the following values: * Platform - The model image is hosted in Amazon ECR. * Vpc - The model image is hosted in a private Docker registry in your VPC. This member is required.|
|image_config_repository_auth_config_repository_credentials_provider_arn|text|The Amazon Resource Name (ARN) of an Amazon Web Services Lambda function that provides credentials to authenticate to the private Docker registry where your model image is hosted|
|image_config_repository_auth_config_repo_creds_provider_arn|text|The Amazon Resource Name (ARN) of an Amazon Web Services Lambda function that provides credentials to authenticate to the private Docker registry where your model image is hosted|
|mode|text|Whether the container hosts a single model or multiple models.|
|model_data_url|text|The S3 path where the model artifacts, which result from model training, are stored|
|model_package_name|text|The name or Amazon Resource Name (ARN) of the model package to use to create the model.|
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ require (
github.com/aws/aws-sdk-go-v2/service/waf v1.2.1
github.com/aws/aws-sdk-go-v2/service/wafv2 v1.5.1
github.com/aws/smithy-go v1.9.0
github.com/cloudquery/cq-provider-sdk v0.5.5
github.com/cloudquery/cq-provider-sdk v0.5.7
github.com/cloudquery/faker/v3 v3.7.5
github.com/gocarina/gocsv v0.0.0-20210516172204-ca9e8a8ddea8
github.com/golang/mock v1.6.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,8 @@ github.com/cilium/ebpf v0.4.0/go.mod h1:4tRaxcgiL706VnOzHOdBlY8IEAIdxINsQBcU4xJJ
github.com/cilium/ebpf v0.6.2/go.mod h1:4tRaxcgiL706VnOzHOdBlY8IEAIdxINsQBcU4xJJXRs=
github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
github.com/cloudflare/golz4 v0.0.0-20150217214814-ef862a3cdc58/go.mod h1:EOBUe0h4xcZ5GoxqC5SDxFQ8gwyZPKQoEzownBlhI80=
github.com/cloudquery/cq-provider-sdk v0.5.5 h1:ZaUgH+g1bh+lSxpF12MInFm8PIugYG732QInRsPu8E8=
github.com/cloudquery/cq-provider-sdk v0.5.5/go.mod h1:ZKD0C3BX/EIPTGOtWlBisl/xp0k+yvoFDjHiByCg8GE=
github.com/cloudquery/cq-provider-sdk v0.5.7 h1:pq7sdyvgMRAm2MeEd1vB16a1lHv/htIJZn16CZ5CcQc=
github.com/cloudquery/cq-provider-sdk v0.5.7/go.mod h1:ZKD0C3BX/EIPTGOtWlBisl/xp0k+yvoFDjHiByCg8GE=
github.com/cloudquery/faker/v3 v3.7.4/go.mod h1:1b8WVG9Gh0T2hVo1a8dWeXfu0AhqSB6J/mmJaesqOeo=
github.com/cloudquery/faker/v3 v3.7.5 h1:G7ANdEEcm8TvAAjIwNWSLrYK36CFCiSlrCqOTGCccL0=
github.com/cloudquery/faker/v3 v3.7.5/go.mod h1:1b8WVG9Gh0T2hVo1a8dWeXfu0AhqSB6J/mmJaesqOeo=
Expand Down
2 changes: 2 additions & 0 deletions resources/migrations/11_v0.8.4.down.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ALTER TABLE IF EXISTS "aws_sagemaker_model_containers"
RENAME COLUMN "image_config_repository_auth_config_repo_creds_provider_arn" TO "image_config_repository_auth_config_repository_credentials_provider_arn";
2 changes: 2 additions & 0 deletions resources/migrations/11_v0.8.4.up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ALTER TABLE IF EXISTS "aws_sagemaker_model_containers"
RENAME COLUMN "image_config_repository_auth_config_repository_credentials_provider_arn" TO "image_config_repository_auth_config_repo_creds_provider_arn";
2 changes: 1 addition & 1 deletion resources/sagemaker_models.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func SagemakerModels() *schema.Table {
Resolver: schema.PathResolver("ImageConfig.RepositoryAccessMode"),
},
{
Name: "image_config_repository_auth_config_repository_credentials_provider_arn",
Name: "image_config_repository_auth_config_repo_creds_provider_arn",
Description: "The Amazon Resource Name (ARN) of an Amazon Web Services Lambda function that provides credentials to authenticate to the private Docker registry where your model image is hosted",
Type: schema.TypeString,
Resolver: schema.PathResolver("ImageConfig.RepositoryAuthConfig.RepositoryCredentialsProviderArn"),
Expand Down