Resource
dcloud_iam_role_policy_attachment
Attaches an IAM policy to an IAM role.
Example Usage
resource "dcloud_iam_role_policy_attachment" "deploy_dns" {
role_id = dcloud_iam_role.deploy_from_github.id
policy_id = dcloud_iam_policy.dns_read.id
}Schema
Required
policy_id(String) The policy to attach. Changing it replaces the resource.role_id(String) The id of the parent resource ({id}in the path). Changing it replaces the resource.
Read-Only
id(String) The resource's id.
Import
Import is supported using the following syntax:
The terraform import command can be used, for example:
terraform import dcloud_iam_role_policy_attachment.deploy_dns <role-id>/<policy-id>Generated from the provider's schema.
Related