# NOT RUN {
# The following command attaches the AWS managed policy named
# ReadOnlyAccess to the IAM role named ReadOnlyRole.
# }
# NOT RUN {
svc$attach_role_policy(
PolicyArn = "arn:aws:iam::aws:policy/ReadOnlyAccess",
RoleName = "ReadOnlyRole"
)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab