🔥 3-day streak
HashiCorp Certified: Terraform Associate (004)43 / 150
Question 43 of 150
You are defining an AWS IAM policy inline in Terraform. Rather than hardcode a JSON string, you want to build the policy from HCL data structures so it stays readable and can reference other resource attributes. Which built-in function should you use to convert an HCL object into the JSON string the policy argument expects?
Reviewed for accuracy · Report an issueNext question