{"id":13615773,"url":"https://github.com/ml-archive/aws","last_synced_at":"2025-04-13T21:31:25.931Z","repository":{"id":217530948,"uuid":"73916228","full_name":"ml-archive/aws","owner":"ml-archive","description":"Swift wrapper around AWS API","archived":true,"fork":false,"pushed_at":"2018-03-21T03:25:59.000Z","size":97,"stargazers_count":72,"open_issues_count":11,"forks_count":20,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-11-07T23:39:55.658Z","etag":null,"topics":["aws","brto","s3","server-side-swift","swift","vapor","vapor-2"],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ml-archive.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2016-11-16T12:03:45.000Z","updated_at":"2024-05-30T20:45:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"83259263-b4d3-43f9-97d6-4775e86e5023","html_url":"https://github.com/ml-archive/aws","commit_stats":null,"previous_names":["nodes-vapor/aws","ml-archive/aws"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ml-archive%2Faws","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ml-archive%2Faws/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ml-archive%2Faws/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ml-archive%2Faws/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ml-archive","download_url":"https://codeload.github.com/ml-archive/aws/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248786294,"owners_count":21161428,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","brto","s3","server-side-swift","swift","vapor","vapor-2"],"created_at":"2024-08-01T20:01:17.743Z","updated_at":"2025-04-13T21:31:20.906Z","avatar_url":"https://github.com/ml-archive.png","language":"Swift","funding_links":[],"categories":["HarmonyOS"],"sub_categories":["Windows Manager"],"readme":"# AWS\n[![Swift Version](https://img.shields.io/badge/Swift-3-brightgreen.svg)](http://swift.org)\n[![Vapor Version](https://img.shields.io/badge/Vapor-2-F6CBCA.svg)](http://vapor.codes)\n[![Circle CI](https://circleci.com/gh/nodes-vapor/aws/tree/master.svg?style=shield)](https://circleci.com/gh/nodes-vapor/aws)\n[![codebeat badge](https://codebeat.co/badges/255e7772-28ec-4695-bdd5-770cfd676d9c)](https://codebeat.co/projects/github-com-nodes-vapor-aws-master)\n[![codecov](https://codecov.io/gh/nodes-vapor/aws/branch/master/graph/badge.svg)](https://codecov.io/gh/nodes-vapor/aws)\n[![Readme Score](http://readme-score-api.herokuapp.com/score.svg?url=https://github.com/nodes-vapor/aws)](http://clayallsopp.github.io/readme-score?url=https://github.com/nodes-vapor/aws)\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/nodes-vapor/aws/master/LICENSE)\n\n\nThis package makes it easy to use AWS resources from Swift.\n\n## 📦 Installation\n\nUpdate your `Package.swift` file.\n```swift\n.Package(url: \"https://github.com/nodes-vapor/aws.git\", majorVersion: 1)\n```\n\n\n## Getting started 🚀\n\nCurrently the following AWS Services are available:\n- EC2\n- S3\n\nIf you need other resources you can use Raw call, to call the AWS API directly.\n\n### EC2\n\n**Describe instances**\n\n```swift\ndo {\n    let instances = try EC2(\n        accessKey: \"my-key\", \n        secretKey: \"my-secret\", \n        region: \"my-region\"\n    ).describeInstances()\n} catch {\n\n}\n```\n\n### S3\n\n**Upload a file to S3**\n\n```swift\ndo {\n    try S3(\n        accessKey: \"my-key\", \n        secretKey: \"my-secret\", \n        region: \"my-region\", \n        bucket: \"my-s3-bucket\"\n    ).uploadFile(\"/path/to/local/file\", \"/folder/in/s3/bucket\")\n} catch {\n\n}\n```\n\n### Raw call\n\nIf you need a resource not made in one of the functions, you can use the system to call the AWS API directly.\n\n**Describe instances example**\n\n```swift\ndo {\n    return try CallAWS().call(\n        method: \"GET\", \n        service: \"ec2\", \n        host: \"ec2.amazonaws.com\", \n        region: \"my-region\", \n        baseURL: \"https://ec2.amazonaws.com\", \n        key: \"my-key\", \n        secret: \"my-secret\", \n        requestParam: \"Action=DescribeInstances\"\n    )\n} catch {\n\n}\n```\n\n## 📃 Development\n\nIf you want to improve this, you'll need to make sure you're making a copy of OpenSSL available to `swift build` and the toolchain. If you use Xcode, something like the following after `brew install openssl` will work:\n\n```\nswift package -Xswiftc -I/usr/local/Cellar/openssl/1.0.2j/include -Xlinker -L/usr/local/Cellar/openssl/1.0.2j/lib/ generate-xcodeproj\n```\n\n## 🏆 Credits\n\nThis package is developed and maintained by the Vapor team at [Nodes](https://www.nodesagency.com).\nThe package owner for this project is [Brett](https://github.com/brettRToomey).\n\n\n## 📄 License\n\nThis package is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fml-archive%2Faws","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fml-archive%2Faws","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fml-archive%2Faws/lists"}