Skip to content

Commit 9b54308

Browse files
authored
Merge pull request #1172 from duplocloud/hotfix/0.11.21
Hotfix Release v0.11.21
2 parents 014670f + ee9715d commit 9b54308

File tree

23 files changed

+937
-15
lines changed

23 files changed

+937
-15
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ NAMESPACE=duplocloud
88

99
NAME=duplocloud
1010
BINARY=terraform-provider-${NAME}
11-
VERSION=0.11.20
11+
VERSION=0.11.21
1212
#mac
1313
#OS_ARCH=darwin_amd64
1414
#OS_ARCH=linux_amd64
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "duplocloud_ecache_associate_global_secondary_cluster Resource - terraform-provider-duplocloud"
4+
subcategory: ""
5+
description: |-
6+
duplocloud_ecache_associate_global_secondary_cluster used to associate Amazon ElastiCache secondary regional cluster to global datastore'sThis resource currently supports, define and manage only Redis based regional cluster
7+
---
8+
9+
# duplocloud_ecache_associate_global_secondary_cluster (Resource)
10+
11+
`duplocloud_ecache_associate_global_secondary_cluster` used to associate Amazon ElastiCache secondary regional cluster to global datastore's<p>This resource currently supports, define and manage only Redis based regional cluster</p>
12+
13+
## Example Usage
14+
15+
```terraform
16+
resource "duplocloud_tenant" "myapp" {
17+
account_name = "myapp"
18+
plan_id = "default"
19+
}
20+
21+
22+
resource "duplocloud_ecache_instance" "re" {
23+
tenant_id = duplocloud_tenant.myapp.tenant_id
24+
name = "redp11"
25+
cache_type = 0
26+
replicas = 2
27+
size = "cache.r6g.large"
28+
engine_version = "6.0"
29+
enable_cluster_mode = true
30+
number_of_shards = 2
31+
automatic_failover_enabled = true
32+
}
33+
34+
resource "duplocloud_ecache_global_datastore" "gds" {
35+
tenant_id = duplocloud_tenant.myapp.tenant_id
36+
primary_instance_name = duplocloud_ecache_instance.re.identifier
37+
global_replication_group_name = "ggrp11"
38+
description = "global datastore"
39+
}
40+
41+
42+
43+
resource "duplocloud_ecache_associate_global_secondary_cluster" "rg" {
44+
tenant_id = duplocloud_tenant.myapp.tenant_id
45+
secondary_tenant_id = "5e9a6dd5-001e-45a0-af67-777da8a9584b"
46+
global_datastore_id = duplocloud_ecache_global_datastore.gds.fullname
47+
description = "secondary cluster"
48+
secondary_cluster_name = "red11sc"
49+
}
50+
```
51+
52+
<!-- schema generated by tfplugindocs -->
53+
## Schema
54+
55+
### Required
56+
57+
- `global_datastore_id` (String) Specify the global datastore name with which the secondary regional cluster should be associated.
58+
- `secondary_cluster_name` (String) The name of the elasticache instance that need to be created as secondary regional cluster.
59+
- `secondary_tenant_id` (String) The tenant_id where secondary cluster need to be created. **NOTE** The tenant_id must belong to a region different from that of the primary cluster.
60+
- `tenant_id` (String) The GUID of the tenant that the elasticache instance datastore has been created in.
61+
62+
### Optional
63+
64+
- `description` (String) The description for secondary cluster
65+
- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts))
66+
67+
### Read-Only
68+
69+
- `id` (String) The ID of this resource.
70+
- `identifier` (String) Fullname for secondary regional cluster
71+
- `secondary_region` (String) Region of secondary cluster
72+
73+
<a id="nestedblock--timeouts"></a>
74+
### Nested Schema for `timeouts`
75+
76+
Optional:
77+
78+
- `create` (String)
79+
- `delete` (String)
80+
81+
## Import
82+
83+
Import is supported using the following syntax:
84+
85+
```shell
86+
# Example: Importing an existing AWS ElastiCache Secondary cluster in a global datastore
87+
# - *TENANT_ID* is the tenant GUID
88+
# - *SECONDARY_TENANT_ID* tenant id where secondary cluster resides.
89+
# - *GLOBAL_DATASTORE* global datastore name
90+
# - *SECONDARY_CLUSTER* secondary cluster name
91+
terraform import duplocloud_ecache_associate_global_secondary_cluster.sc *TENANT_ID*/ecacheReplicationGroup/*SECONDARY_TENANT_ID*/*GLOBAL_DATASTORE*/*SECONDARY_CLUSTER*
92+
```
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "duplocloud_ecache_global_datastore Resource - terraform-provider-duplocloud"
4+
subcategory: ""
5+
description: |-
6+
duplocloud_ecache_global_datastore used to manage Amazon ElastiCache Global Datastore within a DuploCloud-managed environment. This resource currently supports, define and manage only Redis based global datastore
7+
---
8+
9+
# duplocloud_ecache_global_datastore (Resource)
10+
11+
`duplocloud_ecache_global_datastore` used to manage Amazon ElastiCache Global Datastore within a DuploCloud-managed environment. <p>This resource currently supports, define and manage only Redis based global datastore</p>
12+
13+
## Example Usage
14+
15+
```terraform
16+
resource "duplocloud_tenant" "myapp" {
17+
account_name = "myapp"
18+
plan_id = "default"
19+
}
20+
21+
22+
resource "duplocloud_ecache_instance" "re" {
23+
tenant_id = duplocloud_tenant.myapp.tenant_id
24+
name = "redp11"
25+
cache_type = 0
26+
replicas = 2
27+
size = "cache.r6g.large"
28+
engine_version = "6.0"
29+
enable_cluster_mode = true
30+
number_of_shards = 2
31+
automatic_failover_enabled = true
32+
}
33+
34+
resource "duplocloud_ecache_global_datastore" "gds" {
35+
tenant_id = duplocloud_tenant.myapp.tenant_id
36+
primary_instance_name = duplocloud_ecache_instance.re.identifier
37+
global_replication_group_name = "ggrp11"
38+
description = "rgb global datastore"
39+
}
40+
```
41+
42+
<!-- schema generated by tfplugindocs -->
43+
## Schema
44+
45+
### Required
46+
47+
- `global_replication_group_name` (String) Specify name of global datastore
48+
- `primary_instance_name` (String) Specify primary instance name
49+
- `tenant_id` (String) The GUID of the tenant that the global datastore will be created in.
50+
51+
### Optional
52+
53+
- `description` (String) Specify descritpion for global datastore
54+
- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts))
55+
56+
### Read-Only
57+
58+
- `fullname` (String)
59+
- `id` (String) The ID of this resource.
60+
61+
<a id="nestedblock--timeouts"></a>
62+
### Nested Schema for `timeouts`
63+
64+
Optional:
65+
66+
- `create` (String)
67+
- `delete` (String)
68+
69+
## Import
70+
71+
Import is supported using the following syntax:
72+
73+
```shell
74+
# Example: Importing an existing AWS ElastiCache global datastore
75+
# - *TENANT_ID* is the tenant GUID
76+
# - *NAME* is the name of the global datastore created
77+
#
78+
terraform import duplocloud_ecache_global_datastore.gds *TENANT_ID*/ecacheGlobalDatastore/*NAME*
79+
```

0 commit comments

Comments
 (0)