Attach a policy to a user, group, or role
Arguments
- .x
result of a call to create or get method for user, group, or role
- policy
(character) a policy name or ARN
See also
Other policies:
as_policy_arn()
,
aws_policies()
,
aws_policy_create()
,
aws_policy_delete_version()
,
aws_policy_delete()
,
aws_policy_detach()
,
aws_policy_exists()
,
aws_policy_list_entities()
,
aws_policy_list_versions()
,
aws_policy()
Examples
if (FALSE) {
aws_policy("AmazonRDSDataFullAccess")
aws_user() %>% aws_policy_attach("AmazonRDSDataFullAccess")
aws_user()$attached_policies
# aws_role("OrganizationAccountSecurityRole") %>%
# aws_policy_attach("ReadOnlyAccess")
}