Skip to contents

Attach a policy to a user, group, or role

Usage

aws_policy_attach(.x, policy)

Arguments

.x

result of a call to create or get method for user, group, or role

policy

(character) a policy name or ARN

Value

A tibble with information about policies

Examples

if (FALSE) { # \dontrun{
aws_policy("AmazonRDSDataFullAccess")
aws_user() %>% aws_policy_attach("AmazonRDSDataFullAccess")
aws_user()$attached_policies

# aws_role("OrganizationAccountSecurityRole") %>%
#  aws_policy_attach("ReadOnlyAccess")
} # }