From b41c7375dbd9ae43ee0d421cf2432c1eb174b5b0 Mon Sep 17 00:00:00 2001 From: Michael Austin Date: Wed, 13 May 2015 14:48:24 -0400 Subject: [PATCH] Revert "working policy assignment" This reverts commit 0975a70c37eaa310d2bdfe6f77009253c5e450c7. --- builtin/providers/aws/resource_aws_s3_bucket.go | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/builtin/providers/aws/resource_aws_s3_bucket.go b/builtin/providers/aws/resource_aws_s3_bucket.go index f40330e544..d550124ef5 100644 --- a/builtin/providers/aws/resource_aws_s3_bucket.go +++ b/builtin/providers/aws/resource_aws_s3_bucket.go @@ -67,10 +67,6 @@ func resourceAwsS3Bucket() *schema.Resource { Computed: true, }, - "policy": &schema.Schema{ - Type: schema.TypeString, - Optional: true, - }, "tags": tagsSchema(), }, } @@ -104,19 +100,6 @@ func resourceAwsS3BucketCreate(d *schema.ResourceData, meta interface{}) error { return fmt.Errorf("Error creating S3 bucket: %s", err) } - policy := d.Get("policy").(string) - if policy != "" { - log.Printf("[DEBUG] S3 bucket optional policy was specified: %s", policy) - _, err := s3conn.PutBucketPolicy( - &s3.PutBucketPolicyInput{ - Bucket: aws.String(bucket), - Policy: aws.String(policy), - }) - if err != nil { - return fmt.Errorf("Error adding policy to S3 bucket: %s", err) - } - } - // Assign the bucket name as the resource ID d.SetId(bucket)