Skip to content

Commit 6b85725

Browse files
authored
Wait for DC archival location operations to finish (#203)
The data_center_archival_location_amazon_s3 resource will now monitor and wait for asynchronous CDM operations to finish.
1 parent 0e0a2c8 commit 6b85725

File tree

6 files changed

+19
-23
lines changed

6 files changed

+19
-23
lines changed

docs/guides/changelog.md

+8
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ page_title: "Changelog"
44

55
# Changelog
66

7+
## v0.10.0-beta.5
8+
* The data_center_archival_location_amazon_s3 resource will now monitor and wait for the asynchronous CDM operations to
9+
finish.
10+
11+
## v0.10.0-beta.4
12+
* Fix a regression in the cloud native archival location resources. An extra level of structure in the RSC response
13+
caused resource refreshes to fail.
14+
715
## v0.10.0-beta.3
816
* Add support for creating data center AWS accounts. [[docs](../resources/data_center_aws_account)]
917
* Add support for creating data center Azure subscriptions. [[docs](../resources/data_center_azure_subscription)]

docs/resources/data_center_archival_location_amazon_s3.md

-13
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,6 @@ subcategory: ""
55
description: |-
66
The polaris_data_center_archival_location_amazon_s3 resource create a data
77
center archival location with the Amazon S3 storage type.
8-
~> The actual creation/deletion of a data center archival location runs
9-
asynchronously on a CDM cluster outside the control of Terraform. This means
10-
the operation can fail after Terraform has succeeded. A failure in the
11-
asynchronous task which creates an archival location will result in the
12-
archival location getting removed from RSC or its sync_status never
13-
reaching the SYNCED state.
148
~> Before configuring the immutability settings, see
159
KB article https://support.rubrik.com/s/article/000005468 or the Rubrik
1610
User Guide documentation to determine the proper immutability lock period.
@@ -23,13 +17,6 @@ description: |-
2317
The `polaris_data_center_archival_location_amazon_s3` resource create a data
2418
center archival location with the Amazon S3 storage type.
2519

26-
~> The actual creation/deletion of a data center archival location runs
27-
asynchronously on a CDM cluster outside the control of Terraform. This means
28-
the operation can fail after Terraform has succeeded. A failure in the
29-
asynchronous task which creates an archival location will result in the
30-
archival location getting removed from RSC or its `sync_status` never
31-
reaching the `SYNCED` state.
32-
3320
~> Before configuring the immutability settings, see
3421
[KB article](https://support.rubrik.com/s/article/000005468) or the Rubrik
3522
User Guide documentation to determine the proper immutability lock period.

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ require (
88
github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320
99
github.com/hashicorp/terraform-plugin-docs v0.16.0
1010
github.com/hashicorp/terraform-plugin-sdk/v2 v2.34.0
11-
github.com/rubrikinc/rubrik-polaris-sdk-for-go v0.11.0-beta.5
11+
github.com/rubrikinc/rubrik-polaris-sdk-for-go v0.11.0-beta.6
1212
)
1313

1414
require (

go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,8 @@ github.com/posener/complete v1.2.3/go.mod h1:WZIdtGGp+qx0sLrYKtIRAruyNpv6hFCicSg
270270
github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
271271
github.com/rogpeppe/go-internal v1.6.1 h1:/FiVV8dS/e+YqF2JvO3yXRFbBLTIuSDkuC7aBOAvL+k=
272272
github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc=
273-
github.com/rubrikinc/rubrik-polaris-sdk-for-go v0.11.0-beta.5 h1:MlF2JQh/z4QfQ1mcsiQrQwWBEvPP0PC6KCMtRPHSgbA=
274-
github.com/rubrikinc/rubrik-polaris-sdk-for-go v0.11.0-beta.5/go.mod h1:ryJGDKlbaCvozY3Wvt+TPSN2OZRChQedHUNsnVfCbXE=
273+
github.com/rubrikinc/rubrik-polaris-sdk-for-go v0.11.0-beta.6 h1:7tIuXO7wf/zLBmYtd3HXevp733UeHRY5VzrLSzgA57g=
274+
github.com/rubrikinc/rubrik-polaris-sdk-for-go v0.11.0-beta.6/go.mod h1:ryJGDKlbaCvozY3Wvt+TPSN2OZRChQedHUNsnVfCbXE=
275275
github.com/russross/blackfriday v1.6.0 h1:KqfZb0pUVN2lYqZUYRddxF4OR8ZMURnJIG5Y3VRLtww=
276276
github.com/russross/blackfriday v1.6.0/go.mod h1:ti0ldHuxg49ri4ksnFxlkCfN+hvslNlmVHqNRXXJNAY=
277277
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 h1:n661drycOFuPLCN3Uc8sB6B/s6Z4t2xvBgU1htSHuq8=

internal/provider/resource_data_center_archival_location_amazon_s3.go

-7
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,6 @@ const resourceDataCenterArchivalLocationAmazonS3Description = `
3939
The ´polaris_data_center_archival_location_amazon_s3´ resource create a data
4040
center archival location with the Amazon S3 storage type.
4141
42-
~> The actual creation/deletion of a data center archival location runs
43-
asynchronously on a CDM cluster outside the control of Terraform. This means
44-
the operation can fail after Terraform has succeeded. A failure in the
45-
asynchronous task which creates an archival location will result in the
46-
archival location getting removed from RSC or its ´sync_status´ never
47-
reaching the ´SYNCED´ state.
48-
4942
~> Before configuring the immutability settings, see
5043
[KB article](https://support.rubrik.com/s/article/000005468) or the Rubrik
5144
User Guide documentation to determine the proper immutability lock period.

templates/guides/changelog.md.tmpl

+8
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ page_title: "Changelog"
44

55
# Changelog
66

7+
## v0.10.0-beta.5
8+
* The data_center_archival_location_amazon_s3 resource will now monitor and wait for the asynchronous CDM operations to
9+
finish.
10+
11+
## v0.10.0-beta.4
12+
* Fix a regression in the cloud native archival location resources. An extra level of structure in the RSC response
13+
caused resource refreshes to fail.
14+
715
## v0.10.0-beta.3
816
* Add support for creating data center AWS accounts. [[docs](../resources/data_center_aws_account)]
917
* Add support for creating data center Azure subscriptions. [[docs](../resources/data_center_azure_subscription)]

0 commit comments

Comments
 (0)