Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
)

var IamBigtableTableSchema = map[string]*schema.Schema{
"instance": {
"instance_name": {
Type: schema.TypeString,
Required: true,
ForceNew: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,10 @@ resource "google_service_account" "test-account2" {
}

resource "google_bigtable_table_iam_binding" "binding" {
instance = google_bigtable_instance.instance.name
table = google_bigtable_table.table.name
role = "%s"
members = [
instance_name = google_bigtable_instance.instance.name
table = google_bigtable_table.table.name
role = "%s"
members = [
"serviceAccount:${google_service_account.test-account1.email}",
]
}
Expand All @@ -163,10 +163,10 @@ resource "google_service_account" "test-account2" {
}

resource "google_bigtable_table_iam_binding" "binding" {
instance = google_bigtable_instance.instance.name
table = google_bigtable_table.table.name
role = "%s"
members = [
instance_name = google_bigtable_instance.instance.name
table = google_bigtable_table.table.name
role = "%s"
members = [
"serviceAccount:${google_service_account.test-account1.email}",
"serviceAccount:${google_service_account.test-account2.email}",
]
Expand All @@ -182,10 +182,10 @@ resource "google_service_account" "test-account" {
}

resource "google_bigtable_table_iam_member" "member" {
instance = google_bigtable_instance.instance.name
table = google_bigtable_table.table.name
role = "%s"
member = "serviceAccount:${google_service_account.test-account.email}"
instance_name = google_bigtable_instance.instance.name
table = google_bigtable_table.table.name
role = "%s"
member = "serviceAccount:${google_service_account.test-account.email}"
}
`, instance, cluster, cluster, account, role)
}
Expand All @@ -205,14 +205,14 @@ data "google_iam_policy" "policy" {
}

resource "google_bigtable_table_iam_policy" "policy" {
instance = google_bigtable_instance.instance.name
table = google_bigtable_table.table.name
policy_data = data.google_iam_policy.policy.policy_data
instance_name = google_bigtable_instance.instance.name
table = google_bigtable_table.table.name
policy_data = data.google_iam_policy.policy.policy_data
}

data "google_bigtable_table_iam_policy" "policy" {
instance = google_bigtable_instance.instance.name
table = google_bigtable_table.table.name
instance_name = google_bigtable_instance.instance.name
table = google_bigtable_table.table.name
}

`, instance, cluster, cluster, account, role)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ Retrieves the current IAM policy data for a Bigtable Table.

```hcl
data "google_bigtable_table_iam_policy" "policy" {
instance = google_bigtable_instance.instance.name
table = google_bigtable_table.table.name
instance_name = google_bigtable_instance.instance.name
table = google_bigtable_table.table.name
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,21 @@ Description of the change and how users should adjust their configuration (if ne
### Resource-level change example header

Description of the change and how users should adjust their configuration (if needed).

## Resource: `google_bigtable_table_iam_policy`

### `instance` is now removed

`instance` has been removed in favor of `instance_name`.

## Resource: `google_bigtable_table_iam_binding`

### `instance` is now removed

`instance` has been removed in favor of `instance_name`.

## Resource: `google_bigtable_table_iam_member`

### `instance` is now removed

`instance` has been removed in favor of `instance_name`.
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,21 @@ data "google_iam_policy" "admin" {
}

resource "google_bigtable_table_iam_policy" "editor" {
project = "your-project"
instance = "your-bigtable-instance"
table = "your-bigtable-table"
policy_data = data.google_iam_policy.admin.policy_data
project = "your-project"
instance_name = "your-bigtable-instance"
table = "your-bigtable-table"
policy_data = data.google_iam_policy.admin.policy_data
}
```

## google_bigtable_table_iam_binding

```hcl
resource "google_bigtable_table_iam_binding" "editor" {
table = "your-bigtable-table"
instance = "your-bigtable-instance"
role = "roles/bigtable.user"
members = [
table = "your-bigtable-table"
instance_name = "your-bigtable-instance"
role = "roles/bigtable.user"
members = [
"user:jane@example.com",
]
}
Expand All @@ -53,18 +53,18 @@ resource "google_bigtable_table_iam_binding" "editor" {

```hcl
resource "google_bigtable_table_iam_member" "editor" {
table = "your-bigtable-table"
instance = "your-bigtable-instance"
role = "roles/bigtable.user"
member = "user:jane@example.com"
table = "your-bigtable-table"
instance_name = "your-bigtable-instance"
role = "roles/bigtable.user"
member = "user:jane@example.com"
}
```

## Argument Reference

The following arguments are supported:

* `instance` - (Required) The name or relative resource id of the instance that owns the table.
* `instance_name` - (Required) The name or relative resource id of the instance that owns the table.

* `table` - (Required) The name or relative resource id of the table to manage IAM policies for.

Expand Down
Loading