diff --git a/builtin/providers/aws/resource_aws_s3_bucket_object.go b/builtin/providers/aws/resource_aws_s3_bucket_object.go index 8cb7d277f..11ddc7b7b 100644 --- a/builtin/providers/aws/resource_aws_s3_bucket_object.go +++ b/builtin/providers/aws/resource_aws_s3_bucket_object.go @@ -111,9 +111,9 @@ func resourceAwsS3BucketObjectPut(d *schema.ResourceData, meta interface{}) erro content := v.(string) body = bytes.NewReader([]byte(content)) } else { - return fmt.Errorf("Must specify \"source\" or \"content\" field") } + putInput := &s3.PutObjectInput{ Bucket: aws.String(bucket), Key: aws.String(key),