---
title: "Discussion on \"Designing a Multi-Principal IAM Role using AWS CDK\" | Hashnode"
description: "Discussion on \"Designing a Multi-Principal IAM Role using AWS CDK\". Learn how to create an AWS IAM role assumable by multiple principals (e.g., services like EC2 and DynamoDB) using AWS CDK's CompositePrincipal or addPrincipals method."
url: "https://hashnode.com/posts/aws-cdk-composite-principal/695439d70d80a6e42acc08a2"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Designing a Multi-Principal IAM Role using AWS CDK](https://towardsthecloud.hashnode.dev/aws-cdk-composite-principal?utm_source=hashnode&utm_medium=feed)

Learn how to create an AWS IAM role assumable by multiple principals (e.g., services like EC2 and DynamoDB) using AWS CDK's CompositePrincipal or addPrincipals method.

Jul 30, 2023 · 6 min read · towardsthecloud.hashnode.dev  
Updated Apr 2  
Read the article

-   [#aws](https://hashnode.com/tag/aws)
-   [#cdk](https://hashnode.com/tag/cdk)
-   [#cloud](https://hashnode.com/tag/cloud)
-   [#cloud-computing](https://hashnode.com/tag/cloud-computing)
-   [#cloud-security](https://hashnode.com/tag/cloud-security)
-   [#devops](https://hashnode.com/tag/devops)
-   [#iam](https://hashnode.com/tag/iam)
-   [#role](https://hashnode.com/tag/role)

## Written by

[Danny Steenman](https://hashnode.com/@dannysteenman)

@dannysteenman · Amsterdam, Netherlands

  
[View profile](https://hashnode.com/@dannysteenman)

Principal Cloud Consultant

Hi, 👋 my name is Danny. I’m an AWS Cloud Consultant who likes to build things in the Cloud. I write blog posts about a variety of topics like AWS, DevOps, and Certifications. The goal is to keep things practical and easy to understand.

## Responses

Comments are turned off for this post.
