Categorygithub.com/PennState/sso2aws
modulepackage
0.1.5
Repository: https://github.com/pennstate/sso2aws.git
Documentation: pkg.go.dev

# README

sso2aws Go

A simple CLI wrapper, like a stripped down saml2aws, to manage multiple AWS SSO profiles through config files and ENV vars.

Usage

A tool to make operating under multiple AWS SSO accounts and roles easier

Usage:
  ./sso2aws [command]

Available Commands:
  completion        generate the autocompletion script for the specified shell
  exec              execute commands with the configured profile
  get-config        show runtime config
  help              Help about any command
  login             login
  update-aws-config write aws profile to shared config
  version

Flags:
  -d, --debug     debug output
  -h, --help      help for ./sso2aws
  -v, --version   version for ./sso2aws

Configuration

Config can be set via YAML (~/.config/sso2aws.yaml) and overriden via environment variable (eg with direnv).

cfg nameenvvardefaultusage
sso_config.regionSSO2AWS_REGIONus-east-1AWS Region
sso_config.sso_account_idSSO2AWS_SSO_ACCOUNT_ID-AWS Account ID
sso_config.sso_start_urlSSO2AWS_SSO_START_URL-AWS SSO Start URL
sso_config.sso_role_nameSSO2AWS_SSO_ROLE_NAMEAdministratorAccessAWS role name
sso_config.sso_regionSSO2AWS_SSO_REGIONus-east-1AWS SSO Region
sso_config.outputSSO2AWS_OUTPUTjsonAWS CLI output format
profileSSO2AWS_PROFILEsso2awsAWS config profile name to use

Example YAML config

profile: sso2aws
sso_config:
  region: us-east-1
  sso_account_id: 123456789
  sso_start_url: https://my-sso-portal.awsapps.com/start
  sso_role_name: AdministratorAccess
  sso_region: us-east-1

# Packages

No description provided by the author
No description provided by the author