I coudn't find meaning of &
sign in Terraform or/and AWS IAM policy. There is an example in Data Source: aws_iam_policy_document
(docs) where you can see Basic Example
(docs, github source):
data "aws_iam_policy_document" "example" {
(..)
statement {
actions = [
"s3:*",
]
resources = [
"arn:aws:s3:::${var.s3_bucket_name}/home/&{aws:username}",
"arn:aws:s3:::${var.s3_bucket_name}/home/&{aws:username}/*",
]
}
}
I cound't find the meaning of &{aws:username}
. I'd try to look up in AWS IAM documentation but there is only explanation how to use variables with dollar ($
):
The variable is marked using a $ prefix followed by a pair of curly braces ({ }).
Question: What does &
character mean in above example?