mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-10-04 17:51:11 +00:00
Update service account docs to mark policy field as deprecated. (#437)
Also, update example to stop using the deprecated field.
This commit is contained in:
parent
a6df85d809
commit
a575c6e824
@ -21,8 +21,8 @@ resource "google_service_account" "object_viewer" {
|
||||
display_name = "Object viewer"
|
||||
}
|
||||
|
||||
resource "google_project" "my_project" {
|
||||
id = "your-project-id"
|
||||
resource "google_project_iam_policy" "my_project_policy" {
|
||||
project = "your-project-id"
|
||||
policy_data = "${data.google_iam_policy.admin.policy_data}"
|
||||
}
|
||||
|
||||
@ -50,10 +50,12 @@ The following arguments are supported:
|
||||
* `project` - (Optional) The project that the service account will be created in.
|
||||
Defaults to the provider project configuration.
|
||||
|
||||
* `policy_data` - (Optional) The `google_iam_policy` data source that represents
|
||||
* `policy_data` - (DEPRECATED, Optional) The `google_iam_policy` data source that represents
|
||||
the IAM policy that will be applied to the service account. The policy will be
|
||||
merged with any existing policy.
|
||||
|
||||
This attribute has been deprecated. Use the `google_project_iam_policy` resource instead. See example above.
|
||||
|
||||
Changing this updates the policy.
|
||||
|
||||
Deleting this removes the policy declared in Terraform. Any policy bindings
|
||||
|
Loading…
Reference in New Issue
Block a user