Skip to content

Terraform module for AWS IAM to restrict s3 bucket access to specific users or roles.

License

Notifications You must be signed in to change notification settings

davidcallen/terraform-module-iam-s3-bucket-policy-for-users

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

terraform-module-iam-s3-bucket-policy-for-users

Terraform module for setting bucket access policy to restrict access to specific users (or roles) only.

Note this is NOT a terraform module for generic bucket access policy. Such modules often tend to offer minimal advantage than just using standard terraform resources directly.

The policy could support quite a large number of usages. Currently this is limited to : Deny access except for allowed Users/Roles (based on their "user_ids").

In the bucket policy we use Condition "StringNotLike" "aws:userId as detailed here : https://aws.amazon.com/blogs/security/how-to-restrict-amazon-s3-bucket-access-to-a-specific-iam-role/

About

Terraform module for AWS IAM to restrict s3 bucket access to specific users or roles.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages