We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e453ea7 commit 15516e2Copy full SHA for 15516e2
task/aws/resources/resource_bucket.go
@@ -29,12 +29,13 @@ type Bucket struct {
29
30
func (b *Bucket) Create(ctx context.Context) error {
31
createInput := s3.CreateBucketInput{
32
- Bucket: aws.String(b.Identifier),
33
- CreateBucketConfiguration: &types.CreateBucketConfiguration{},
+ Bucket: aws.String(b.Identifier),
34
}
35
36
if b.Client.Region != "us-east-1" {
37
- createInput.CreateBucketConfiguration.LocationConstraint = types.BucketLocationConstraint(b.Client.Region)
+ createInput.CreateBucketConfiguration = &types.CreateBucketConfiguration{
+ LocationConstraint: types.BucketLocationConstraint(b.Client.Region),
38
+ }
39
40
41
if _, err := b.Client.Services.S3.CreateBucket(ctx, &createInput); err != nil {
0 commit comments