An Example for using Terraform with Minio to store the state file.
Set the following environment variables:
export AWS_S3_ENDPOINT=replace-with-minio-url
export AWS_ACCESS_KEY_ID=replace-with-access-key
export AWS_SECRET_ACCESS_KEY=replace-with-secret-key
Note this configuration needs a bucket called
test
. Either create that or replacebucket = "test"
in the backend configuration.
Once you have a bucket created and the environment variables set you can run
terraform init
.