Native Swift 3 SDK for AWS (Amazon Web Services)
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


A Native Swift 3 SDK for AWS Services, for use both on device and on servers! Supports iOS, macOS, tvOS and Linux.


We believe that Swift has the potential to be everywhere - from running the applications on your mobile devices, to powering backends on servers and everything from scripting to websites in between. AWS is the most popular cloud computing provider and in order for us to be able to interact with it on any platform we need a native SDK. Whether it be deploying EC2 instances from scripts, to interacting with massive DynamoDB databases, we want AWSwift to do it all!

Supported Services

The list of AWS services we currently support are:

  • DynamoDB


AWSwift can be installed using Cocoapods and the Swift Package Manager.


Coming soon...

Swift Package Manager

To use AWSwift, just include it as a dependency in your Package.swift file:

let package = Package(
    name: "MyPackage",
    dependencies: [
        .Package(url: "", majorVersion: 0)



Create an instance of the ConnectionManager with your access ID and access Key Secret and specify the region you wish to connect to:

let connectionManager = ConnectionManager(accessId: accessID, accessSecret: accessSecret, region: .euWest1)

Create a DynamoDbTable with the details for the table:

let petsTable = DynamoDbTable(tableName: "Pets", partitionKey: "AnimalType", sortKey: "Name", connectionManager: connectionManager)

Then perform the action that you want on the table. For a get, you need a key and use it as so:

let key = DynamoDbTableKeyValues(partitionKeyValue: "Dog", sortKeyValue: "Fred")

petsTable.getItem(keyValues: key) { (response, errror) in
    print("Response was \(response)")

Vapor Providers