Cassandra
Grant
Terraform reference for Grant.
Schema Properties
| Property | Type | Description |
|---|---|---|
permission RequiredForceNew | string | The permission given on the target resource. SELECT allows reading data, MODIFY allows writing and deleting data. A grant carries exactly one permission: to give several permissions, create several grants. The full list also contains permissions that can only be reported for grants already present on the cluster: those cannot be requested here, but they remain visible and removable. Examples: SELECTMODIFY |
resource_kind RequiredForceNew | string | The kind of resource the permission applies to, for example a single keyspace or a single table. The full list also contains kinds that can only be reported for grants already present on the cluster: those cannot be requested here, but they remain visible and removable. Examples: KEYSPACETABLE |
resource_name ForceNew | string | The name of the resource the permission applies to. Required when resource_kind targets a named resource (KEYSPACE, TABLE, FUNCTION, ROLE, MBEAN, MBEANS) and when it targets everything inside a keyspace (ALL TABLES IN KEYSPACE, ALL FUNCTIONS IN KEYSPACE), in which case give the keyspace name. Must be left empty for the cluster-wide kinds ALL KEYSPACES, ALL FUNCTIONS, ALL ROLES and ALL MBEANS. Cannot be changed after creation. Examples: my_keyspacemy_keyspace.my_table |
role_id Required | string | The role that receives the permission. Cannot be changed after creation. Examples: emea/sandbox/welcome/welcome_cluster01/app_user |
resource "gi_cassandra_grant" "example" { attributes = { permission = "SELECT" resource_kind = "KEYSPACE" role_id = "emea/sandbox/welcome/welcome_cluster01/app_user" }}