Skip to content

Commit

Permalink
bump golang version to latest. bump dependencies to latest. regenerat…
Browse files Browse the repository at this point in the history
…e documentation to align with new verson of terraform-plugin-docs
  • Loading branch information
sworisbreathing committed Jan 17, 2024
1 parent 785455d commit b7a8f55
Show file tree
Hide file tree
Showing 19 changed files with 423 additions and 784 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
go-version: 1.21
- name: Import GPG key
id: import_gpg
uses: paultyng/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
go-version: 1.21

- name: Run tests
run: make test
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ It's published on the [Terraform registry](https://registry.terraform.io/provide
## Requirements

- [Terraform](https://www.terraform.io/downloads.html) >= 1.0
- [Go](https://golang.org/doc/install) 1.17 (to build the provider plugin)
- [Go](https://golang.org/doc/install) 1.21 (to build the provider plugin)

## Building The Provider

Expand Down
18 changes: 8 additions & 10 deletions docs/data-sources/database.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,25 +23,23 @@ data "redshift_database" "database" {

### Required

- **name** (String) Name of the database
- `name` (String) Name of the database

### Optional

- **datashare_source** (Block List, Max: 1) Configuration for a database created from a redshift datashare. (see [below for nested schema](#nestedblock--datashare_source))
- **id** (String) The ID of this resource.
- `datashare_source` (Block List, Max: 1) Configuration for a database created from a redshift datashare. (see [below for nested schema](#nestedblock--datashare_source))

### Read-Only

- **connection_limit** (Number) The maximum number of concurrent connections that can be made to this database. A value of -1 means no limit.
- **owner** (String) Owner of the database, usually the user who created it
- `connection_limit` (Number) The maximum number of concurrent connections that can be made to this database. A value of -1 means no limit.
- `id` (String) The ID of this resource.
- `owner` (String) Owner of the database, usually the user who created it

<a id="nestedblock--datashare_source"></a>
### Nested Schema for `datashare_source`

Optional:

- **account_id** (String) The AWS account ID of the producer cluster.
- **namespace** (String) The namespace (guid) of the producer cluster
- **share_name** (String) The name of the datashare on the producer cluster


- `account_id` (String) The AWS account ID of the producer cluster.
- `namespace` (String) The namespace (guid) of the producer cluster
- `share_name` (String) The name of the datashare on the producer cluster
11 changes: 3 additions & 8 deletions docs/data-sources/group.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,9 @@ data "redshift_group" "staff" {

### Required

- **name** (String) Name of the user group. Group names beginning with two underscores are reserved for Amazon Redshift internal use.

### Optional

- **id** (String) The ID of this resource.
- `name` (String) Name of the user group. Group names beginning with two underscores are reserved for Amazon Redshift internal use.

### Read-Only

- **users** (Set of String) List of the user names who belong to the group


- `id` (String) The ID of this resource.
- `users` (Set of String) List of the user names who belong to the group
6 changes: 2 additions & 4 deletions docs/data-sources/namespace.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ data "redshift_namespace" "namespace" {
<!-- schema generated by tfplugindocs -->
## Schema

### Optional

- **id** (String) The ID of this resource.

### Read-Only

- `id` (String) The ID of this resource.
56 changes: 27 additions & 29 deletions docs/data-sources/schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,50 +23,50 @@ data "redshift_schema" "schema" {

### Required

- **name** (String) Name of the schema.
- `name` (String) Name of the schema.

### Optional

- **external_schema** (Block List, Max: 1) Configures the schema as an external schema. See https://docs.aws.amazon.com/redshift/latest/dg/r_CREATE_EXTERNAL_SCHEMA.html (see [below for nested schema](#nestedblock--external_schema))
- **id** (String) The ID of this resource.
- `external_schema` (Block List, Max: 1) Configures the schema as an external schema. See https://docs.aws.amazon.com/redshift/latest/dg/r_CREATE_EXTERNAL_SCHEMA.html (see [below for nested schema](#nestedblock--external_schema))

### Read-Only

- **owner** (String) Name of the schema owner.
- **quota** (Number) The maximum amount of disk space that the specified schema can use. GB is the default unit of measurement.
- `id` (String) The ID of this resource.
- `owner` (String) Name of the schema owner.
- `quota` (Number) The maximum amount of disk space that the specified schema can use. GB is the default unit of measurement.

<a id="nestedblock--external_schema"></a>
### Nested Schema for `external_schema`

Optional:

- **data_catalog_source** (Block List, Max: 1) Configures the external schema from the AWS Glue Data Catalog (see [below for nested schema](#nestedblock--external_schema--data_catalog_source))
- **hive_metastore_source** (Block List, Max: 1) Configures the external schema from a Hive Metastore. (see [below for nested schema](#nestedblock--external_schema--hive_metastore_source))
- **rds_mysql_source** (Block List, Max: 1) Configures the external schema to reference data using a federated query to RDS MYSQL or Aurora MySQL. (see [below for nested schema](#nestedblock--external_schema--rds_mysql_source))
- **rds_postgres_source** (Block List, Max: 1) Configures the external schema to reference data using a federated query to RDS POSTGRES or Aurora PostgreSQL. (see [below for nested schema](#nestedblock--external_schema--rds_postgres_source))
- **redshift_source** (Block List, Max: 1) Configures the external schema to reference datashare database. (see [below for nested schema](#nestedblock--external_schema--redshift_source))
- `data_catalog_source` (Block List, Max: 1) Configures the external schema from the AWS Glue Data Catalog (see [below for nested schema](#nestedblock--external_schema--data_catalog_source))
- `hive_metastore_source` (Block List, Max: 1) Configures the external schema from a Hive Metastore. (see [below for nested schema](#nestedblock--external_schema--hive_metastore_source))
- `rds_mysql_source` (Block List, Max: 1) Configures the external schema to reference data using a federated query to RDS MYSQL or Aurora MySQL. (see [below for nested schema](#nestedblock--external_schema--rds_mysql_source))
- `rds_postgres_source` (Block List, Max: 1) Configures the external schema to reference data using a federated query to RDS POSTGRES or Aurora PostgreSQL. (see [below for nested schema](#nestedblock--external_schema--rds_postgres_source))
- `redshift_source` (Block List, Max: 1) Configures the external schema to reference datashare database. (see [below for nested schema](#nestedblock--external_schema--redshift_source))

Read-Only:

- **database_name** (String) The database where the external schema can be found
- `database_name` (String) The database where the external schema can be found

<a id="nestedblock--external_schema--data_catalog_source"></a>
### Nested Schema for `external_schema.data_catalog_source`

Optional:

- **catalog_role_arns** (List of String) The Amazon Resource Name (ARN) for the IAM roles that your cluster uses for authentication and authorization for the data catalog.
- `catalog_role_arns` (List of String) The Amazon Resource Name (ARN) for the IAM roles that your cluster uses for authentication and authorization for the data catalog.
If this is not specified, Amazon Redshift uses the specified iam_role_arns. The catalog role must have permission to access the Data Catalog in AWS Glue or Athena.
For more information, see https://docs.aws.amazon.com/redshift/latest/dg/c-spectrum-iam-policies.html.

To chain roles, you establish a trust relationship between the roles. A role that assumes another role must have a permissions policy that allows it to assume the specified role.
In turn, the role that passes permissions must have a trust policy that allows it to pass its permissions to another role.
For more information, see https://docs.aws.amazon.com/redshift/latest/mgmt/authorizing-redshift-service.html#authorizing-redshift-service-chaining-roles
- **region** (String) If the external database is defined in an Athena data catalog or the AWS Glue Data Catalog, the AWS Region in which the database is located. This parameter is required if the database is defined in an external Data Catalog.
- `region` (String) If the external database is defined in an Athena data catalog or the AWS Glue Data Catalog, the AWS Region in which the database is located. This parameter is required if the database is defined in an external Data Catalog.

Read-Only:

- **iam_role_arns** (List of String) The Amazon Resource Name (ARN) for the IAM roles that your cluster uses for authentication and authorization.
- `iam_role_arns` (List of String) The Amazon Resource Name (ARN) for the IAM roles that your cluster uses for authentication and authorization.
As a minimum, the IAM roles must have permission to perform a LIST operation on the Amazon S3 bucket to be accessed and a GET operation on the Amazon S3 objects the bucket contains.
If the external database is defined in an Amazon Athena data catalog or the AWS Glue Data Catalog, the IAM role must have permission to access Athena unless catalog_role is specified.
For more information, see https://docs.aws.amazon.com/redshift/latest/dg/c-spectrum-iam-policies.html.
Expand All @@ -86,12 +86,12 @@ Read-Only:

Optional:

- **port** (Number) The port number of the hive metastore. The default port number is 9083.
- `port` (Number) The port number of the hive metastore. The default port number is 9083.

Read-Only:

- **hostname** (String) The hostname of the hive metastore database.
- **iam_role_arns** (List of String) The Amazon Resource Name (ARN) for the IAM roles that your cluster uses for authentication and authorization.
- `hostname` (String) The hostname of the hive metastore database.
- `iam_role_arns` (List of String) The Amazon Resource Name (ARN) for the IAM roles that your cluster uses for authentication and authorization.
As a minimum, the IAM roles must have permission to perform a LIST operation on the Amazon S3 bucket to be accessed and a GET operation on the Amazon S3 objects the bucket contains.
If the external database is defined in an Amazon Athena data catalog or the AWS Glue Data Catalog, the IAM role must have permission to access Athena unless catalog_role is specified.
For more information, see https://docs.aws.amazon.com/redshift/latest/dg/c-spectrum-iam-policies.html.
Expand All @@ -111,12 +111,12 @@ Read-Only:

Optional:

- **port** (Number) The port number of the MySQL database. The default port number is 3306.
- `port` (Number) The port number of the MySQL database. The default port number is 3306.

Read-Only:

- **hostname** (String) The hostname of the head node of the MySQL database replica set.
- **iam_role_arns** (List of String) The Amazon Resource Name (ARN) for the IAM roles that your cluster uses for authentication and authorization.
- `hostname` (String) The hostname of the head node of the MySQL database replica set.
- `iam_role_arns` (List of String) The Amazon Resource Name (ARN) for the IAM roles that your cluster uses for authentication and authorization.
As a minimum, the IAM roles must have permission to perform a LIST operation on the Amazon S3 bucket to be accessed and a GET operation on the Amazon S3 objects the bucket contains.
If the external database is defined in an Amazon Athena data catalog or the AWS Glue Data Catalog, the IAM role must have permission to access Athena unless catalog_role is specified.
For more information, see https://docs.aws.amazon.com/redshift/latest/dg/c-spectrum-iam-policies.html.
Expand All @@ -129,7 +129,7 @@ Read-Only:
To chain roles, you establish a trust relationship between the roles. A role that assumes another role must have a permissions policy that allows it to assume the specified role.
In turn, the role that passes permissions must have a trust policy that allows it to pass its permissions to another role.
For more information, see https://docs.aws.amazon.com/redshift/latest/mgmt/authorizing-redshift-service.html#authorizing-redshift-service-chaining-roles
- **secret_arn** (String) The Amazon Resource Name (ARN) of a supported MySQL database engine secret created using AWS Secrets Manager.
- `secret_arn` (String) The Amazon Resource Name (ARN) of a supported MySQL database engine secret created using AWS Secrets Manager.
For information about how to create and retrieve an ARN for a secret, see https://docs.aws.amazon.com/secretsmanager/latest/userguide/manage_create-basic-secret.html
and https://docs.aws.amazon.com/secretsmanager/latest/userguide/manage_retrieve-secret.html in the AWS Secrets Manager User Guide.

Expand All @@ -139,13 +139,13 @@ Read-Only:

Optional:

- **port** (Number) The port number of the PostgreSQL database. The default port number is 5432.
- **schema** (String) The name of the PostgreSQL schema. The default schema is 'public'
- `port` (Number) The port number of the PostgreSQL database. The default port number is 5432.
- `schema` (String) The name of the PostgreSQL schema. The default schema is 'public'

Read-Only:

- **hostname** (String) The hostname of the head node of the PostgreSQL database replica set.
- **iam_role_arns** (List of String) The Amazon Resource Name (ARN) for the IAM roles that your cluster uses for authentication and authorization.
- `hostname` (String) The hostname of the head node of the PostgreSQL database replica set.
- `iam_role_arns` (List of String) The Amazon Resource Name (ARN) for the IAM roles that your cluster uses for authentication and authorization.
As a minimum, the IAM roles must have permission to perform a LIST operation on the Amazon S3 bucket to be accessed and a GET operation on the Amazon S3 objects the bucket contains.
If the external database is defined in an Amazon Athena data catalog or the AWS Glue Data Catalog, the IAM role must have permission to access Athena unless catalog_role is specified.
For more information, see https://docs.aws.amazon.com/redshift/latest/dg/c-spectrum-iam-policies.html.
Expand All @@ -158,7 +158,7 @@ Read-Only:
To chain roles, you establish a trust relationship between the roles. A role that assumes another role must have a permissions policy that allows it to assume the specified role.
In turn, the role that passes permissions must have a trust policy that allows it to pass its permissions to another role.
For more information, see https://docs.aws.amazon.com/redshift/latest/mgmt/authorizing-redshift-service.html#authorizing-redshift-service-chaining-roles
- **secret_arn** (String) The Amazon Resource Name (ARN) of a supported PostgreSQL database engine secret created using AWS Secrets Manager.
- `secret_arn` (String) The Amazon Resource Name (ARN) of a supported PostgreSQL database engine secret created using AWS Secrets Manager.
For information about how to create and retrieve an ARN for a secret, see https://docs.aws.amazon.com/secretsmanager/latest/userguide/manage_create-basic-secret.html
and https://docs.aws.amazon.com/secretsmanager/latest/userguide/manage_retrieve-secret.html in the AWS Secrets Manager User Guide.

Expand All @@ -168,6 +168,4 @@ Read-Only:

Optional:

- **schema** (String) The name of the datashare schema. The default schema is 'public'.


- `schema` (String) The name of the datashare schema. The default schema is 'public'.
21 changes: 8 additions & 13 deletions docs/data-sources/user.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,14 @@ data "redshift_user" "user" {

### Required

- **name** (String) The name of the user account. The user name can't be `PUBLIC`.

### Optional

- **id** (String) The ID of this resource.
- `name` (String) The name of the user account. The user name can't be `PUBLIC`.

### Read-Only

- **connection_limit** (Number) The maximum number of database connections the user is permitted to have open concurrently. The limit isn't enforced for superusers.
- **create_database** (Boolean) Indicates whether the user is allowed to create new databases.
- **session_timeout** (Number) The maximum time in seconds that a session remains inactive or idle. The range is 60 seconds (one minute) to 1,728,000 seconds (20 days). If no session timeout is set for the user, the cluster setting applies.
- **superuser** (Boolean) Indicates whether the user is a superuser with all database privileges.
- **syslog_access** (String) A clause that specifies the level of access that the user has to the Amazon Redshift system tables and views. If `RESTRICTED` (default) is specified, the user can see only the rows generated by that user in user-visible system tables and views. If `UNRESTRICTED` is specified, the user can see all rows in user-visible system tables and views, including rows generated by another user. `UNRESTRICTED` doesn't give a regular user access to superuser-visible tables. Only superusers can see superuser-visible tables.
- **valid_until** (String) Date and time after which the user's password is no longer valid. By default the password has no time limit.


- `connection_limit` (Number) The maximum number of database connections the user is permitted to have open concurrently. The limit isn't enforced for superusers.
- `create_database` (Boolean) Indicates whether the user is allowed to create new databases.
- `id` (String) The ID of this resource.
- `session_timeout` (Number) The maximum time in seconds that a session remains inactive or idle. The range is 60 seconds (one minute) to 1,728,000 seconds (20 days). If no session timeout is set for the user, the cluster setting applies.
- `superuser` (Boolean) Indicates whether the user is a superuser with all database privileges.
- `syslog_access` (String) A clause that specifies the level of access that the user has to the Amazon Redshift system tables and views. If `RESTRICTED` (default) is specified, the user can see only the rows generated by that user in user-visible system tables and views. If `UNRESTRICTED` is specified, the user can see all rows in user-visible system tables and views, including rows generated by another user. `UNRESTRICTED` doesn't give a regular user access to superuser-visible tables. Only superusers can see superuser-visible tables.
- `valid_until` (String) Date and time after which the user's password is no longer valid. By default the password has no time limit.
Loading

0 comments on commit b7a8f55

Please sign in to comment.