1 Answer
- Newest
- Most votes
- Most comments
1
This is not possible in CloudFormation today as there is no such resource. Also, if we consider CloudFormation had a resource to do this, it would just be a logical resource that attaches a policy to a role, just like how we have route to route table attachment. So your options are
- Use custom resource or
- Create a new role and attach an existing policy to it or
- Create a new policy and attach it to an existing role or
- Create both in CloudFormation
answered 4 years ago
Relevant content
- asked 6 months ago
- Accepted Answer
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated 7 days ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 6 days ago