From a4e2c820405f5c188636a49417211e91ad8dc24f Mon Sep 17 00:00:00 2001 From: Dana Hoffman Date: Mon, 11 Nov 2019 23:09:27 -0800 Subject: [PATCH] label zone/region as optional in docs --- templates/terraform/resource_iam.html.markdown.erb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/templates/terraform/resource_iam.html.markdown.erb b/templates/terraform/resource_iam.html.markdown.erb index b8920cd5dcae..bd0fa53bba26 100644 --- a/templates/terraform/resource_iam.html.markdown.erb +++ b/templates/terraform/resource_iam.html.markdown.erb @@ -188,7 +188,11 @@ The following arguments are supported: <% url_properties.each do |param| -%> <% if param.name == "name" -%> -* `<%= object.name.underscore -%>` - (Required) Used to find the parent resource to bind the IAM policy to +* `<%= object.iam_policy.parent_resource_attribute || object.name.underscore -%>` - (Required) Used to find the parent resource to bind the IAM policy to +<% elsif ["region", "zone"].include?(param.name.underscore) -%> +* `<%= param.name.underscore -%>` - (Optional) <%= param.description -%> Used to find the parent resource to bind the IAM policy to. If not specified, + the value will be parsed from the identifier of the parent resource. If no <%= param.name.underscore -%> is provided in the parent identifier and no + <%= param.name.underscore -%> is specified, it is taken from the provider configuration. <% else -%> * `<%= param.name.underscore -%>` - (Required) <%= param.description -%> Used to find the parent resource to bind the IAM policy to <% end -%>