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

Allow to force s3 object content type to be able to retreive the body… #2

Merged
merged 5 commits into from
Sep 5, 2017

Conversation

lpbedard
Copy link

@lpbedard lpbedard commented Sep 5, 2017

… for known object content

Use case:
We want to be able to read the content of a certificate from an s3 object. However, the mime type being application/x-x509-ca-cert, even though it is in text format, the regular expression blocks the retrieval of the body. This parameter tells terraform to process this content as what you are expecting.

@@ -110,6 +113,7 @@ func dataSourceAwsS3BucketObjectRead(d *schema.ResourceData, meta interface{}) e

bucket := d.Get("bucket").(string)
key := d.Get("key").(string)
forceContentType := d.Get("force_content_type").(string)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

forcedContentType same for the parameter forced_content_type

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

@jocgir jocgir merged commit 734cc86 into master Sep 5, 2017
@jocgir jocgir deleted the new-force-content-type-feature branch November 13, 2017 18:30
julienduchesne pushed a commit that referenced this pull request Feb 18, 2019
jocgir pushed a commit that referenced this pull request Apr 25, 2019
julienduchesne pushed a commit that referenced this pull request Jul 8, 2019
julienduchesne pushed a commit that referenced this pull request Nov 5, 2019
jocgir pushed a commit that referenced this pull request Jun 26, 2020
fixing retry logic - DescribeTags returns no err and an empty list of…
@github-actions
Copy link

I'm going to lock this pull request 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 related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants