Skip to content

Commit e64143a

Browse files
committed
fix: make cluster_identifier optional for use with global clusters
1 parent 1ce664f commit e64143a

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Neptune serverless requires that the `engine_version` attribute must be `1.2.0.1
2424
2525
module "neptune" {
2626
source = "dstrates/neptune/aws"
27-
version = "0.1.2"
27+
version = "0.1.3"
2828
2929
apply_immediately = true
3030
backup_retention_period = 5
@@ -77,7 +77,7 @@ module "neptune" {
7777
```hcl
7878
module "neptune" {
7979
source = "dstrates/neptune/aws"
80-
version = "0.1.2"
80+
version = "0.1.3"
8181
8282
# Standard configuration
8383
# ...
@@ -166,7 +166,7 @@ No modules.
166166
| <a name="input_apply_immediately"></a> [apply\_immediately](#input\_apply\_immediately) | Specifies whether cluster modifications are applied immediately | `bool` | `true` | no |
167167
| <a name="input_availability_zones"></a> [availability\_zones](#input\_availability\_zones) | (Optional) A list of EC2 Availability Zones that instances in the Neptune cluster can be created in. | `list(string)` | `null` | no |
168168
| <a name="input_backup_retention_period"></a> [backup\_retention\_period](#input\_backup\_retention\_period) | The number of days to retain backups for | `number` | `7` | no |
169-
| <a name="input_cluster_identifier"></a> [cluster\_identifier](#input\_cluster\_identifier) | The cluster identifier | `string` | n/a | yes |
169+
| <a name="input_cluster_identifier"></a> [cluster\_identifier](#input\_cluster\_identifier) | The cluster identifier. Required if create\_neptune\_cluster is true. | `string` | `null` | no |
170170
| <a name="input_cluster_identifier_prefix"></a> [cluster\_identifier\_prefix](#input\_cluster\_identifier\_prefix) | (Optional) Creates a unique cluster identifier beginning with the specified prefix. Conflicts with cluster\_identifier. | `string` | `null` | no |
171171
| <a name="input_copy_tags_to_snapshot"></a> [copy\_tags\_to\_snapshot](#input\_copy\_tags\_to\_snapshot) | (Optional) If set to true, tags are copied to any snapshot of the DB cluster that is created. | `bool` | `null` | no |
172172
| <a name="input_create_neptune_cluster"></a> [create\_neptune\_cluster](#input\_create\_neptune\_cluster) | Whether or not to create a Neptune cluster | `bool` | `true` | no |

examples/global-cluster-existing/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ data "aws_kms_key" "default" {
5353
# Assuming you have an existing standard Neptune cluster
5454
module "neptune_existing_cluster" {
5555
source = "dstrates/neptune/aws"
56-
version = "0.1.2"
56+
version = "0.1.3"
5757

5858
create_neptune_cluster = true
5959
create_neptune_subnet_group = true
@@ -95,7 +95,7 @@ module "neptune_existing_cluster" {
9595
# Create a global cluster referencing that cluster
9696
module "neptune_global_cluster" {
9797
source = "dstrates/neptune/aws"
98-
version = "0.1.2"
98+
version = "0.1.3"
9999

100100
create_neptune_global_cluster = true
101101
global_cluster_engine = "neptune"

examples/read-replica/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ data "aws_kms_key" "secondary" {
9696

9797
module "neptune_primary" {
9898
source = "dstrates/neptune/aws"
99-
version = "0.1.2"
99+
version = "0.1.3"
100100

101101
providers = {
102102
aws = aws.primary
@@ -145,7 +145,7 @@ module "neptune_primary" {
145145

146146
module "neptune_replica" {
147147
source = "dstrates/neptune/aws"
148-
version = "0.1.2"
148+
version = "0.1.3"
149149

150150
providers = {
151151
aws = aws.secondary

variables.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ variable "backup_retention_period" {
2323
}
2424

2525
variable "cluster_identifier" {
26-
description = "The cluster identifier"
26+
description = "The cluster identifier. Required if create_neptune_cluster is true."
2727
type = string
28+
default = null
2829
}
2930

3031
variable "cluster_identifier_prefix" {

0 commit comments

Comments
 (0)