Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

provider/aws Add S3 bucket object tag support #11344

Merged
merged 1 commit into from
Feb 13, 2017
Merged

provider/aws Add S3 bucket object tag support #11344

merged 1 commit into from
Feb 13, 2017

Conversation

ewbankkit
Copy link
Contributor

Add support for AWS S3 object tagging.

@ewbankkit
Copy link
Contributor Author

Rebased and fixed some acceptance tests.

@stack72
Copy link
Contributor

stack72 commented Jan 30, 2017

Hi @ewbankkit

How is this progressing? Ready for a review?

Thanks

Paul

@ewbankkit
Copy link
Contributor Author

ewbankkit commented Jan 31, 2017

Right now the acceptance tests are passing and the functionality works but Update is always recreating - via PUT - the whole bucket object even if just the tags change. This is true for the bucket object ACL changes also.
I'd like to correct that.

@ewbankkit
Copy link
Contributor Author

I'd certainly welcome any preliminary comments.

@ewbankkit
Copy link
Contributor Author

ewbankkit commented Feb 4, 2017

Because of the way the source attribute on the resource works - the value of source may not change but the contents of the file referred to may - we will have to always rewrite the bucket object whenever any change is detected.

@ewbankkit
Copy link
Contributor Author

Rebased.
Removing WIP.
Ready for review.

@ewbankkit ewbankkit changed the title [WIP] provider/aws Add S3 bucket object tag support provider/aws Add S3 bucket object tag support Feb 5, 2017
@stack72
Copy link
Contributor

stack72 commented Feb 13, 2017

LGTM Thanks for this work :)

% make testacc TEST=./builtin/providers/aws TESTARGS='-run=S3BucketObject'
==> Checking that code complies with gofmt requirements...
go generate $(go list ./... | grep -v /terraform/vendor/)
2017/02/13 16:45:28 Generated command/internal_plugin_list.go
TF_ACC=1 go test ./builtin/providers/aws -v -run=S3BucketObject -timeout 120m
=== RUN   TestAccDataSourceAWSS3BucketObject_basic
--- PASS: TestAccDataSourceAWSS3BucketObject_basic (98.21s)
=== RUN   TestAccDataSourceAWSS3BucketObject_readableBody
--- PASS: TestAccDataSourceAWSS3BucketObject_readableBody (95.32s)
=== RUN   TestAccDataSourceAWSS3BucketObject_kmsEncrypted
--- PASS: TestAccDataSourceAWSS3BucketObject_kmsEncrypted (126.91s)
=== RUN   TestAccDataSourceAWSS3BucketObject_allParams
--- PASS: TestAccDataSourceAWSS3BucketObject_allParams (102.44s)
=== RUN   TestAccAWSS3BucketObject_source
--- PASS: TestAccAWSS3BucketObject_source (61.92s)
=== RUN   TestAccAWSS3BucketObject_content
--- PASS: TestAccAWSS3BucketObject_content (61.63s)
=== RUN   TestAccAWSS3BucketObject_withContentCharacteristics
--- PASS: TestAccAWSS3BucketObject_withContentCharacteristics (59.16s)
=== RUN   TestAccAWSS3BucketObject_updates
--- PASS: TestAccAWSS3BucketObject_updates (104.26s)
=== RUN   TestAccAWSS3BucketObject_updatesWithVersioning
--- PASS: TestAccAWSS3BucketObject_updatesWithVersioning (105.96s)
=== RUN   TestAccAWSS3BucketObject_kms
--- PASS: TestAccAWSS3BucketObject_kms (91.82s)
=== RUN   TestAccAWSS3BucketObject_sse
--- PASS: TestAccAWSS3BucketObject_sse (67.96s)
=== RUN   TestAccAWSS3BucketObject_acl
--- PASS: TestAccAWSS3BucketObject_acl (108.00s)
=== RUN   TestResourceAWSS3BucketObjectAcl_validation
--- PASS: TestResourceAWSS3BucketObjectAcl_validation (0.00s)
=== RUN   TestAccAWSS3BucketObject_storageClass
--- PASS: TestAccAWSS3BucketObject_storageClass (108.61s)
=== RUN   TestResourceAWSS3BucketObjectStorageClass_validation
--- PASS: TestResourceAWSS3BucketObjectStorageClass_validation (0.00s)
=== RUN   TestAccAWSS3BucketObject_tags
--- PASS: TestAccAWSS3BucketObject_tags (62.80s)
PASS
ok  	github.com/hashicorp/terraform/builtin/providers/aws	1255.034s

@ghost
Copy link

ghost commented Apr 16, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants