How do you automate IAM Role Creation in Customers AWS account?

0

I have a use case to automate the creation of IAM role and attaching a Permission policy to it for a Customers( internal ) AWS account( to which we may not have access to ). Any idea on how such automation can be done?

2 Risposte
0

If you have no initial access to the AWS Account, the usual approach is for you to generate an AWS CloudFormation template which will create the Role with suitable Policies attached, and pass that to the customer for them to deploy. I'd suggest using tools such as cfn-nag and CloudFormation Guard to ensure your templates are following best practices and your own requirements for least privilege access.

It's a best practice to require an External ID as part of the trust policy.

profile pictureAWS
ESPERTO
James_S
con risposta 2 anni fa
0

Check out this github repo where I have tried to build a solution to help you automate user group assignment to permission sets in AWS IAM Identity Center for accessing any or all AWS accounts in your organization via federated access following principles of least privilege- Automated Role Entitlements in AWS IAM Identity Center

profile pictureAWS
con risposta 5 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande