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
createvariable 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_scheduleresource including the variables and outputs used to support itaws_redshift_snapshot_schedule_associationresource including the variables and outputs used to support itaws_redshift_scheduled_actionresource including support for creating the IAM role and policies plus the associated variables and outputs to supportaws_redshift_usage_limitresource including the variables and outputs used to support itaws_redshift_authentication_profileresource including the variables and outputs used to support itaws_redshift_cluster_iam_rolesresource including the variables and outputs used to support it
Modified
number_of_nodesdefault value of3changed to1cluster_versiondefault value of"1.0"changed tonullmaster_usernamedefault value of"awsuser"addedencrypteddefault value changed totrue- By default, a randomly generated password of length
16is used for themaster_password master_passwordvariable 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_identifierhave been replaced by the use ofparameter_group_parameterswhere 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_prefixhave been replaced with the top level variableloggingwhere their equivalent parametersenable,bucket_name, ands3_key_prefixare set, and support for new parameterslog_destination_type, andlog_exportshave been added.snapshot_copy_destination_region,automated_snapshot_retention_period,snapshot_copy_grant_namehave been replaced with the top level variablesnapshot_copywhere their equivalent parametersdestination_region,retention_period, andgrant_nameare set.iam_roleshas been renamed toiam_role_arnsto match API ofaws_redshift_cluster_iam_rolesresource 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_identifierwas used as the name of the subnet group. This has now been correctedsubnets->subnet_idsto match AWS provider
- Added variables:
-
Cluster
createwhich affects all resourcescreate_random_passwordandrandom_password_lengthto support generating a random password for themaster_passwordapply_immediatelyaqua_configuration_statusavailability_zoneavailability_zone_relocation_enableddefault_iam_role_arnmaintenance_track_namemanual_snapshot_retention_periodcluster_timeoutsto support settingcreate,update, anddeletetimeout durations
-
Parameter Group
create_parameter_groupwas added to replacelength(var.parameter_group_name) > 0logicparameter_group_nameparameter_group_parameterswhich allows users to set any number of parameters, replacing the previously hardcoed parametersparameter_group_tags
-
Subnet Group
create_subnet_groupwas added to replacevar.redshift_subnet_group_name == ""logicsubnet_group_descriptionwas 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_nameparameter_group_arnsubnet_group_arn
See the upgrade guide for all details.