Update aws-sdk-go-base and fix resulting type errors. (#957)

Signed-off-by: Jakub Martin <kubam@spacelift.io>
This commit is contained in:
Kuba Martin
2023-12-01 16:37:31 +01:00
committed by GitHub
parent ab0a3e754d
commit 5880b49645
6 changed files with 116 additions and 112 deletions

View File

@@ -24,6 +24,7 @@ import (
types "github.com/aws/aws-sdk-go-v2/service/s3/types"
multierror "github.com/hashicorp/go-multierror"
uuid "github.com/hashicorp/go-uuid"
"github.com/opentofu/opentofu/internal/states/remote"
"github.com/opentofu/opentofu/internal/states/statemgr"
)
@@ -192,7 +193,7 @@ func (c *RemoteClient) Put(data []byte) error {
i := &s3.PutObjectInput{
ContentType: &contentType,
ContentLength: contentLength,
ContentLength: aws.Int64(contentLength),
Body: bytes.NewReader(data),
Bucket: &c.bucketName,
Key: &c.path,