Skip to content

Commit ff87e20

Browse files
committed
feat: Update replication group configuration and move from sub-module to root module
1 parent 9e910cc commit ff87e20

File tree

31 files changed

+280
-604
lines changed

31 files changed

+280
-604
lines changed

README.md

Lines changed: 28 additions & 17 deletions
Large diffs are not rendered by default.

examples/.DS_Store

6 KB
Binary file not shown.

examples/complete-memcached-cluster/README.md

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,16 @@ Note that this example may create resources which cost money. Run `terraform des
1919
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
2020
## Requirements
2121

22-
No requirements.
22+
| Name | Version |
23+
|------|---------|
24+
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0 |
25+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.23 |
2326

2427
## Providers
2528

2629
| Name | Version |
2730
|------|---------|
28-
| <a name="provider_aws"></a> [aws](#provider\_aws) | n/a |
31+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.23 |
2932

3033
## Modules
3134

@@ -37,7 +40,6 @@ No requirements.
3740

3841
| Name | Type |
3942
|------|------|
40-
| [aws_security_group.default](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/security_group) | data source |
4143
| [aws_subnet_ids.all](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/subnet_ids) | data source |
4244
| [aws_vpc.default](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/vpc) | data source |
4345

@@ -47,13 +49,5 @@ No inputs.
4749

4850
## Outputs
4951

50-
| Name | Description |
51-
|------|-------------|
52-
| <a name="output_address"></a> [address](#output\_address) | The DNS name of the cache cluster without the port appended |
53-
| <a name="output_cache_nodes"></a> [cache\_nodes](#output\_cache\_nodes) | List of node objects including id, address, port and availability\_zone |
54-
| <a name="output_configuration_endpoint"></a> [configuration\_endpoint](#output\_configuration\_endpoint) | The configuration endpoint to allow host discovery |
55-
| <a name="output_parameter_group_id"></a> [parameter\_group\_id](#output\_parameter\_group\_id) | The ElastiCache parameter group id |
56-
| <a name="output_parameter_group_name"></a> [parameter\_group\_name](#output\_parameter\_group\_name) | The ElastiCache parameter group name |
57-
| <a name="output_subnet_group_ids"></a> [subnet\_group\_ids](#output\_subnet\_group\_ids) | The ElastiCache subnet group IDs |
58-
| <a name="output_subnet_group_name"></a> [subnet\_group\_name](#output\_subnet\_group\_name) | The ElastiCache subnet group name |
52+
No outputs.
5953
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

examples/complete-memcached-cluster/main.tf

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,3 @@ data "aws_vpc" "default" {
1313
data "aws_subnet_ids" "all" {
1414
vpc_id = data.aws_vpc.default.id
1515
}
16-
17-
data "aws_security_group" "default" {
18-
vpc_id = data.aws_vpc.default.id
19-
name = "default"
20-
}
Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +0,0 @@
1-
################################################################################
2-
# Cluster
3-
################################################################################
4-
5-
output "cache_nodes" {
6-
description = "List of node objects including id, address, port and availability_zone"
7-
value = module.memcached_cluster.cluster_cache_nodes
8-
}
9-
10-
output "configuration_endpoint" {
11-
description = "The configuration endpoint to allow host discovery"
12-
value = module.memcached_cluster.cluster_configuration_endpoint
13-
}
14-
15-
output "address" {
16-
description = "The DNS name of the cache cluster without the port appended"
17-
value = module.memcached_cluster.cluster_address
18-
}
19-
20-
################################################################################
21-
# Subnet Group
22-
################################################################################
23-
24-
output "subnet_group_name" {
25-
description = "The ElastiCache subnet group name"
26-
value = module.memcached_cluster.subnet_group_name
27-
}
28-
29-
output "subnet_group_ids" {
30-
description = "The ElastiCache subnet group IDs"
31-
value = module.memcached_cluster.subnet_group_ids
32-
}
33-
34-
################################################################################
35-
# Parameter Group
36-
################################################################################
37-
38-
output "parameter_group_name" {
39-
description = "The ElastiCache parameter group name"
40-
value = module.memcached_cluster.parameter_group_name
41-
}
42-
43-
output "parameter_group_id" {
44-
description = "The ElastiCache parameter group id"
45-
value = module.memcached_cluster.parameter_group_id
46-
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
terraform {
2+
required_version = ">= 1.0"
3+
4+
required_providers {
5+
aws = {
6+
source = "hashicorp/aws"
7+
version = ">= 5.23"
8+
}
9+
}
10+
}

examples/complete-redis-cluster/README.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,16 @@ Note that this example may create resources which cost money. Run `terraform des
1919
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
2020
## Requirements
2121

