As you may recall, a developer only has access to web_page and web_sales tables. Login to your AWS account as the user lf-developer using the IAM sign in link. Let us make sure a developer run queries from Athena console on those tables and nothing else.
From the AWS Management console, search for Amazon Athena service
Make sure you are logged in as a lf-developer and select tpc for the Glue database.
As you my have noticed, a developer can only see two tables dl_tpc_web_page and dl_tpc_web_sales.
If you are first time user, you will notice a message to set up a query result location in S3. Click on the link:
Provide the Athena query result S3 path that you collected from the CloudFormation output and save it.
On the top left hand side of the screen, select Saved Queries and choose a query named LF-Developer-Query
Run each query one at a time, highlight(select) each of the entire statement on the Athena console and then click on the Run query button. You will notice the results appear within few seconds after you click on Run Query for the first 2 queries:
Now run the last query. Since a developer does not have access to any other table, querying item table produces a insufficient privileges message as shown in the screenshot
Let's check out the data permissions for lf-business-analyst and lf-campaign-manager users.