ZupIT / ritchie-formulas

This repository contains the community formulas that can be executed through Ritchie CLI once imported. This tool is an open source product that allows you to create, store and share any kind of automations, executing them through command lines, to run operations or start workflows ⚙️ 🖥 💡
https://ritchiecli.io
Apache License 2.0
105 stars 72 forks source link

New version of rit aws set context #365

Closed maurineimirandazup closed 3 years ago

maurineimirandazup commented 3 years ago

Signed-off-by: maurineimirandazup maurinei.miranda@zup.com.br

Pull Request

What I did

New method of action of the formula to change the default credentials of aws cli.

How I did it

Search for context within the credentials file by checking its existence. Returns an error if it does not exist. After informing a valid context, the formula substitutes between the informed context and the default context. Allowing for quick exchange between contexts.

How to verify it

The context change in the 'credentials' file will be performed using the sed command.

What kind of change does this PR make

Description for the changelog