I would like to list what AWS APIs are used for each resource block and data block.
For example, in the case of aws_iam_role
resource block, I want to get a list of AWS APIs (CreateRole
, DeleteRole
, etc.) for Terraform CRUD (terraform plan, apply, import, etc.) operations.
AWS APIs required by a specific resource(data) block can be checked by looking at the source code in “github.com/hashicorp/terraform-provider-aws (/internal/service/…)”.
However, every time new provider version is released, it is not possible to check the source code and organize it, so automation is needed.
Is there any good way?
Through this work, i want to implement dynamically assigning and retrieving IAM Policy in the Terraform deployment pipeline.
thank you.