Skip to content

Commit

Permalink
Remove cluster_security_groups (#17)
Browse files Browse the repository at this point in the history
* Remove cluster_security_groups

cluster_security_groups was removed in AWS Provider v5
https://registry.terraform.io/providers/BigEyeLabs/aws-test/latest/docs/guides/version-5-upgrade#data-sourceaws_redshift_cluster

* Remove from example

* Update docs

* 3 -> 5

* Update
  • Loading branch information
v3rm0n committed Mar 4, 2024
1 parent 51bb789 commit 972ec5e
Show file tree
Hide file tree
Showing 7 changed files with 96 additions and 209 deletions.
284 changes: 91 additions & 193 deletions README.md

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions docs/terraform.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.14 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.0 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.0 |

## Providers

| Name | Version |
|------|---------|
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 3.0 |
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.0 |

## Modules

Expand Down Expand Up @@ -88,7 +88,6 @@
| <a name="output_cluster_identifier"></a> [cluster\_identifier](#output\_cluster\_identifier) | The Cluster Identifier |
| <a name="output_cluster_parameter_group_name"></a> [cluster\_parameter\_group\_name](#output\_cluster\_parameter\_group\_name) | The name of the parameter group to be associated with this cluster |
| <a name="output_cluster_revision_number"></a> [cluster\_revision\_number](#output\_cluster\_revision\_number) | The specific revision number of the database in the cluster |
| <a name="output_cluster_security_groups"></a> [cluster\_security\_groups](#output\_cluster\_security\_groups) | The security groups associated with the cluster |
| <a name="output_cluster_subnet_group_name"></a> [cluster\_subnet\_group\_name](#output\_cluster\_subnet\_group\_name) | The name of a cluster subnet group to be associated with this cluster |
| <a name="output_cluster_type"></a> [cluster\_type](#output\_cluster\_type) | The cluster type |
| <a name="output_database_name"></a> [database\_name](#output\_database\_name) | The name of the default database in the Cluster |
Expand Down
2 changes: 1 addition & 1 deletion examples/complete/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ provider "aws" {

module "vpc" {
source = "cloudposse/vpc/aws"
version = "1.1.0"
version = "2.1.1"

ipv4_primary_cidr_block = "172.19.0.0/16"

Expand Down
5 changes: 0 additions & 5 deletions examples/complete/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,6 @@ output "vpc_security_group_ids" {
value = module.redshift_cluster.vpc_security_group_ids
}

output "cluster_security_groups" {
description = "The security groups associated with the cluster"
value = module.redshift_cluster.cluster_security_groups
}

output "endpoint" {
description = "The connection endpoint"
value = module.redshift_cluster.endpoint
Expand Down
2 changes: 1 addition & 1 deletion examples/complete/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 3.0"
version = ">= 5.0"
}
}
}
5 changes: 0 additions & 5 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,6 @@ output "vpc_security_group_ids" {
value = local.enabled ? concat([], aws_redshift_cluster.default[*].vpc_security_group_ids) : null
}

output "cluster_security_groups" {
description = "The security groups associated with the cluster"
value = local.enabled ? concat([], aws_redshift_cluster.default[*].cluster_security_groups) : null
}

output "endpoint" {
description = "The connection endpoint"
value = local.enabled ? join("", aws_redshift_cluster.default[*].endpoint) : null
Expand Down
2 changes: 1 addition & 1 deletion versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 3.0"
version = ">= 5.0"
}
}
}

0 comments on commit 972ec5e

Please sign in to comment.