22-
No requirements.
22+
| Name | Version |
23+
|------|---------|
24+
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0 |
25+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.23 |
2326

2427
## Providers
2528

2629
| Name | Version |
2730
|------|---------|
28-
| <a name="provider_aws"></a> [aws](#provider\_aws) | n/a |
31+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.23 |
2932

3033
## Modules
3134

@@ -37,7 +40,6 @@ No requirements.
3740

3841
| Name | Type |
3942
|------|------|
40-
| [aws_security_group.default](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/security_group) | data source |
4143
| [aws_subnet_ids.all](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/subnet_ids) | data source |
4244
| [aws_vpc.default](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/vpc) | data source |
4345

@@ -47,11 +49,5 @@ No inputs.
4749

4850
## Outputs
4951

50-
| Name | Description |
51-
|------|-------------|
52-
| <a name="output_cache_nodes"></a> [cache\_nodes](#output\_cache\_nodes) | List of node objects including id, address, port and availability\_zone |
53-
| <a name="output_parameter_group_id"></a> [parameter\_group\_id](#output\_parameter\_group\_id) | The ElastiCache parameter group id |
54-
| <a name="output_parameter_group_name"></a> [parameter\_group\_name](#output\_parameter\_group\_name) | The ElastiCache parameter group name |
55-
| <a name="output_subnet_group_ids"></a> [subnet\_group\_ids](#output\_subnet\_group\_ids) | The ElastiCache subnet group IDs |
56-
| <a name="output_subnet_group_name"></a> [subnet\_group\_name](#output\_subnet\_group\_name) | The ElastiCache subnet group name |
52+
No outputs.
5753
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

examples/complete-redis-cluster/main.tf

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,3 @@ data "aws_vpc" "default" {
1313
data "aws_subnet_ids" "all" {
1414
vpc_id = data.aws_vpc.default.id
1515
}
16-
17-
data "aws_security_group" "default" {
18-
vpc_id = data.aws_vpc.default.id
19-
name = "default"
20-
}
Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +0,0 @@
1-
################################################################################
2-
# Cluster
3-
################################################################################
4-
5-
output "cache_nodes" {
6-
description = "List of node objects including id, address, port and availability_zone"
7-
value = module.redis_cluster.cluster_cache_nodes
8-
}
9-
10-
################################################################################
11-
# Subnet Group
12-
################################################################################
13-
14-
output "subnet_group_name" {
15-
description = "The ElastiCache subnet group name"
16-
value = module.redis_cluster.subnet_group_name
17-
}
18-
19-
output "subnet_group_ids" {
20-
description = "The ElastiCache subnet group IDs"
21-
value = module.redis_cluster.subnet_group_ids
22-
}
23-
24-
################################################################################
25-
# Parameter Group
26-
################################################################################
27-
28-
output "parameter_group_name" {
29-
description = "The ElastiCache parameter group name"
30-
value = module.redis_cluster.parameter_group_name
31-
}
32-
33-
output "parameter_group_id" {
34-
description = "The ElastiCache parameter group id"
35-
value = module.redis_cluster.parameter_group_id
36-
}

0 commit comments

Comments
 (0)