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

feat: provide content type to S3 objects TDE-859 #642

Merged
merged 4 commits into from
Sep 8, 2023

Conversation

paulfouquet
Copy link
Collaborator

Allows fs_s3.write() to specify a content type to the object pushed into a S3 bucket.

TIFF:

aws s3api head-object --bucket linz-workflow-artifacts --key 2023-09/05-test-imagery-standardising-paul-84xsp/flat/BX24_5000_0405.tiff
{
    "AcceptRanges": "bytes",
    "Expiration": "expiry-date=\"Tue, 05 Dec 2023 00:00:00 GMT\", rule-id=\"OWVkZjBkNWMtZDIwNC00ZjI3LWEzOTUtODU0ZGJiYmFkZmFm\"",
    "LastModified": "2023-09-05T23:40:49+00:00",
    "ContentLength": 1725950,
    "ETag": "\"9c6af70db952ceef70ea6d5a0651abf9\"",
    "ContentType": "image/tiff; application=geotiff; profile=cloud-optimized",
    "ServerSideEncryption": "AES256",
    "Metadata": {}
}

JSON:

aws s3api head-object --bucket linz-workflow-artifacts --key 2023-09/05-test-imagery-standardising-paul-84xsp/flat/BX24_5000_0405.json
{
    "AcceptRanges": "bytes",
    "Expiration": "expiry-date=\"Tue, 05 Dec 2023 00:00:00 GMT\", rule-id=\"OWVkZjBkNWMtZDIwNC00ZjI3LWEzOTUtODU0ZGJiYmFkZmFm\"",
    "LastModified": "2023-09-05T23:41:13+00:00",
    "ContentLength": 1023,
    "ETag": "\"dfe4946f7987921b8fc65621261eadff\"",
    "ContentType": "application/json",
    "ServerSideEncryption": "AES256",
    "Metadata": {}
}

@amfage amfage added this pull request to the merge queue Sep 8, 2023
Merged via the queue into master with commit bbbd653 Sep 8, 2023
1 check passed
@amfage amfage deleted the feat/s3-write-content-type-tde-859 branch September 8, 2023 03:08
@github-actions github-actions bot mentioned this pull request Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants