https://pulumi.com logo
f

flat-insurance-25294

12/22/2019, 3:07 PM
Can someone help me with CI and AWS. I am a bit confused over how to deal with Roles/IAM/RBAC for setting up the infrastructure in such way that staging and dev branches are different from prod in terms of rights
b

busy-umbrella-36067

12/22/2019, 3:22 PM
You can use conditionals based off of your stack name
Copy code
if (pulumi.getStack() == "prod") {
   ...
else {
   ...
}
f

flat-insurance-25294

12/22/2019, 3:22 PM
But aren’t the access tokens coming from outside in a config?
b

busy-umbrella-36067

12/22/2019, 3:22 PM
You can have different configurations per stack
f

flat-insurance-25294

12/22/2019, 3:23 PM
Ah nice
Thanks