S3
Requirements
Name
Description
1
Grant Teleskope Read Access to S3
Terraform
resource "aws_iam_role_policy_attachment" "s3_policy" {
role = "TeleskopeRole"
policy_arn = "arn:aws:iam::aws:policy/AmazonS3ReadOnlyAccess"
}Terraform
resource "aws_iam_policy" "teleskope_s3_policy" {
name = "TeleskopeS3Policy"
description = "Policy to grant various read permissions for S3 resources."
policy = jsonencode({
Version = "2012-10-17"
Statement = [
{
Effect = "Allow"
Action = [
"s3:GetBucketPolicyStatus",
"s3:GetBucketPublicAccessBlock",
"s3:GetLifecycleConfiguration",
"s3:GetBucketTagging",
"s3:GetInventoryConfiguration",
"s3:GetBucketWebsite",
"s3:GetBucketLogging",
"s3:ListBucket",
"s3:GetBucketVersioning",
"s3:GetBucketAcl",
"s3:GetBucketNotification",
"s3:GetBucketPolicy",
"s3:GetReplicationConfiguration",
"s3:GetBucketObjectLockConfiguration",
"s3:GetEncryptionConfiguration",
"s3:PutBucketTagging",
"s3:GetBucketCORS",
"s3:GetBucketLocation"
]
Resource = "arn:aws:s3:::*"
},
{
Effect = "Allow"
Action = [
"s3:GetObjectAcl",
"s3:GetObject",
"s3:GetObjectTagging",
"s3:PutObjectTagging",
"s3:GetObjectVersion"
]
Resource = "arn:aws:s3:::*/*"
},
{
Effect = "Allow"
Action = [
"s3:GetAccountPublicAccessBlock",
"s3:ListAllMyBuckets",
"s3:GetBucketInventoryConfiguration"
]
Resource = "*"
}
]
})
}Inventory Reports (optional)
Last updated
Was this helpful?
