https://pulumi.com logo
#general
Title
# general
f

full-dress-10026

03/08/2019, 9:34 PM
What's the difference between
aws.iam.RolePolicy
and
aws.iam.Policy
? Does
RolePolicy
automatically do the policy attachment?
s

stocky-island-3676

03/11/2019, 3:35 PM
Just for reference for others (it seems have figured it out, right?): A
RolePolicy
is the inline policy inside the referenced IAM role, whereas the
Policy
is a managed policy which you then need to attach via a
RolePolicyAttachment
to the
role
.
That resources are all based on the underlying resources in the Terraform provider. They are mostly designed to match the underlying API objects, here AWS.