This repo is the companion to Just enough PAM.
It creates
- A Lambda that creates and modifies an IAM Role that serves as a privileged role
- An IAM Role with privileges, in this case EC2Describe
- An Automation Document, that invokes our Lambda
- A Change Template
This is what the process looks like.
- An AWS Account in an AWS Organization. Alternatively make sure to remove the condition from the
PAMTrustPolicy.json
- A user pool for AWS Change Manager by going to Change Manager Settings for this demo we will a user
Template_Manager
. You can change this at the Change Template - Create a change template using this Change Template by pasting into the editor..
- You can now Deploy the Lambda and Automation Document.
- You can create a Change Request and have the Template_Manager user created in step 2, approve it.
npm install serverless@2.31.0
cd PAM
serverless deploy --stage="dev" -v
🎉
serveless remove --stage="dev" -v