Cloud-AWS icon indicating copy to clipboard operation
Cloud-AWS copied to clipboard

Allow using named Aws profiles for the agents

Open mobious999 opened this issue 2 years ago • 3 comments

The script assumes you have one set of credentials setup.

When you have multiple accounts you use named profile to run all aws commands aws s3 ls --profile xxxxx.

Add the option to allow using profiles in the scripts

mobious999 avatar Oct 04 '22 19:10 mobious999

Hey @mobious999 which script are you referring to, there are a number in the repo.

Also one thing you could try is passing through profile to the script as follows env AWS_PROFILE=<profilename> ./script.sh

Alternatively export it as the active profile as so: export AWS_PROFILE=<profilename>

TomRyan-321 avatar Nov 02 '22 03:11 TomRyan-321

I was just following along with the repo directions.

I wanted to try the default w/o any customization.

The two statements assume that I'm deploying from mac or linux (I'm on windows).

mobious999 avatar Nov 02 '22 12:11 mobious999

We can look at adding some notes around profile usage, in terms of windows lots of the customers we work with typically have access to a *nix shell of some sorts (WSL2, CloudShell etc). In terms of direct Windows usage, would you be expecting Powershell based scripts?

TomRyan-321 avatar Nov 06 '22 23:11 TomRyan-321