1 Answer
- Newest
- Most votes
- Most comments
1
Hello.
While developing a script, why not run the script using a fairly broad IAM policy, and then once you are able to analyze it with IAM Access Analyzer, generate an IAM policy and narrow it down to only the necessary permissions?
For example, you can start by using AmazonS3FullAccess, and then once the script is complete, you can use IAM Access Analyzer to create an IAM policy and narrow down the permissions.
https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-policy-generation.html
Alternatively, you can use the reference IAM policies listed in the following document to gradually narrow down your IAM policies to only the actions you require.
https://docs.aws.amazon.com/AmazonS3/latest/userguide/example-policies-s3.html
Relevant content
- asked 3 years ago
