Skip to content

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

@EldritchJS

Description

@EldritchJS

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions