# Configure multiple AWS profiles

**URL:** https://discourse.sst.dev/t/configure-multiple-aws-profiles/21
**Category:** Chapter Comments
**Created:** [May 9, 2018, 6:39pm UTC](https://discourse.sst.dev/t/configure-multiple-aws-profiles/21 "2018-05-09T18:39:06Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![anomalyinnovations](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.sst.dev/anomalyinnovations/32/10_2.png) [@anomalyinnovations](https://discourse.sst.dev/u/anomalyinnovations)
#### Post date: [May 9, 2018, 6:39pm UTC](https://discourse.sst.dev/t/configure-multiple-aws-profiles/21/1 "2018-05-09T18:39:07Z")

</div>

_From @jayair on Fri Oct 06 2017 22:40:10 GMT+0000 (UTC)_  
  
Link to chapter - [https://serverless-stack.com/chapters/configure-multiple-aws-profiles.html](https://serverless-stack.com/chapters/configure-multiple-aws-profiles.html)  
  
_Copied from original issue: [https://github.com/AnomalyInnovations/serverless-stack-com/issues/150](https://github.com/AnomalyInnovations/serverless-stack-com/issues/150)_

---

<div class="post-metadata">

### Author: ![bunkscene](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.sst.dev/bunkscene/32/816_2.png) [@bunkscene](https://discourse.sst.dev/u/bunkscene)
#### Post date: [April 13, 2020, 12:09am UTC](https://discourse.sst.dev/t/configure-multiple-aws-profiles/21/2 "2020-04-13T00:09:36Z")

</div>

For Windows, you can set enviroment variables temporarily in your cmd or powershell session like this:

**cmd**

```
SET AWS_PROFILE=myProfile

```

**Powershell**

```
Set-Item -Path Env:AWS_PROFILE -Value myProfile

```

If you wish to permanently set the environment variable, you can use the following command in either cmd or powershell. You’ll have to close and reopen a new session to use it.

```
setx AWS_PROFILE "myProfile"

```

I am not aware of a way to set the environment variable to use for only one command. If anyone knows a way, let me know.

---

<div class="post-metadata">

### Author: ![jayair](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.sst.dev/jayair/32/9_2.png) [@jayair](https://discourse.sst.dev/u/jayair)
#### Post date: [April 13, 2020, 8:17pm UTC](https://discourse.sst.dev/t/configure-multiple-aws-profiles/21/3 "2020-04-13T20:17:07Z")

</div>

Thank you for sharing!
