What's the most efficient way to determine the minimum AWS permissions necessary for a Terraform configuration?

后端 未结 4 1453
日久生厌
日久生厌 2020-12-24 08:50

I have a Terraform configuration targeting deployment on AWS. It applies beautifully when using an IAM user that has permission to do anything (i.e. {actions: [\"*\"],

4条回答
  •  误落风尘
    2020-12-24 09:27

    As I guess that there's no perfect solution, treat this answer a bit as result of my brain storming. At least for the initial permission setup, I could imagine the following:

    Allow everything first and then process the CloudTrail logs to see, which API calls were made in a terraform apply / destroy cycle.

    Afterwards, you update the IAM policy to include exactly these calls.

提交回复
热议问题