v4.0.0
4.0.0 (2022-06-14)
⚠ BREAKING CHANGES
- Refactor module to align with current standards, add missing addtional Redshift resources to module (#61)
List of backwards incompatible changes
- Minimum supported version of Terraform AWS provider updated to v4.17 to support latest resources
- Minimum supported version of Terraform updated to v1.0
create
variable added to control whether all resources are created or not. This means that all resources now use the zeroth index[0]
in the resource name
Additional changes
Added
- Support for generating a random password for the
master_password
aws_redshift_snapshot_schedule
resource including the variables and outputs used to support itaws_redshift_snapshot_schedule_association
resource including the variables and outputs used to support itaws_redshift_scheduled_action
resource including support for creating the IAM role and policies plus the associated variables and outputs to supportaws_redshift_usage_limit
resource including the variables and outputs used to support itaws_redshift_authentication_profile
resource including the variables and outputs used to support itaws_redshift_cluster_iam_roles
resource including the variables and outputs used to support it
Modified
number_of_nodes
default value of3
changed to1
cluster_version
default value of"1.0"
changed tonull
master_username
default value of"awsuser"
addedencrypted
default value changed totrue
- By default, a randomly generated password of length
16
is used for themaster_password
master_password
variable marked assensitive
Removed
- None
Variable and output changes
- Removed variables:
- Parameter Group
wlm_json_configuration
,require_ssl
,use_fips_ssl
,enable_user_activity_logging
,max_concurrency_scaling_clusters
,enable_case_sensitive_identifier
have been replaced by the use ofparameter_group_parameters
where any/all of these values can be set as well as others not listed here.
- Renamed variables:
-
Cluster
- Cluster variables that per the AWS provider do not start with
cluster_
have been renamed to remove thecluster_
prefix. enable_logging
,logging_bucket_name
, andlogging_s3_key_prefix
have been replaced with the top level variablelogging
where their equivalent parametersenable
,bucket_name
, ands3_key_prefix
are set, and support for new parameterslog_destination_type
, andlog_exports
have been added.snapshot_copy_destination_region
,automated_snapshot_retention_period
,snapshot_copy_grant_name
have been replaced with the top level variablesnapshot_copy
where their equivalent parametersdestination_region
,retention_period
, andgrant_name
are set.iam_roles
has been renamed toiam_role_arns
to match API ofaws_redshift_cluster_iam_roles
resource now used
- Cluster variables that per the AWS provider do not start with
-
Parameter Group
cluster_parameter_group
->parameter_group_family
-
Subnet Group
redshift_subnet_group_name
->subnet_group_name
: Note: this was not previously used in the manner it was intended. Thecluster_identifier
was used as the name of the subnet group. This has now been correctedsubnets
->subnet_ids
to match AWS provider
- Added variables:
-
Cluster
create
which affects all resourcescreate_random_password
andrandom_password_length
to support generating a random password for themaster_password
apply_immediately
aqua_configuration_status
availability_zone
availability_zone_relocation_enabled
default_iam_role_arn
maintenance_track_name
manual_snapshot_retention_period
cluster_timeouts
to support settingcreate
,update
, anddelete
timeout durations
-
Parameter Group
create_parameter_group
was added to replacelength(var.parameter_group_name) > 0
logicparameter_group_name
parameter_group_parameters
which allows users to set any number of parameters, replacing the previously hardcoed parametersparameter_group_tags
-
Subnet Group
create_subnet_group
was added to replacevar.redshift_subnet_group_name == ""
logicsubnet_group_description
was added to replace the hardcoded description used previouslysubnet_group_tags
-
Removed outputs:
- None
-
Renamed outputs:
- The preceding
redshift_
prefix has been removed from all outputs
- The preceding
-
Added outputs:
cluster_dns_name
parameter_group_arn
subnet_group_arn
See the upgrade guide for all details.