9
9
"github.com/aws/aws-sdk-go/service/s3"
10
10
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
11
11
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
12
- "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation"
13
12
)
14
13
15
14
func resourceScalewayObjectBucket () * schema.Resource {
@@ -31,18 +30,6 @@ func resourceScalewayObjectBucket() *schema.Resource {
31
30
ForceNew : true ,
32
31
Description : "The name of the bucket" ,
33
32
},
34
- "acl" : {
35
- Type : schema .TypeString ,
36
- Optional : true ,
37
- Default : "private" ,
38
- Description : "ACL of the bucket: either 'public-read' or 'private'." ,
39
- ValidateFunc : validation .StringInSlice ([]string {
40
- s3 .ObjectCannedACLPrivate ,
41
- s3 .ObjectCannedACLPublicRead ,
42
- s3 .ObjectCannedACLPublicReadWrite ,
43
- s3 .ObjectCannedACLAuthenticatedRead ,
44
- }, false ),
45
- },
46
33
"tags" : {
47
34
Type : schema .TypeMap ,
48
35
Elem : & schema.Schema {
@@ -78,7 +65,6 @@ func resourceScalewayObjectBucket() *schema.Resource {
78
65
79
66
func resourceScalewayObjectBucketCreate (ctx context.Context , d * schema.ResourceData , meta interface {}) diag.Diagnostics {
80
67
bucketName := d .Get ("name" ).(string )
81
- acl := d .Get ("acl" ).(string )
82
68
83
69
s3Client , region , err := s3ClientWithRegion (d , meta )
84
70
if err != nil {
@@ -87,7 +73,6 @@ func resourceScalewayObjectBucketCreate(ctx context.Context, d *schema.ResourceD
87
73
88
74
_ , err = s3Client .CreateBucketWithContext (ctx , & s3.CreateBucketInput {
89
75
Bucket : aws .String (bucketName ),
90
- ACL : aws .String (acl ),
91
76
})
92
77
if err != nil {
93
78
return diag .FromErr (err )
0 commit comments