What's the difference between `aws.iam.RolePolicy`...
# general
f
What's the difference between
aws.iam.RolePolicy
and
aws.iam.Policy
? Does
RolePolicy
automatically do the policy attachment?
s
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.