-
I have a remote dev setup on an ec2 instance that relies on an instance role for authentication. I assume this is either unsupported or would require a different setup due to not having a .aws directory to pull authentication details from. For context, I want to run Terraform to create AWS infrastructure. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @JayeMcC, iamlive uses the default credential chain, so you should be able to use the instance role out-of-the-box. You'll just need to make sure you set the required environment variables just prior to executing Terraform (in the same terminal session as Terraform). In proxy mode, the required environment variables are:
or in CSM mode, the required environment variables are:
|
Beta Was this translation helpful? Give feedback.
Hi @JayeMcC,
iamlive uses the default credential chain, so you should be able to use the instance role out-of-the-box. You'll just need to make sure you set the required environment variables just prior to executing Terraform (in the same terminal session as Terraform).
In proxy mode, the required environment variables are:
or in CSM mode, the required environment variables are: