EFS
Requirements
Requirement
Details
1
Grant Teleskope Read Access to EFS
resource "aws_iam_policy" "teleskope_efs_policy" {
name = "TeleskopeEFSPolicy"
description = "Grants Teleskope read access to discover EFS filesystems"
policy = jsonencode({
Version = "2012-10-17"
Statement = [
{
Effect = "Allow"
Action = [
"elasticfilesystem:DescribeFileSystems",
"elasticfilesystem:DescribeMountTargets",
"elasticfilesystem:DescribeMountTargetSecurityGroups",
"elasticfilesystem:DescribeTags",
"elasticfilesystem:ListTagsForResource"
]
Resource = "*"
}
]
})
}
resource "aws_iam_role_policy_attachment" "teleskope_efs" {
role = "TeleskopeRole"
policy_arn = aws_iam_policy.teleskope_efs_policy.arn
}Last updated
Was this helpful?
