1

I am running MinIO docker instance in my local environment for testing(integration) my SAM(Lambda) application.

MinIO gives all the standard AWS S3 facility locally. And it can be connected locally as following

    awsSession := session.Must(session.NewSession(&aws.Config{
        S3ForcePathStyle: aws.Bool(true),

        // TODO: In production this should be picked automatically as per the region
        Endpoint:   aws.String("host.docker.internal:9000"),
        DisableSSL: aws.Bool(true),
    }))

I want to find out if there is an environment variable which can be used by config to pick endpoint? Hence, in my case I should be able to set the environment variable to host.docker.internal:9000.

Kuldeep Yadav
  • 1,664
  • 5
  • 23
  • 41

0 Answers0