nodes-vapor / aws Goto Github PK
View Code? Open in Web Editor NEWSwift wrapper around AWS API
License: MIT License
Swift wrapper around AWS API
License: MIT License
Trying to build a project that includes this package throws this error:
Cloning https://github.com/nodes-vapor/aws.git
error: The dependency graph could not be satisfied. The package (https://github.com/nodes-vapor/aws.git) with version tag in range (1.0.0..<1.9223372036854775807.9223372036854775807) is not found. Found tags ([0.0.0, 0.1.0])
Query should be a dictionary type not a string. Query keys need to be sorted and checked for duplicates.
Is it coming?
Shouldn't we be able to use the Region
enum, as it's marked as public
?
Add support for AWS STS temporary security credentials
Replace all external cURL calls with vapor/engine
's BasicClient
Hallo I had tried out the package and the upload works for me. But now for my full use case I have to delete the uploaded blobs and I saw in the code that there is no delete function. So my questions is Does someone work on this? I saw you are open for PRs, but first I would like to know if somebody works on this?
Thanks for this lib!
Can this library be used to develop ios apps?
Thank You.
I kept running into issues with the signature not matching the one generated by AWS. The problem turned out to be missing headers passed to the sign
function. This resolved the issue:
var signedHeaders = try signer.sign(payload: Payload.bytes(parameterString.bytes), method: .post, path: "/", headers: ["content-type": "application/x-www-form-urlencoded; charset=utf-8"])
signedHeaders[.contentType] = "application/x-www-form-urlencoded; charset=utf-8" // solved issue
I think the sign function should return the headers that are passed to it. What do you guys think?
Im receiving Socket failed with code 0 ("Success") [ipAddressValidationFailed("Name or service not known")]
let s3 = S3(host:"bucket.s3.amazonaws.com", accessKey: accessKey, secretKey: secretKey, region: .usEast1)
try s3.upload(bytes:file.part.body, path:filePath, access:.privateAccess)
Submit to PR allowing client to opt out of percent encoding. Clients encoder isn't as sensitive as amazon requires so it causes problems with spaces and dashes.
The supplied documentation for submitting to S3 does not reflect that of the S3 module.
i.e. init:
The documented:
S3( accessKey: "my-key", secretKey: "my-secret", region: "my-region", bucket: "my-s3-bucket")
The actual:
S3(host: "foo", accessKey: "bar", secretKey: "bar", region: .usWest2)
i.e. upload:
The documented:
.uploadFile("/path/to/local/file", "/folder/in/s3/bucket")
The actual:
upload(bytes: [UInt8(1)], path: "f", access: .authenticatedRead)
Required tests to be fully compliant:
Note: There are more test cases, but they don't pertain to us as they're testing valid key/values for queries.
**
: These tests don't apply to S3 signing; an S3 url should not be normalized.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.