This topic describes how to use Terraform to call API operations to configure log audit.
- Use RAM to grant permissions.
Use Terraform to call RAM API operations to grant required permissions. For more information, see alicloud_ram_policy. You must call RAM API operations to create RAM roles, configure permission policies for log audit, and attach the polices to the roles. For more information, see Authorize log collection.
- Configure log collection.