Open tksrc opened 2 years ago
Hi, I will add this task to our internal board.
Any chance there has been any movement on this in the past year?
Hi, Sorry for late reply. No movement on this. I have very limited bandwidth. I am mostly focusing security updates. The actual change is not so big, but I have no way of testing it. Perhaps a workaround is to set the environment variables in the step where you do terraform init, if you have access to the values
Hi,
It looks like there is a difference how the Terraform
init
command works in regards to AWS credentials.The credentials from the service connection are only passed as CLI arguments
-backend-config=access_key=xxx
and-backend-config=secret_key=xxx
and not asenv
variables too.As you can see from the log below, we are unable to download modules hosted in a bucket as Terraform cannot locate credentials to make that request.
Is it possible to expose the access key id and access key as environment variables for the
init
command?