Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

IAM Policy Docs #418

Merged
merged 1 commit into from
Dec 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 23 additions & 7 deletions docs/content/02-tutorials/07-setup-iam.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title = "g. Setup IAM Permissions 🔑"
weight = 27
+++

Be default AWS ParallelCluster limits the policies you're allowed to attach with `AdditionalIAMPolicies` to a cluster to the following managed policies:
Be default AWS ParallelCluster API limits the policies you're allowed to attach with `AdditionalIAMPolicies` to the following [managed policies](https://docs.aws.amazon.com/parallelcluster/latest/ug/api-reference-v3.html#api-reference-invoke-v3):

* arn:aws:iam::1234567890:policy/parallelcluster*
* arn:aws:iam::1234567890:policy/parallelcluster/*
Expand Down Expand Up @@ -32,10 +32,26 @@ To fix this, you can add additional IAM permissions to PCM like so:
![Attach Policies](07-setup-iam/lambda-permissions.jpeg)

3. Select the `AWSXRayDaemonWriteAccess` policy and remove it
4. Select `Add permissions` > `Attach policies`

![Attach Policies](07-setup-iam/attach-policies.jpeg)

5. Search for `AdministratorAccess` > click `Attach policies`
4. Select `Add permissions` > `Create inline Policy`

![Attach Policies](07-setup-iam/attach-policies.png)

5. Click on the **JSON** tab and paste in the following policy. Make sure to change `<account-id>` to your aws account id.

```json
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"iam:AttachRolePolicy",
"iam:DetachRolePolicy"
],
"Effect": "Allow",
"Resource": "arn:aws:iam::<account-id>:role/parallelcluster/*"
}
]
}
```

![Attach Policies](07-setup-iam/attach-admin.png)
6. Click **Review Policy**, give it a name like `pcluster-attach-detach-policies` and click **Save**.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.