Nothing has been indexed for 0.4.0 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.

Installation

# Add this to your shard.yml
dependencies:
  awscr-signer:
    github: taylorfinnell/awscr-signer
    version: ~> 0.4.0

Then run:

shards install

shard.yml

No shard.yml has been indexed for 0.4.0. You can read it on the repository.

Dependencies

Unknown: the shard.yml for this version has not been read yet.

README

This README is the one indexed from the repository at its latest ref, not from the tag for this version.

# awscr-signer

Crystal interface for AWS Signing.

Supports signing or presigning Crystal `HTTP::Request` objects.

## Installation

Add this to your application's `shard.yml`:

```yaml
dependencies:
  awscr-signer:
    github: taylorfinnell/awscr-signer
```

## Usage

**Create a `Signer::Signers::V4` object.**

```crystal
signer = Awscr::Signer::Signers::V4.new("service", "region", "key", "secret")
```

or

**Create a `Signer::Signers::V2` object.**

```crystal
signer = Awscr::Signer::Signers::V2.new("service", "region", "key", "secret")
```

**Signing an `HTTP::Request`.**

```crystal
signer.sign(request)
```

**Signing an `String`.**

```crystal
signer.sign("my string")
```

**Presign a `HTTP::Request`.**

```crystal
signer.presign(request)
```

[Examples](https://github.com/taylorfinnell/awscr-signer/tree/master/examples)

# S3

For S3 specific support see [awscr-s3](https://github.com/taylorfinnell/awscr-s3/).

# Known Limitations

The following items are known issues.

- The request URI can not contain repeating slashes.
- The request headers can not have new line separted values.
- The request path can not contain spaces.