All Projects → Yleisradio → Yle Aws Role

Yleisradio / Yle Aws Role

Licence: mit
Tooling to help to assume AWS IAM roles

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to Yle Aws Role

Smart Security Camera
A Pi Zero and Motion based webcamera that forwards images to Amazon Web Services for Image Processing
Stars: ✭ 103 (+836.36%)
Mutual labels:  aws, aws-iam
Startup Aws Iam Roles
A list of typical positions in a startup and their policies for IAM AWS.
Stars: ✭ 118 (+972.73%)
Mutual labels:  aws, aws-iam
Cloudsplaining
Cloudsplaining is an AWS IAM Security Assessment tool that identifies violations of least privilege and generates a risk-prioritized report.
Stars: ✭ 1,057 (+9509.09%)
Mutual labels:  aws, aws-iam
Aws Extend Switch Roles
Extend your AWS IAM switching roles by Chrome extension, Firefox add-on, or Edge add-on
Stars: ✭ 862 (+7736.36%)
Mutual labels:  aws, aws-iam
Airiam
Least privilege AWS IAM Terraformer
Stars: ✭ 304 (+2663.64%)
Mutual labels:  aws, aws-iam
Consoleme
A Central Control Plane for AWS Permissions and Access
Stars: ✭ 2,631 (+23818.18%)
Mutual labels:  aws, aws-iam
Trackiam
A project to collate IAM actions, AWS APIs and managed policies from various public sources.
Stars: ✭ 115 (+945.45%)
Mutual labels:  aws, aws-iam
Aws Security Workshops
A collection of the latest AWS Security workshops
Stars: ✭ 332 (+2918.18%)
Mutual labels:  aws, aws-iam
Awesome Aws Workshops
(Unofficial) curated list of awesome workshops found around in the internet. As we all have been there, finding that workshop that you have just attended shouldn't be hard. The idea is to provide an easy central repository, in a collaborative way.
Stars: ✭ 302 (+2645.45%)
Mutual labels:  aws, aws-iam
Aws Iam Generator
Generate Multi-Account IAM users/groups/roles/policies from a simple YAML configuration file and Jinja2 templates.
Stars: ✭ 191 (+1636.36%)
Mutual labels:  aws, aws-iam
Terraform Aws Iam
Terraform module which creates IAM resources on AWS
Stars: ✭ 314 (+2754.55%)
Mutual labels:  aws, aws-iam
Security monkey
Security Monkey monitors AWS, GCP, OpenStack, and GitHub orgs for assets and their changes over time.
Stars: ✭ 4,244 (+38481.82%)
Mutual labels:  aws, aws-iam
Aws Xray Kubernetes
Code examples showing how to run AWS X-Ray on a Kubernetes cluster for deep application insights.
Stars: ✭ 26 (+136.36%)
Mutual labels:  aws
Serverless Python Requirements
⚡️🐍📦 Serverless plugin to bundle Python packages
Stars: ✭ 838 (+7518.18%)
Mutual labels:  aws
Cfn Generic Custom Resource
CloudFormation generic custom resource provider
Stars: ✭ 26 (+136.36%)
Mutual labels:  aws
Lambda Deployment Example
Automated Lambda Deployments with Terraform & CodePipeline
Stars: ✭ 25 (+127.27%)
Mutual labels:  aws
Fargatecli
CLI for AWS Fargate
Stars: ✭ 852 (+7645.45%)
Mutual labels:  aws
Nixops
NixOps is a tool for deploying to NixOS machines in a network or cloud.
Stars: ✭ 838 (+7518.18%)
Mutual labels:  aws
Terraform Modules
Terraform Modules
Stars: ✭ 25 (+127.27%)
Mutual labels:  aws
Aws Lambda Poppler Layer
AWS Lambda Poppler Layer
Stars: ✭ 25 (+127.27%)
Mutual labels:  aws

yle-aws-role

Tooling to help to assume AWS IAM roles.

Offers a command-line helper tool, asu, and a Ruby library. After assuming the specified role, it sets the standard environment variables and configures the Ruby SDK for the role.

Installation

The project can be installed in a shell:

gem install yle-aws-role

To use the Ruby library, add this line to your application's Gemfile:

gem 'yle-aws-role'

and then execute bundle

Usage

Usage: asu <account> [options] -- [command ...]
   or: asu --list

    account         The account ID or pattern of the role account
    command         Command to execute with the role. Defaults to launching new shell session.

    -d, --duration  Duration for the role credentials. Default: 900
    --env           Print out environment variables and exit
    -l, --list      Print out all configured account aliases
    -q, --quiet     Be quiet
    -r, --role      Name of the role

    -h, --help      Prints this help
    -v, --version   Prints the version information

Configuration

Account aliases and their IDs can be specified in a configuration file. Then you can list the known accounts with asu --list, and use aliases (even with partial matching) when specifying the account for asu. Also the default role can be set.

The configuration file location defaults to $HOME/.aws/asu.yaml, but can be specified with the ASU_CONFIG environment variable.

Example configuration:

defaults:
  role: "dev"

accounts:
  foo-bar: "123456789012"
  baz:     "987654321098"

With this you can just call for example

asu foo -- aws s3 ls s3://mybucket/

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/Yleisradio/yle-aws-role. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].