File tree Expand file tree Collapse file tree 4 files changed +17
-13
lines changed Expand file tree Collapse file tree 4 files changed +17
-13
lines changed Original file line number Diff line number Diff line change 3
3
* .tfstate.backup
4
4
5
5
# Module directory
6
- .terraform /
7
-
6
+ .terraform
8
7
.idea
9
8
* .iml
Original file line number Diff line number Diff line change 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
3
4
4
5
5
6
The module will create:
@@ -60,9 +61,9 @@ The module will create:
60
61
## Usage
61
62
62
63
63
- ```
64
+ ``` hcl
64
65
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 "
66
67
stage = "prod"
67
68
namespace = "cloudposse"
68
69
name = "app"
@@ -95,6 +96,6 @@ module "rds_instance" {
95
96
```
96
97
97
98
98
- # License
99
+ ## License
99
100
100
- Apache 2 Licensed . See LICENSE for full details.
101
+ Apache 2 License . See [ ` LICENSE ` ] ( LICENSE ) for full details.
Original file line number Diff line number Diff line change 1
1
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 "
3
3
namespace = " ${ var . namespace } "
4
4
name = " ${ var . name } "
5
5
stage = " ${ var . stage } "
@@ -67,11 +67,11 @@ resource "aws_security_group" "default" {
67
67
cidr_blocks = [" 0.0.0.0/0" ]
68
68
}
69
69
70
- tags = " ${ module . label . tags } "
70
+ tags = " ${ module . label . tags } "
71
71
}
72
72
73
73
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 "
75
75
namespace = " ${ var . namespace } "
76
76
name = " ${ var . host_name } "
77
77
stage = " ${ var . stage } "
Original file line number Diff line number Diff line change @@ -10,8 +10,7 @@ variable "name" {
10
10
default = " app"
11
11
}
12
12
13
- variable "dns_zone_id" {
14
- }
13
+ variable "dns_zone_id" {}
15
14
16
15
variable "host_name" {
17
16
default = " db"
@@ -46,11 +45,13 @@ variable "iops" {
46
45
47
46
variable "allocated_storage" {
48
47
description = " The allocated storage in GBs"
48
+
49
49
# Number, e.g. 10
50
50
}
51
51
52
52
variable "engine" {
53
53
description = " Database engine type"
54
+
54
55
# http://docs.aws.amazon.com/cli/latest/reference/rds/create-db-instance.html
55
56
# - mysql
56
57
# - postgres
@@ -60,18 +61,21 @@ variable "engine" {
60
61
61
62
variable "engine_version" {
62
63
description = " Database engine version, depends on engine type"
64
+
63
65
# http://docs.aws.amazon.com/cli/latest/reference/rds/create-db-instance.html
64
66
}
65
67
66
68
variable "instance_class" {
67
69
description = " Class of RDS instance"
70
+
68
71
# https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html
69
72
}
70
73
71
74
# This is for custom parameters to be passed to the DB
72
75
# We're "cloning" default ones, but we need to specify which should be copied
73
76
variable "db_parameter_group" {
74
77
description = " Parameter group, depends on DB engine used"
78
+
75
79
# "mysql5.6"
76
80
# "postgres9.5"
77
81
}
You can’t perform that action at this time.
0 commit comments