Member-only story

Working with AWS Configure Profiles and KOps

KOps | AWS | Best Practice | βš— Kevin Summersill πŸ”‹

βš— Kevin Summersill πŸ”‹
1 min readJun 24, 2020

I started working with AWS profiles to make it easier between supporting customers within multiple accounts. I also realized it made it a lot easier to keep your default credential area completely empty. To view what you currently have in your credential list type in: (of course, assuming you already have the aws cli installed)

aws configure list

It is easy to create a profile within AWS. Just type in:

aws configure profile <name of profile>

You may now be wondering how in the world do I get KOps to read my organized AWS credentials. Well, KOps does read the environment variables AWS_PROFILE. So what you can do it change the AWS_PROFILE to the name of the profile you wish KOps to use when you run commands like β€œkops edit ig nodes”.

You can set the environment variable by running:

set AWS_PROFILE=<name of profile>

Now try to re-run your KOps credentials. Happy K8ing, if that is a thing.

--

--

βš— Kevin Summersill πŸ”‹
βš— Kevin Summersill πŸ”‹

Written by βš— Kevin Summersill πŸ”‹

Enterprise Solution Architect | Certified K8s Administrator/Developer βš“ | SAFe SPC | Cert Terraform | AWS Solutions Architect | Dev*Ops/GitOps Engineer πŸ”₯

No responses yet