Skip to content

Commit

Permalink
Add the endpoint property to Amazon S3 config (#571)
Browse files Browse the repository at this point in the history
  • Loading branch information
s-vitaliy committed Jul 10, 2024
1 parent bb3414e commit 0e71b68
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions minio/resource_minio_ilm_tier.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 0e71b68

Please sign in to comment.