Allows read-only access to Athena queries and S3 data, enabling data analysis while preventing modifications.
What this SCP does
This Service Control Policy (SCP) implements read-only access to Athena and its underlying S3 data by explicitly denying all write operations. This approach is ideal for data science teams that need to query and analyze data but should not modify Athena resources or the underlying data.
The policy uses two deny statements: one for Athena write operations (create, update, delete, etc.) and another for S3 write operations. This dual-layer protection ensures that neither Athena resources nor the underlying S3 data can be modified, while allowing all read operations by default.
How to test this SCP works
To validate this SCP, test both read operations (which should be allowed by default) and write operations (which should be explicitly denied):
The validation tests include comprehensive checks for both Athena and S3 operations, ensuring that the policy correctly denies all write operations while allowing read access.