This message was deleted.
# discuss-terraform
a
This message was deleted.
b
I first want to point out that this is a public forum, you probably don't want to broadcast your credentials.
this line could be an issue:
export AWS S3 ENDPOINT
these three lines as well:
Copy code
skip credentials validation = "true"
  skip metadata _api check = "true"
  skip _region validation = "true"
b
yes i shared incomplete credentials
b
you might also check out the tfbackend file: https://developer.hashicorp.com/terraform/language/backend#file
I see in the logs that you are using the .terraformrc file to configure the cli, it seems like you have something in there about how providers are installed? Maybe you are developing a provider? Are you using a custom credential management solution? I also see in the error message that something in the client is preventing IMDS access, I wonder if this is a function of terraform v1.9+. We test and validate on terraform v1.5.7 for licensing reasons.
b
We have implemented onprime Minio S3 storage and created the bucket for state file storage
b
I am not sure if I would trust sed to retrieve information from the state file, I use jq in most cases to parse json data, but you can also look at the terraform_remote_state data source. https://developer.hashicorp.com/terraform/language/state/remote-state-data
I don't see anything obviously wrong with what you have posted (other than the spacing), and I am unfamiliar with the newer versions of Terraform. There does appear to be something misconfigured since it is attempting to contact AWS rather than your minio API, or at least it is attempting to authenticate with Minio in the wrong way. I would also try setting the log level to trace and monitoring the traffic between the systems with something like tcpdump to see more information.
b
I have installed terraform version 1.4.6, 1.5.7 and checked, it's working as expected. If I installed 1.6.0 onwards not working
b
Unfortunately with the license changes that Hashicorp has made and no concrete plans to support OpenTofu we need to support the lowest common denominator (Terraform v1.5.7).