Skip to content

Commit

Permalink
Groundwork new workflows (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
max-lobur committed Mar 28, 2023
1 parent 3e3810a commit 96f5b1b
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 22 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ In general, PRs are welcome. We follow the typical "fork-and-pull" Git workflow.

## Copyrights

Copyright © 2020-2022 [Cloud Posse, LLC](https://cloudposse.com)
Copyright © 2020-2023 [Cloud Posse, LLC](https://cloudposse.com)



Expand Down Expand Up @@ -473,7 +473,7 @@ Check out [our other projects][github], [follow us on twitter][twitter], [apply

[![README Footer][readme_footer_img]][readme_footer_link]
[![Beacon][beacon]][website]

<!-- markdownlint-disable -->
[logo]: https://cloudposse.com/logo-300x69.svg
[docs]: https://cpco.io/docs?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-redshift-cluster&utm_content=docs
[website]: https://cpco.io/homepage?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-redshift-cluster&utm_content=website
Expand Down Expand Up @@ -504,3 +504,4 @@ Check out [our other projects][github], [follow us on twitter][twitter], [apply
[share_googleplus]: https://plus.google.com/share?url=https://github.com/cloudposse/terraform-aws-redshift-cluster
[share_email]: mailto:?subject=terraform-aws-redshift-cluster&body=https://github.com/cloudposse/terraform-aws-redshift-cluster
[beacon]: https://ga-beacon.cloudposse.com/UA-76589703-4/cloudposse/terraform-aws-redshift-cluster?pixel&cs=github&cm=readme&an=terraform-aws-redshift-cluster
<!-- markdownlint-restore -->
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ resource "aws_redshift_cluster" "default" {
cluster_type = var.cluster_type

vpc_security_group_ids = var.vpc_security_group_ids
cluster_subnet_group_name = join("", aws_redshift_subnet_group.default.*.id)
cluster_subnet_group_name = join("", aws_redshift_subnet_group.default[*].id)
availability_zone = var.availability_zone
availability_zone_relocation_enabled = var.availability_zone_relocation_enabled
preferred_maintenance_window = var.preferred_maintenance_window

cluster_parameter_group_name = join("", aws_redshift_parameter_group.default.*.id)
cluster_parameter_group_name = join("", aws_redshift_parameter_group.default[*].id)
automated_snapshot_retention_period = var.automated_snapshot_retention_period
port = var.port
cluster_version = var.engine_version
Expand Down
36 changes: 18 additions & 18 deletions outputs.tf
Original file line number Diff line number Diff line change
@@ -1,89 +1,89 @@
output "id" {
description = "The Redshift Cluster ID"
value = local.enabled ? join("", aws_redshift_cluster.default.*.id) : null
value = local.enabled ? join("", aws_redshift_cluster.default[*].id) : null
}

output "arn" {
description = "Amazon Resource Name (ARN) of cluster"
value = local.enabled ? join("", aws_redshift_cluster.default.*.arn) : null
value = local.enabled ? join("", aws_redshift_cluster.default[*].arn) : null
}

output "cluster_identifier" {
description = "The Cluster Identifier"
value = local.enabled ? join("", aws_redshift_cluster.default.*.cluster_identifier) : null
value = local.enabled ? join("", aws_redshift_cluster.default[*].cluster_identifier) : null
}

output "cluster_revision_number" {
description = "The specific revision number of the database in the cluster"
value = local.enabled ? join("", aws_redshift_cluster.default.*.cluster_revision_number) : null
value = local.enabled ? join("", aws_redshift_cluster.default[*].cluster_revision_number) : null
}

output "cluster_subnet_group_name" {
description = "The name of a cluster subnet group to be associated with this cluster"
value = local.enabled ? join("", aws_redshift_cluster.default.*.cluster_subnet_group_name) : null
value = local.enabled ? join("", aws_redshift_cluster.default[*].cluster_subnet_group_name) : null
}

output "cluster_parameter_group_name" {
description = "The name of the parameter group to be associated with this cluster"
value = local.enabled ? join("", aws_redshift_cluster.default.*.cluster_parameter_group_name) : null
value = local.enabled ? join("", aws_redshift_cluster.default[*].cluster_parameter_group_name) : null
}

output "port" {
description = "The Port the cluster responds on"
value = local.enabled ? join("", aws_redshift_cluster.default.*.port) : null
value = local.enabled ? join("", aws_redshift_cluster.default[*].port) : null
}

output "dns_name" {
description = "The DNS name of the cluster"
value = local.enabled ? join("", aws_redshift_cluster.default.*.dns_name) : null
value = local.enabled ? join("", aws_redshift_cluster.default[*].dns_name) : null
}

output "vpc_security_group_ids" {
description = "The VPC security group IDs associated with the cluster"
value = local.enabled ? concat([], aws_redshift_cluster.default.*.vpc_security_group_ids) : null
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
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
value = local.enabled ? join("", aws_redshift_cluster.default[*].endpoint) : null
}

output "database_name" {
description = "The name of the default database in the Cluster"
value = local.enabled ? join("", aws_redshift_cluster.default.*.database_name) : null
value = local.enabled ? join("", aws_redshift_cluster.default[*].database_name) : null
}

output "node_type" {
description = "The type of nodes in the cluster"
value = local.enabled ? join("", aws_redshift_cluster.default.*.node_type) : null
value = local.enabled ? join("", aws_redshift_cluster.default[*].node_type) : null
}

output "cluster_type" {
description = "The cluster type"
value = local.enabled ? join("", aws_redshift_cluster.default.*.cluster_type) : null
value = local.enabled ? join("", aws_redshift_cluster.default[*].cluster_type) : null
}

output "redshift_subnet_group_arn" {
description = "Amazon Resource Name (ARN) of the Redshift Subnet group name"
value = local.enabled ? join("", aws_redshift_subnet_group.default.*.arn) : null
value = local.enabled ? join("", aws_redshift_subnet_group.default[*].arn) : null
}

output "redshift_subnet_group_id" {
description = "The Redshift Subnet group ID"
value = local.enabled ? join("", aws_redshift_subnet_group.default.*.id) : null
value = local.enabled ? join("", aws_redshift_subnet_group.default[*].id) : null
}

output "redshift_parameter_group_arn" {
description = "Amazon Resource Name (ARN) of the Redshift parameter group"
value = local.enabled ? join("", aws_redshift_parameter_group.default.*.arn) : null
value = local.enabled ? join("", aws_redshift_parameter_group.default[*].arn) : null
}

output "redshift_parameter_group_id" {
description = "The Redshift parameter group ID"
value = local.enabled ? join("", aws_redshift_parameter_group.default.*.id) : null
value = local.enabled ? join("", aws_redshift_parameter_group.default[*].id) : null
}

0 comments on commit 96f5b1b

Please sign in to comment.