Skip to content

Running via EC2 instance role to capture terraform changes in AWS? #79

Answered by iann0036
JayeMcC asked this question in Q&A
Discussion options

You must be logged in to vote

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:

export HTTP_PROXY=http://127.0.0.1:10080
export HTTPS_PROXY=http://127.0.0.1:10080
export AWS_CA_BUNDLE=~/.iamlive/ca.pem

or in CSM mode, the required environment variables are:

export AWS_CSM_ENABLED=true
export AWS_CSM_PORT=31000
export AWS_CSM_HOST=127.0.0.1

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by JayeMcC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants