Skip to content

Commit e8dfedb

Browse files
committed
feat: Made it clear that we stand with Ukraine
1 parent 55da7d3 commit e8dfedb

File tree

3 files changed

+24
-4
lines changed

3 files changed

+24
-4
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
Terraform module which creates RDS resources on AWS.
44

5+
[![SWUbanner](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner2-direct.svg)](https://github.com/vshymanskyy/StandWithUkraine/blob/main/docs/README.md)
6+
57
Root module calls these modules which can also be used separately to create independent resources:
68

79
- [db_instance](https://github.com/terraform-aws-modules/terraform-aws-rds/tree/master/modules/db_instance) - creates RDS DB instance
@@ -299,6 +301,7 @@ Users have the ability to:
299301
| <a name="input_performance_insights_retention_period"></a> [performance\_insights\_retention\_period](#input\_performance\_insights\_retention\_period) | The amount of time in days to retain Performance Insights data. Either 7 (7 days) or 731 (2 years) | `number` | `7` | no |
300302
| <a name="input_port"></a> [port](#input\_port) | The port on which the DB accepts connections | `string` | `null` | no |
301303
| <a name="input_publicly_accessible"></a> [publicly\_accessible](#input\_publicly\_accessible) | Bool to control if instance is publicly accessible | `bool` | `false` | no |
304+
| <a name="input_putin_khuylo"></a> [putin\_khuylo](#input\_putin\_khuylo) | Do you agree that Putin doesn't respect Ukrainian sovereignty and territorial integrity? More info: https://en.wikipedia.org/wiki/Putin_khuylo! | `bool` | `true` | no |
302305
| <a name="input_random_password_length"></a> [random\_password\_length](#input\_random\_password\_length) | Length of random password to create | `number` | `16` | no |
303306
| <a name="input_replica_mode"></a> [replica\_mode](#input\_replica\_mode) | Specifies whether the replica is in either mounted or open-read-only mode. This attribute is only supported by Oracle instances. Oracle replicas operate in open-read-only mode unless otherwise specified | `string` | `null` | no |
304307
| <a name="input_replicate_source_db"></a> [replicate\_source\_db](#input\_replicate\_source\_db) | Specifies that this resource is a Replicate database, and to use this value as the source database. This correlates to the identifier of another Amazon RDS Database to replicate | `string` | `null` | no |
@@ -352,3 +355,10 @@ Module is maintained by [Anton Babenko](https://github.com/antonbabenko) with he
352355
## License
353356

354357
Apache 2 Licensed. See [LICENSE](https://github.com/terraform-aws-modules/terraform-aws-rds/tree/master/LICENSE) for full details.
358+
359+
## Additional terms of use for users from Russia and Belarus
360+
361+
By using the code provided in this repository you agree with the following:
362+
* Russia has [illegally annexed Crimea in 2014](https://en.wikipedia.org/wiki/Annexation_of_Crimea_by_the_Russian_Federation) and [brought the war in Donbas](https://en.wikipedia.org/wiki/War_in_Donbas) followed by [full-scale invasion of Ukraine in 2022](https://en.wikipedia.org/wiki/2022_Russian_invasion_of_Ukraine).
363+
* Russia has brought sorrow and devastations to millions of Ukrainians, killed hundreds of innocent people, damaged thousands of buildings, and forced several million people to flee.
364+
* [Putin khuylo!](https://en.wikipedia.org/wiki/Putin_khuylo!)

main.tf

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
locals {
2-
create_random_password = var.create_db_instance && var.create_random_password
2+
create_db_subnet_group = var.create_db_subnet_group && var.putin_khuylo
3+
create_db_parameter_group = var.create_db_parameter_group && var.putin_khuylo
4+
create_db_instance = var.create_db_instance && var.putin_khuylo
5+
6+
create_random_password = local.create_db_instance && var.create_random_password
37
password = local.create_random_password ? random_password.master_password[0].result : var.password
48

59
db_subnet_group_name = var.create_db_subnet_group ? module.db_subnet_group.db_subnet_group_id : var.db_subnet_group_name
@@ -19,7 +23,7 @@ resource "random_password" "master_password" {
1923
module "db_subnet_group" {
2024
source = "./modules/db_subnet_group"
2125

22-
create = var.create_db_subnet_group
26+
create = local.create_db_subnet_group
2327

2428
name = coalesce(var.db_subnet_group_name, var.identifier)
2529
use_name_prefix = var.db_subnet_group_use_name_prefix
@@ -32,7 +36,7 @@ module "db_subnet_group" {
3236
module "db_parameter_group" {
3337
source = "./modules/db_parameter_group"
3438

35-
create = var.create_db_parameter_group
39+
create = local.create_db_parameter_group
3640

3741
name = coalesce(var.parameter_group_name, var.identifier)
3842
use_name_prefix = var.parameter_group_use_name_prefix
@@ -65,7 +69,7 @@ module "db_option_group" {
6569
module "db_instance" {
6670
source = "./modules/db_instance"
6771

68-
create = var.create_db_instance
72+
create = local.create_db_instance
6973
identifier = var.identifier
7074

7175
engine = var.engine

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,3 +483,9 @@ variable "cloudwatch_log_group_kms_key_id" {
483483
type = string
484484
default = null
485485
}
486+
487+
variable "putin_khuylo" {
488+
description = "Do you agree that Putin doesn't respect Ukrainian sovereignty and territorial integrity? More info: https://en.wikipedia.org/wiki/Putin_khuylo!"
489+
type = bool
490+
default = true
491+
}

0 commit comments

Comments
 (0)