-
-
Notifications
You must be signed in to change notification settings - Fork 602
feat!: Upgrade AWS provider and min required Terraform version to 6.18 and 1.11 respectively
#525
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
feat!: Upgrade AWS provider and min required Terraform version to 6.18 and 1.11 respectively
#525
Conversation
…18` and `1.11` respectively
…nto single top level variable
…red_backup_window` to `null`
…`master_password_wo_version`
…te `aws_security_group_ingress_rule`/`aws_security_group_egress_rule`
17cca40 to
696f58f
Compare
| type = object({ | ||
| create = optional(string) | ||
| }) | ||
| default = null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we need a dynamic block for timeouts or make the default {}.
This produces an error when null:
╷
│ Error: Attempt to get attribute from null value
│
│ on ../../modules/dsql/main.tf line 41, in resource "aws_dsql_cluster_peering" "this":
│ 41: create = var.timeouts.create
│ ├────────────────
│ │ var.timeouts is null
│
│ This value is null, so it does not have any attributes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you - fixed in 42cb1ad
examples/dsql/main.tf
Outdated
| clusters = [module.dsql_cluster_1.arn] | ||
|
|
||
| tags = merge(local.tags, { Name = local.name }) | ||
| witness_region = local.region |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The DSQL's witness region should be the same between the two clusters and also can't be the same as the regions the clusters are in. We would need to keep the region2 local var and use that for region and keep witness_region = local.witness_region in this second cluster.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks - I have zero understanding of DSQL 😅 . I believe its correct now and matches this example https://docs.aws.amazon.com/aurora-dsql/latest/userguide/multi-region-aws-cli.html in 42cb1ad
main.tf
Outdated
| publicly_accessible = var.shard_group.publicly_accessible | ||
| tags = merge(var.tags, var.shard_group.tags) | ||
|
|
||
| timeouts { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar here I think needs to be a dynamic block for timeouts, got an error with the default set to null.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you - fixed in 42cb1ad
antonbabenko
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have anything to add.
@magreenbaum Thank you for helping with the review!
449d8c6 to
42cb1ad
Compare
Description
List of backwards incompatible changes
v1.11is now minimum supported version to support write-only (wo_*) attributes.v6.18is now minimum supported versionaws_security_group_ruleresources has been replaced withaws_vpc_security_group_ingress_ruleandaws_vpc_security_group_egress_ruleto allow for more flexibility in defining security group rules.master_passwordis no longer supported and only the write-only equivalent is supported (master_password_woandmaster_password_wo_version) (#513)security_group_ruleshas been split intosecurity_group_ingress_rulesandsecurity_group_egress_rulesto better match the AWS API and allow for more flexibility in defining security group rulesAdditional changes
Added
regionargument to specify the AWS region for the resources created if different from the provider region.Modified
anytypecopy_tags_to_snapshotdefault value is nowtrue(#521)db_cluster_parameter_group_parameterswas previously of typelist(map(...)), now of typemap(object(...))withnamebeing optional and defaulting to the map key if not providedpreferred_maintenance_windowandpreferred_backup_windowdefault values are nownull(#524)Removed
Variable and output changes
Removed variables:
auto_minor_version_upgrade-> still available within theinstancesvariable definitionca_cert_identifier-> available within theinstancesvariable definitionmonitoring_interval-> still available within theinstancesvariable definitionperformance_insights_enabled-> still available within theinstancesvariable definitionperformance_insights_kms_key_id-> still available within theinstancesvariable definitionperformance_insights_retention_period-> still available within theinstancesvariable definitioniam_role_managed_policy_arns-> deprecated argument onaws_iam_roleresourceiam_role_force_detach_policies-> hardcode totrueRenamed variables:
instance_class->cluster_instance_classdb_cluster_db_instance_parameter_group_name->cluster_db_instance_parameter_group_namerole_associationswas previouslyiam_rolesmaster_passwordreplaced withmaster_password_woandmaster_password_wo_versionshard_groupvariable:create_shard_groupremoved - setshard_grouptonullto disable or provide an object to enablecompute_redundancy->shard_group.compute_redundancydb_shard_group_identifier->shard_group.identifiermax_acu->shard_group.max_acumin_acu->shard_group.min_acupublicly_accessible->shard_group.publicly_accessibleshard_group_tags->shard_group.tagsshard_group_timeouts->shard_group.timeoutscluster_activity_streamvariable:create_db_cluster_activity_streamremoved - setcluster_activity_streamtonullto disable or provide an object to enabledb_cluster_activity_stream_mode->cluster_activity_stream.modedb_cluster_activity_stream_kms_key_id->cluster_activity_stream.kms_key_idengine_native_audit_fields_included->cluster_activity_stream.include_audit_fieldscluster_parameter_groupvariable:create_db_cluster_parameter_groupremoved - setcluster_parameter_grouptonullto disable or provide an object to enabledb_cluster_parameter_group_name->cluster_parameter_group.namedb_cluster_parameter_group_use_name_prefix->cluster_parameter_group.use_name_prefixdb_cluster_parameter_group_description->cluster_parameter_group.descriptiondb_cluster_parameter_group_family->cluster_parameter_group.familydb_cluster_parameter_group_parameters->cluster_parameter_group.parametersdb_parameter_groupvariable:create_db_parameter_groupremoved - setdb_parameter_grouptonullto disable or provide an object to enabledb_parameter_group_name->db_parameter_group.namecluster_parameter_group_namehas been retained for when users want to provide an existing cluster parameter group name.db_parameter_group_use_name_prefix->db_parameter_group.use_name_prefixdb_parameter_group_description->db_parameter_group.descriptiondb_parameter_group_family->db_parameter_group.familydb_parameter_group_parameters->db_parameter_group.parametersAdded variables:
regionMotivation and Context
Breaking Changes
How Has This Been Tested?
examples/*to demonstrate and validate my change(s)examples/*projectspre-commit run -aon my pull request