Skip to content
This repository was archived by the owner on Jan 17, 2025. It is now read-only.

Commit 7362e27

Browse files
committed
Improve docs for redshift_datashare_privilege resource
Changes: * rename within_account to cross_account for cross-account datashare permission example * "terraform fmt" examples * rename "name" to "share_name"
1 parent 35bcf6f commit 7362e27

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

docs/resources/datashare_privilege.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,16 @@ resource "redshift_datashare" "share" {
3030
3131
# Example: datashare permission in same account
3232
resource "redshift_datashare_privilege" "within_account" {
33-
name = redshift_datashare.share.name # Required
34-
namespace = "d34dbe3f-d34d-b33f-d3ad-b33fd34db33f" # Required
33+
share_name = redshift_datashare.share.name # Required
34+
namespace = "d34dbe3f-d34d-b33f-d3ad-b33fd34db33f" # Required
3535
}
3636
3737
# Example: cross-account datashare permission.
3838
# Note: you will also need to authorize the cross-account datashare
3939
# in the AWS console after creating this resource
40-
resource "redshift_datashare_privilege" "within_account" {
41-
name = redshift_datashare.share.name # Required
42-
account = "123456789012" # Required
40+
resource "redshift_datashare_privilege" "cross_account" {
41+
share_name = redshift_datashare.share.name # Required
42+
account = "123456789012" # Required
4343
}
4444
```
4545

examples/resources/redshift_datashare_privilege/resource.tf

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ resource "redshift_datashare" "share" {
44

55
# Example: datashare permission in same account
66
resource "redshift_datashare_privilege" "within_account" {
7-
name = redshift_datashare.share.name # Required
8-
namespace = "d34dbe3f-d34d-b33f-d3ad-b33fd34db33f" # Required
7+
share_name = redshift_datashare.share.name # Required
8+
namespace = "d34dbe3f-d34d-b33f-d3ad-b33fd34db33f" # Required
99
}
1010

1111
# Example: cross-account datashare permission.
1212
# Note: you will also need to authorize the cross-account datashare
1313
# in the AWS console after creating this resource
14-
resource "redshift_datashare_privilege" "within_account" {
15-
name = redshift_datashare.share.name # Required
16-
account = "123456789012" # Required
14+
resource "redshift_datashare_privilege" "cross_account" {
15+
share_name = redshift_datashare.share.name # Required
16+
account = "123456789012" # Required
1717
}

0 commit comments

Comments
 (0)