aws / aws/aws-toolkit-azure-devops

Allow the s3 upload task to set metadata (x-amz-meta-) values

Open
#405 0 comments 4 reactions 0 assignees View on GitHub
feature-request
Dominant language
TypeScript
Stars
258
Forks
114
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**

The current s3 upload task does not allow the ability to set x-amz-meta values. Currently we would be forced to use the cli to do this.

**Describe the solution you'd like**

An additional optional parameter that takes in an array or map of meta values to set for the object(s) being uploaded
Example:
```
- task: AmazonWebServices.aws-vsts-tools.S3Upload.S3Upload@1
inputs:
....
metadata:
- version: "1.2.3.4"
- customname: customvalue

```
Above command should result in the s3 objects with x-amz-meta-version set to 1.2.3.4 and x-amz-meta-customname to customvalue

Note: I don't know how the above should be property formatted or if there's a better way to do this, however it should operate like the --metadata option in the cli.

**Describe alternatives you've considered**

We can use the cli to do this, but would prefer to be able to use to the packaged task to make the code more simple.

Contributor guide

Open the contributing guide

Research direction

Start at the AmazonWebServices.aws-vsts-tools.S3Upload.S3Upload@1 task entry point and locate its input definitions and S3 upload implementation. Compare the requested optional metadata input with the AWS CLI --metadata behavior; done means uploaded objects receive the specified x-amz-meta values while existing uploads still work.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, typescript
Domain
cloud, devops
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.