Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rojosinalma/aws-user-management
https://github.com/rojosinalma/aws-user-management
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/rojosinalma/aws-user-management
- Owner: rojosinalma
- Created: 2022-02-08T17:33:30.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-06-07T22:04:20.000Z (over 2 years ago)
- Last Synced: 2024-05-01T13:50:33.909Z (8 months ago)
- Language: Ruby
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
aws-users-management
---Mail AWS users a random securely generated password.
NOTE: You have to create the user through other means (i.e: Terraform)
## Requirements:
* Ruby 3+
## Usage:
1. Duplicate and fill `.env.example` with it's corresponding variables to a `.env` file.
2. Set up
```
bundle install
bin/console
```3. Play
```ruby
# Check the candidates
UM::Users.select_without_passwords# Check their to-be passwords passwords:
UM::Passwords.generate_for_users# WARNING: Send the assigned passwords to users by email
UM.assign_and_email!
```4. There's also a Dockerfile in case you don't want to do the entire Ruby/Bundle dance:
```
make build
make run
```### Coding Rationale:
All classes have just class methods, no instances or weird metaprogramming stuff that nobody understands. The idea is to be as straightforward in the process as possible.
This **is not** a wrapper of the AWS API or the aws-sdk, the idea is to manage `Users`, their `Passwords` and `Mail` them when necessary. Oh yeah, you also have a `Logger` in case you want to output some stuff.