title: Terraform - Interpolating variable values
body: <p>I am trying to call a variable within the below, but having to enter it in manually at the moment, a little stuck. How do I get Terraform to automatically insert the variable's value.</p>
  
  <pre><code>resource "aws_iam_role" "aws-admin-role" {
    name        = "AWS-AdminAccess"
    description = "Administration of Account from AWSxx"
  
    assume_role_policy = &lt;&lt;EOF
  {  
    "Version":"2012-10-17",
    "Statement":[  
      {  
        "Effect":"Allow",
        "Principal":{  
          "AWS":"arn:aws:iam::INSERTACCOUNTMANUALLY:root"
        },
        "Action":"sts:AssumeRole",
        "Condition":{  
  
        }
      }
    ]
  }
  EOF
  }
  </code></pre>