diff --git a/pkg/plugin/publish/s3.go b/pkg/plugin/publish/s3.go index cfa75e7d..029b0b5f 100644 --- a/pkg/plugin/publish/s3.go +++ b/pkg/plugin/publish/s3.go @@ -65,8 +65,8 @@ func (s *S3) Write(f *buildfile.Buildfile) { // make sure a default access is set // let's be conservative and assume private - if len(s.Region) == 0 { - s.Region = "private" + if len(s.Access) == 0 { + s.Access = "private" } // if the target starts with a "/" we need