{"id":20801894,"url":"https://github.com/philips-software/terraform-aws-rds","last_synced_at":"2025-05-11T16:32:18.182Z","repository":{"id":56469619,"uuid":"138074817","full_name":"philips-software/terraform-aws-rds","owner":"philips-software","description":"Terraform module to create an AWS RDS instance","archived":true,"fork":false,"pushed_at":"2020-11-05T14:50:06.000Z","size":27,"stargazers_count":5,"open_issues_count":0,"forks_count":6,"subscribers_count":6,"default_branch":"develop","last_synced_at":"2025-04-04T02:26:30.942Z","etag":null,"topics":["aws","infrastructure-as-code","terraform"],"latest_commit_sha":null,"homepage":null,"language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/philips-software.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-20T19:06:18.000Z","updated_at":"2025-01-13T16:04:30.000Z","dependencies_parsed_at":"2022-08-15T19:20:35.732Z","dependency_job_id":null,"html_url":"https://github.com/philips-software/terraform-aws-rds","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philips-software%2Fterraform-aws-rds","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philips-software%2Fterraform-aws-rds/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philips-software%2Fterraform-aws-rds/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philips-software%2Fterraform-aws-rds/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/philips-software","download_url":"https://codeload.github.com/philips-software/terraform-aws-rds/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253595731,"owners_count":21933442,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","infrastructure-as-code","terraform"],"created_at":"2024-11-17T18:24:59.929Z","updated_at":"2025-05-11T16:32:18.169Z","avatar_url":"https://github.com/philips-software.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terraform module for creating an AWS RDS instance.\n\nThis module provides the opportunity to quickly create an AWS DB Instance.\nIt has the following capabilities:\n\n- automated backup with retention periods\n- settings on the backup window\n- prevents deletion by providing a final snapshot\n- database encryption\n\n\n## Terraform version\n\n- Terraform 0.12: Pin module to `~\u003e 2+`, submit pull request to branch `develop`\n- Terraform 0.11: Pin module to `~\u003e 1.x`, submit pull request to branch `terraform011`\n\n\n## Example usages:\nSee also the [full examples](./examples).\n\n```\nmodule \"db\" {\n  source = \"git::https://github.com/philips-software/terraform-aws-rds.git?ref=2.0.0\"\n\n  name                    = var.name\n  environment             = var.environment\n  vpc_id                  = module.vpc.vpc_id\n  subnet_ids              = join(\",\", module.vpc.private_subnets)\n  vpc_private_dns_zone_id = module.vpc.private_dns_zone_id\n\n  engine         = \"postgres\"\n  engine_version = \"11.2\"\n  port           = 5432\n\n  username = \"abc\"\n  password = \"nososecret\"\n}\n\n```\n\n## Requirements\n\n| Name | Version |\n|------|---------|\n| terraform | \u003e= 0.12 |\n\n## Providers\n\n| Name | Version |\n|------|---------|\n| aws | n/a |\n\n## Inputs\n\n| Name | Description | Type | Default | Required |\n|------|-------------|------|---------|:--------:|\n| allocated\\_storage | (Optional) The amount of allocated storage. The default is 10GB if not specified | `number` | `10` | no |\n| allow\\_major\\_version\\_upgrade | (Optional) Indicates that major version upgrades are allowed. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible. | `bool` | `false` | no |\n| apply\\_immediately | (Optional) Specifies whether any database modifications are applied immediately, or during the next maintenance window. Default is false. See Amazon RDS Documentation for more information. | `bool` | `false` | no |\n| auto\\_minor\\_version\\_upgrade | (Optional) Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window. Defaults to true. | `bool` | `true` | no |\n| backup\\_retention\\_period | (Optional) Automatically keep backups for point-in-time recovery for XX days(1-35). When providing '0' as a value backups will be disabled.The default is 14 if not specified. | `number` | `7` | no |\n| backup\\_window | (Optional) The daily time range (in UTC) during which automated backups are created if they are enabled. Example: '09:46-10:16'. Must not overlap with maintenance\\_window. The default is '00:00-02:00' if not specified | `string` | `\"00:00-02:00\"` | no |\n| engine | The database engine to use | `string` | n/a | yes |\n| engine\\_version | The database engine\\_version | `string` | n/a | yes |\n| environment | Name of the environment (e.g. digilabs-projextX-dev); will be prefixed to all resources | `string` | n/a | yes |\n| final\\_snapshot\\_identifier\\_suffix | Suffix for the final snapshot, makes it possible to add custom snapshot identifiers | `string` | `\"-final-snapshot\"` | no |\n| instance\\_class | The instance type of the RDS instance. The default is 'db.t2.small' to allow encryption. The micro versions cannot be encrypted | `string` | `\"db.t2.small\"` | no |\n| name | Name of the database instance | `string` | n/a | yes |\n| password | The database password | `string` | n/a | yes |\n| port | The database port | `number` | n/a | yes |\n| skip\\_final\\_snapshot | (Optional) Determines whether a final DB snapshot is created before the DB instance is deleted. If true is specified, no DBSnapshot is created. If false is specified, a DB snapshot is created before the DB instance is deleted, using the value from final\\_snapshot\\_identifier. Default is false. | `bool` | `false` | no |\n| storage\\_encrypted | (Optional) Specifies whether the DB instance is encrypted. The default is false if not specified. | `bool` | `true` | no |\n| storage\\_type | (Optional) One of 'standard' (magnetic), 'gp2' (general purpose SSD), or 'io1' (provisioned IOPS SSD). The default is 'gp2' if not specified. | `string` | `\"gp2\"` | no |\n| subnet\\_ids | IDs of the subnets, seperated by a , | `list` | n/a | yes |\n| tags | A map of tags to add to the resources | `map(string)` | `{}` | no |\n| username | The database username | `string` | n/a | yes |\n| vpc\\_id | The VPC to launch the instance in (e.g. vpc-66ecaa02) | `string` | n/a | yes |\n| vpc\\_private\\_dns\\_zone\\_id | Creates a route 53 entry for the private zone. | `string` | n/a | yes |\n\n## Outputs\n\n| Name | Description |\n|------|-------------|\n| endpoint | The actual endpoint for the database. |\n| fqdn | he private DNS record for the database. |\n\n\n## Automated checks\nCurrently the automated checks are limited. In CI the following checks are done for the root and each example.\n- lint: `terraform validate` and `terraform fmt`\n- basic init / get check: `terraform init -get -backend=false -input=false`\n\n## Generation variable documentation\nA markdown table for variables can be generated as follow. Generation requires awk and terraform-docs installed.\n\n## Philips Forest\n\nThis module is part of the Philips Forest.\n\n```\n                                                     ___                   _\n                                                    / __\\__  _ __ ___  ___| |_\n                                                   / _\\/ _ \\| '__/ _ \\/ __| __|\n                                                  / / | (_) | | |  __/\\__ \\ |_\n                                                  \\/   \\___/|_|  \\___||___/\\__|  \n\n                                                                 Infrastructure\n```\n\nTalk to the forestkeepers in the `forest`-channel on Slack.\n\n[![Slack](https://philips-software-slackin.now.sh/badge.svg)](https://philips-software-slackin.now.sh)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphilips-software%2Fterraform-aws-rds","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphilips-software%2Fterraform-aws-rds","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphilips-software%2Fterraform-aws-rds/lists"}