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

Feature Request - accept equivalent of aws CLI --profile in mos aws-iot-setup #17

Open
EldritchJS opened this issue Sep 19, 2018 · 3 comments

Comments

@EldritchJS
Copy link

It would be great if the mos tool would allow for using the equivalent of aws cli's --profile when using aws-iot-setup.

Looks like at least the following would be necessary:

  1. Accept a --profile <PROFILE_NAME> arg when mos aws-iot-setup is called

  2. If a profile arg was provided, add --profile <PROFILE_ARG> to

    output, err := ourutil.GetCommandOutput("aws", "configure", "get", "region")
    for the region acquisition

  3. Use the same approach for getting aws_access_key_id and aws_secret_access_key as is used currently for getting the default AWS region (i.e. calling getCommandOutput()) and then assigning those results to the appropriate members of the cfg.Credentials object. All with the same potential use of --profile <PROFILE_ARG> as in point 2 above

@KyleVest
Copy link

We use a QA and PRODUCTION AWS environment so being able to specify the profile name would be very nice.

@gadget-man
Copy link

This would be useful for me - I'm having to change between Prod and Dev environments.

rojer added a commit to mongoose-os/mos that referenced this issue May 31, 2019
Should fix cesanta/mos-tool#17

CL: mos: Add --aws-profile
@stevefister
Copy link

@rojer I see you committed the change for --aws-profile. It doesn't seem to be working in 2.19.0. I have the AWS CLI configured with a default profile, but this flag seems to be completely ignoring it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants