Skip to content

Instantly share code, notes, and snippets.

@neil90
Created April 28, 2020 19:04
Show Gist options
  • Save neil90/c75ea8dd1e3650aaede8aa338df08486 to your computer and use it in GitHub Desktop.
Save neil90/c75ea8dd1e3650aaede8aa338df08486 to your computer and use it in GitHub Desktop.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "GetTablesActionOnRandomTableAandCampaignSpend",
"Effect": "Allow",
"Action": [
"glue:GetTable",
"glue:GetTables",
"glue:GetDatabase",
"glue:GetDatabases"
],
"Resource": [
"arn:aws:glue:us-west-2:ACCOUNTID:catalog",
"arn:aws:glue:us-west-2:ACCOUNTID:database/glue_prod_marketing",
"arn:aws:glue:us-west-2:ACCOUNTID:table/glue_prod_marketing/randomtablea",
"arn:aws:glue:us-west-2:ACCOUNTID:table/glue_prod_marketing/campaign_spend_with_partition"
]
},
{
"Sid": "GetS3DatafromTableAAndCampaignSpend",
"Effect": "Allow",
"Action": [
"s3:GetObject"
],
"Resource": [
"arn:aws:s3:::glue-non-pii-data/database/marketing/randomtablea/*",
"arn:aws:s3:::glue-non-pii-data/database/marketing/campaign_spend_with_partition/*"
]
},
{
"Sid": "ListS3DatafromGlueNonPiiData",
"Effect": "Allow",
"Action": [
"s3:ListBucket"
],
"Resource": [
"arn:aws:s3:::glue-non-pii-data"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment