s3-access

Cyber-Duck/s3-access/aws

Terraform Module HCL AWS

A Terraform module to give access to S3 for specific users. This module allows the user to create users and groups with the option of using existing. The group will have granular S3 access policy attached with the option to add additional policy(s) if required.

Install
module "s3-access" {
source = "Cyber-Duck/s3-access/aws"
version = "1.0.4"
}
plain text: /constructs/tfmod-cyber-duck-s3-access-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

--- How to use this module What you can achieve with this module. - Creation of group with policy attached and managment of users via variables. - Ability to use existing groups. - Ability to add additional policys to created or existing group via additional_policy_arn option. Informmation around user creations When creating users with iam_user variable the users are created with no login credentials, you will have to manage all of this via the console. When managing group users you can list existing and new users, to remove a user from the IAM group just remove it from the list of users in the variables. Policy details The policy curated in the module allows the users the ability to access s3 by detailing the buckets arn this additionally give you the ability to fine tune what the user ha

Inputs (5)
NameTypeDescriptionDefault
group_usermap(list(string))Users to be added to S3 access group, default = {['matt.smith', 'janes.doe']}null
iam_group_namestringName of IAM group to be created, e.g 'Drupal-devs'null
existing_groupstringExisting IAM Groupnull
s3_arnsmap(list(string))name of S3 bucket to use, you can specify to a single file or folder by the pathnull
iam_usermap(list(string))new user creation, default = {['matt.smith', 'janes.doe']}null
Outputs (3)
group_name — Lists S3 access group name
group_users — List all S3 access group users
policy_arn — List S3 access policy arn
Resources (5)
aws_iam_groupaws_iam_group_membershipaws_iam_group_policy_attachmentaws_iam_policyaws_iam_user
Details
FrameworkTerraform Module
LanguageHCL
Version1.0.4
Cloud AWS
★ Stars2
Forks0
Total downloads3.6k
Inputs5
Outputs3
Resources5
Examples3
LicenseApache-2.0
NamespaceCyber-Duck
Updated