Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --assume-role-arn option #538

Merged
merged 8 commits into from
Mar 24, 2023
Merged

Add --assume-role-arn option #538

merged 8 commits into from
Mar 24, 2023

Commits on Mar 7, 2023

  1. Add --assume-role-arn option to the top level of the CLI

    This option receives an ARN of the role to assume and it makes the user
    able to do the operations across the accounts according to the assume-role.
    
    e.g.
    
    ```
    $ ecspresso --help
    Usage: ecspresso <command>
    
    Flags:
      -h, --help                      Show context-sensitive help.
          --envfile=ENVFILE,...       environment files
          --debug                     enable debug log
          --ext-str=KEY=VALUE;...     external string values for Jsonnet
          --ext-code=KEY=VALUE;...    external code values for Jsonnet
          --config="ecspresso.yml"    config file
          --assume-role-arn=""        the ARN of the role to assume
          --option=OPTION
    
    Commands:
    
    ...
    
    $ ecspresso status --assume-role-arn=arn:aws:iam::123456789012:role/ecsOperatableRole
    ```
    
    Signed-off-by: moznion <moznion@mail.moznion.net>
    moznion committed Mar 7, 2023
    Configuration menu
    Copy the full SHA
    cb72113 View commit details
    Browse the repository at this point in the history

Commits on Mar 24, 2023

  1. Merge pull request #530 from moznion/assume-role-opt

    Add `--assume-role-arn` option to the top level of the CLI
    fujiwara committed Mar 24, 2023
    Configuration menu
    Copy the full SHA
    7200b18 View commit details
    Browse the repository at this point in the history
  2. refactoring to assume role

    fujiwara committed Mar 24, 2023
    Configuration menu
    Copy the full SHA
    0722ae5 View commit details
    Browse the repository at this point in the history
  3. no need to handle errors

    fujiwara committed Mar 24, 2023
    Configuration menu
    Copy the full SHA
    c21ee35 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    dc2e530 View commit details
    Browse the repository at this point in the history
  5. refactoring

    fujiwara committed Mar 24, 2023
    Configuration menu
    Copy the full SHA
    44bbbb9 View commit details
    Browse the repository at this point in the history
  6. fix tests

    fujiwara committed Mar 24, 2023
    Configuration menu
    Copy the full SHA
    31c1fa3 View commit details
    Browse the repository at this point in the history
  7. update readme

    fujiwara committed Mar 24, 2023
    Configuration menu
    Copy the full SHA
    daeaec5 View commit details
    Browse the repository at this point in the history