-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
… for known object content
@@ -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) |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
…the content type to force it to be considered as text Added the required documentation
fixing retry logic - DescribeTags returns no err and an empty list of…
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. |
… 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.