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:
Vincent Roseberry 2017-09-18 08:24:08 -07:00 committed by GitHub
parent a6df85d809
commit a575c6e824

View File

@ -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