func resourceAwsS3BucketAclUpdate(s3conn *s3.S3, d *schema.ResourceData) error { acl := d.Get("acl").(string) bucket := d.Get("bucket").(string) i := &s3.PutBucketAclInput{ Bucket: aws.String(bucket), ACL: aws.String(acl), } log.Printf("[DEBUG] S3 put bucket ACL: %#v", i) _, err := s3conn.PutBucketAcl(i) if err != nil { return fmt.Errorf("Error putting S3 ACL: %s", err) } return nil }