From 0e71b68d7a4cf8ae52c5b9b30a9161cbcfbeafea Mon Sep 17 00:00:00 2001 From: Vitalii Savitskii Date: Wed, 10 Jul 2024 18:17:41 +0200 Subject: [PATCH] Add the endpoint property to Amazon S3 config (#571) --- minio/resource_minio_ilm_tier.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/minio/resource_minio_ilm_tier.go b/minio/resource_minio_ilm_tier.go index 33b6d0b9..76280fa5 100644 --- a/minio/resource_minio_ilm_tier.go +++ b/minio/resource_minio_ilm_tier.go @@ -189,6 +189,9 @@ func minioCreateILMTier(ctx context.Context, d *schema.ResourceData, meta interf if _, ok := s3Config["storage_class"]; ok { s3Options = append(s3Options, madmin.S3StorageClass(s3Config["storage_class"].(string))) } + if d.Get("endpoint").(string) != "" { + s3Options = append(s3Options, madmin.S3Endpoint(d.Get("endpoint").(string))) + } tierConf, err = madmin.NewTierS3( name, s3Config["access_key"].(string),