Skip to content

Commit 2b5e16e

Browse files
authored
Rename repo (#3)
* Rename repos, fix `README.md` * Fix `README.md`
1 parent 43d4a45 commit 2b5e16e

File tree

4 files changed

+17
-13
lines changed

4 files changed

+17
-13
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
*.tfstate.backup
44

55
# Module directory
6-
.terraform/
7-
6+
.terraform
87
.idea
98
*.iml

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
# tf_rds
2-
Terraform module for AWS RDS
1+
# terraform-aws-rds
2+
3+
Terraform module to provision AWS [`RDS`](https://aws.amazon.com/rds/) instances
34

45

56
The module will create:
@@ -60,9 +61,9 @@ The module will create:
6061
## Usage
6162

6263

63-
```
64+
```hcl
6465
module "rds_instance" {
65-
source = "git::https://github.com/cloudposse/tf_rds.git?ref=tags/0.1.0"
66+
source = "git::https://github.com/cloudposse/terraform-aws-rds.git?ref=master"
6667
stage = "prod"
6768
namespace = "cloudposse"
6869
name = "app"
@@ -95,6 +96,6 @@ module "rds_instance" {
9596
```
9697

9798

98-
# License
99+
## License
99100

100-
Apache 2 Licensed. See LICENSE for full details.
101+
Apache 2 License. See [`LICENSE`](LICENSE) for full details.

main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module "label" {
2-
source = "git::https://github.com/cloudposse/tf_label.git?ref=tags/0.2.0"
2+
source = "git::https://github.com/cloudposse/terraform-null-label.git?ref=tags/0.2.1"
33
namespace = "${var.namespace}"
44
name = "${var.name}"
55
stage = "${var.stage}"
@@ -67,11 +67,11 @@ resource "aws_security_group" "default" {
6767
cidr_blocks = ["0.0.0.0/0"]
6868
}
6969

70-
tags = "${module.label.tags}"
70+
tags = "${module.label.tags}"
7171
}
7272

7373
module "dns_host_name" {
74-
source = "git::https://github.com/cloudposse/tf_hostname.git?ref=tags/0.1.0"
74+
source = "git::https://github.com/cloudposse/terraform-aws-route53-cluster-hostname.git?ref=tags/0.1.1"
7575
namespace = "${var.namespace}"
7676
name = "${var.host_name}"
7777
stage = "${var.stage}"

variables.tf

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ variable "name" {
1010
default = "app"
1111
}
1212

13-
variable "dns_zone_id" {
14-
}
13+
variable "dns_zone_id" {}
1514

1615
variable "host_name" {
1716
default = "db"
@@ -46,11 +45,13 @@ variable "iops" {
4645

4746
variable "allocated_storage" {
4847
description = "The allocated storage in GBs"
48+
4949
# Number, e.g. 10
5050
}
5151

5252
variable "engine" {
5353
description = "Database engine type"
54+
5455
# http://docs.aws.amazon.com/cli/latest/reference/rds/create-db-instance.html
5556
# - mysql
5657
# - postgres
@@ -60,18 +61,21 @@ variable "engine" {
6061

6162
variable "engine_version" {
6263
description = "Database engine version, depends on engine type"
64+
6365
# http://docs.aws.amazon.com/cli/latest/reference/rds/create-db-instance.html
6466
}
6567

6668
variable "instance_class" {
6769
description = "Class of RDS instance"
70+
6871
# https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html
6972
}
7073

7174
# This is for custom parameters to be passed to the DB
7275
# We're "cloning" default ones, but we need to specify which should be copied
7376
variable "db_parameter_group" {
7477
description = "Parameter group, depends on DB engine used"
78+
7579
# "mysql5.6"
7680
# "postgres9.5"
7781
}

0 commit comments

Comments
 (0)