Skip to content

Conversation

@ati7697
Copy link

@ati7697 ati7697 commented May 19, 2025

Hey, I made a thing! 🥳

Great! Now please answer the following questions to help out your assigned reviewer:

What problems are you solving?

  • create AttachIVSFullAccessPoliciesStep
  • add it to SyncIamCommand

Is there anything the reviewer needs to know to deploy this?

@linear
Copy link

linear bot commented May 19, 2025

@ati7697 ati7697 requested a review from stevethomas May 19, 2025 23:22

Aws::iam()->attachRolePolicy([
'RoleName' => $role['RoleName'],
'PolicyArn' => 'arn:aws:iam::aws:policy/IVSFullAccess',
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to use IVSFullAccess because ReadOnlyAccess doesn't allow us to create channel

@stevethomas
Copy link
Member

See #5

@stevethomas stevethomas deleted the ati/lpb-173-add-ivs-policy-to-yolo branch May 19, 2025 23:30
Comment on lines +19 to +22
Aws::iam()->attachRolePolicy([
'RoleName' => $role['RoleName'],
'PolicyArn' => $policy['Arn'],
]);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note that this part is redundant because it was already done in AttachRolePoliciesStep.

The name of that step makes me think it would attach multiple policies, which is why I moved it over there instead of adding a new step.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right, all of them are roles! I thought it should be separate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants