-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* WIP * Added a datasource * Added a datasource and resource for active-active * Bugfixing the update endpoint * Added documentation including maintenance windows * Doc changes and better checks for needed env variables when running tests * Added a (skipped) test over AA/transit gateway attachment functionality * Bugfixes to AA TGW attachments * removing skip on AA TGW test * adding AWS_TEST_AA_TGW_ID env var for TGW test * Revert "adding AWS_TEST_AA_TGW_ID env var for TGW test" This reverts commit 8626d05. * remove AA TGW test --------- Co-authored-by: gregnuttall <[email protected]>
- Loading branch information
1 parent
8f158d3
commit 9a9a01c
Showing
22 changed files
with
1,205 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
docs/data-sources/rediscloud_active_active_transit_gateway.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
--- | ||
layout: "rediscloud" | ||
page_title: "Redis Cloud: rediscloud_transit_gateway" | ||
description: |- | ||
Active Active Transit Gateway data source in the Redis Cloud Terraform provider. | ||
--- | ||
|
||
# Data Source: rediscloud_transit_gateway | ||
|
||
The Active Active Transit Gateway data source allows access to an available Transit Gateway within your Redis Enterprise Cloud Account. | ||
|
||
## Example Usage | ||
|
||
```hcl | ||
data "rediscloud_active_active_transit_gateway" "example" { | ||
subscription_id = "113991" | ||
region_id = 1 | ||
aws_tgw_id = "tgw-1c55bfdoe20pdsad2" | ||
} | ||
output "rediscloud_transit_gateway" { | ||
value = data.rediscloud_active_active_transit_gateway.example.tgw_id | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
* `subscription_id` - (Required) The id of an Active Active subscription | ||
* `region_id` - (Required) The id of the AWS region | ||
* `tgw_id` - (Optional) The id of the Transit Gateway relative to the associated subscription. You would likely | ||
reference this value when creating a `rediscloud_active_active_transit_gateway_attachment`. | ||
* `aws_tgw_id` - (Optional) The id of the Transit Gateway as known to AWS | ||
|
||
## Attribute Reference | ||
|
||
* `attachment_uid` - A unique identifier for the Subscription/Transit Gateway attachment, if any | ||
* `status` - The status of the Transit Gateway | ||
* `attachment_status` - The status of the Subscription/Transit Gateway attachment, if any | ||
* `aws_account_id` - The Transit Gateway's AWS account id | ||
* `cidrs` - A list of consumer Cidr blocks, if an attachment exists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
layout: "rediscloud" | ||
page_title: "Redis Cloud: rediscloud_transit_gateway" | ||
description: |- | ||
Transit Gateway data source in the Redis Cloud Terraform provider. | ||
--- | ||
|
||
# Data Source: rediscloud_transit_gateway | ||
|
||
The Transit Gateway data source allows access to an available Transit Gateway within your Redis Enterprise Cloud Account. | ||
|
||
## Example Usage | ||
|
||
```hcl | ||
data "rediscloud_transit_gateway" "example" { | ||
subscription_id = "113991" | ||
aws_tgw_id = "tgw-1c55bfdoe20pdsad2" | ||
} | ||
output "rediscloud_transit_gateway" { | ||
value = data.rediscloud_transit_gateway.example.tgw_id | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
* `subscription_id` - (Required) The id of a Pro/Flexible subscription | ||
* `tgw_id` - (Optional) The id of the Transit Gateway relative to the associated subscription. You would likely | ||
reference this value when creating a `rediscloud_transit_gateway_attachment`. | ||
* `aws_tgw_id` - (Optional) The id of the Transit Gateway as known to AWS | ||
|
||
## Attribute Reference | ||
|
||
* `attachment_uid` - A unique identifier for the Subscription/Transit Gateway attachment, if any | ||
* `status` - The status of the Transit Gateway | ||
* `attachment_status` - The status of the Subscription/Transit Gateway attachment, if any | ||
* `aws_account_id` - The Transit Gateway's AWS account id | ||
* `cidrs` - A list of consumer Cidr blocks, if an attachment exists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
docs/resources/rediscloud_active_active_transit_gateway_attachment.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
--- | ||
layout: "rediscloud" | ||
page_title: "Redis Cloud: rediscloud_transit_gateway_attachment" | ||
description: |- | ||
Transit Gateway Attachment resource in the Redis Cloud Terraform provider. | ||
--- | ||
|
||
# Resource: rediscloud_transit_gateway_attachment | ||
|
||
Manages a Transit Gateway Attachment to an Active Active Subscription in your Redis Enterprise Cloud Account. | ||
|
||
```hcl | ||
data "rediscloud_transit_gateway" "gateway" { | ||
subscription_id = "113492" | ||
aws_tgw_id = "tgw-1c55bfdoe20pdsad2" | ||
} | ||
resource "rediscloud_active_active_transit_gateway_attachment" "attachment" { | ||
subscription_id = "113492" | ||
region_id = 1 | ||
tgw_id = data.rediscloud_transit_gateway.gateway.tgw_id | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
* `subscription_id` - (Required) The id of the Pro/Flexible subscription to attach | ||
* `region_id` - (Required) The id of the AWS region | ||
* `tgw_id` - (Required) The id of the Transit Gateway to attach to | ||
* `cidrs` - (Optional) A list of consumer Cidr blocks. **May only be added once the Attachment has been accepted** | ||
|
||
## Attribute Reference | ||
|
||
* `aws_tgw_uid` - The id of the Transit Gateway as known to AWS | ||
* `attachment_uid` - A unique identifier for the Subscription/Transit Gateway attachment, if established | ||
* `status` - The status of the Transit Gateway | ||
* `attachment_status` - The status of the Subscription/Transit Gateway attachment, if established | ||
* `aws_account_id` - The Transit Gateway's AWS account id | ||
|
||
## Import | ||
`rediscloud_active_active_transit_gateway_attachment` can be imported using the ID of the Active-Active subscription and the ID of the Transit Gateway in the format {subscription ID}/{tgw ID}, e.g. | ||
|
||
``` | ||
$ terraform import rediscloud_active_active_transit_gateway_attachment.tgwa-resource 123456/47 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- | ||
layout: "rediscloud" | ||
page_title: "Redis Cloud: rediscloud_transit_gateway_attachment" | ||
description: |- | ||
Transit Gateway Attachment resource in the Redis Cloud Terraform provider. | ||
--- | ||
|
||
# Resource: rediscloud_transit_gateway_attachment | ||
|
||
Manages a Transit Gateway Attachment to a Pro/Flexible Subscription in your Redis Enterprise Cloud Account. | ||
|
||
```hcl | ||
data "rediscloud_transit_gateway" "gateway" { | ||
subscription_id = "113491" | ||
aws_tgw_id = "tgw-1c55bfdoe20pdsad2" | ||
} | ||
resource "rediscloud_transit_gateway_attachment" "attachment" { | ||
subscription_id = "113491" | ||
tgw_id = data.rediscloud_transit_gateway.gateway.tgw_id | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
* `subscription_id` - (Required) The id of the Pro/Flexible subscription to attach | ||
* `tgw_id` - (Required) The id of the Transit Gateway to attach to | ||
* `cidrs` - (Optional) A list of consumer Cidr blocks. **May only be added once the Attachment has been accepted** | ||
|
||
## Attribute Reference | ||
|
||
* `aws_tgw_uid` - The id of the Transit Gateway as known to AWS | ||
* `attachment_uid` - A unique identifier for the Subscription/Transit Gateway attachment, if established | ||
* `status` - The status of the Transit Gateway | ||
* `attachment_status` - The status of the Subscription/Transit Gateway attachment, if established | ||
* `aws_account_id` - The Transit Gateway's AWS account id | ||
|
||
## Import | ||
`rediscloud_transit_gateway_attachment` can be imported using the ID of the Pro/Flexible subscription and the ID of the Transit Gateway in the format {subscription ID}/{tgw ID}, e.g. | ||
|
||
``` | ||
$ terraform import rediscloud_transit_gateway_attachment.tgwa-resource 123456/47 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.