Skip to content

Permission handling

0

I want to automate the process of creating permission sets and assigning to users. i thought of using lambda in master account, but the problem is few other developers also have access to lambda in master account so if i grant permission for lambda to create permission set and assign it to users someone can modify it use as they want. is there a better way to habdle this

1 Answer
0

Let me suggest a few secure approaches to handle permission set automation in AWS:

Use AWS Organizations Service Control Policies (SCPs):

  • Create SCPs that restrict who can modify the Lambda function
  • Apply strict IAM permissions on the Lambda role itself
  • This provides an additional security layer at the organization level

Use AWS CloudFormation StackSets:

  • Create permission sets as Infrastructure as Code
  • Deploy across multiple accounts from a delegated administrator account
  • Better change control through version control
  • Requires approval workflows for changes

Use AWS Control Tower:

  • Leverage Account Factory
  • Implement customized guardrails
  • Maintain compliance through preventive and detective controls

Implement CI/CD Pipeline:

  • Store permission set configurations in a source code repository
  • Require pull request approvals for changes
  • Use AWS CodePipeline/CodeBuild with strict IAM roles
  • Implement automated testing before deployment

Best Practice Recommendations:

  • Keep the automation code in version control
  • Implement approval workflows for changes
  • Use separate accounts for development and production
  • Maintain audit logs of all changes
  • Implement least privilege access

The most secure approach would be combining CloudFormation StackSets with a CI/CD pipeline, as it provides:

  • Version control
  • Change approval process
  • Audit trail
  • Separation of duties
  • Scalable deployment across accounts

This way, developers can propose changes through pull requests, but can't directly modify production permissions.

AWS

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.