amazonite
Version, currently 0.1.13 versions
- 0.2.1latestJan 1, 2023
- 0.1.2not indexedFeb 21, 2023
- 0.1.1not indexedFeb 21, 2023
github.com/rjnienaber/amazonite
An unofficial SDK for Crystal, supporting popular AWS APIs
Nothing has been indexed for 0.1.1 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:
amazonite:
github: rjnienaber/amazonite
version: ~> 0.1.1Then run:
shards installshard.yml
No shard.yml has been indexed for 0.1.1. 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.
Amazonite AWS SDK
Amazonite is an unofficial AWS SDK for Crystal.
Usage
Here's an example that creates a table in DynamoDB:
require "amazonite/dynamodb_v2"
private alias DB = Amazonite::DynamoDBV2
model = DB::CreateTableInput.new(
[
DB::AttributeDefinition.new("Artist", DB::ScalarAttributeType::S),
DB::AttributeDefinition.new("SongTitle", DB::ScalarAttributeType::S)
],
"Music",
[
DB::KeySchemaElement.new("Artist", DB::KeyType::Hash),
DB::KeySchemaElement.new("SongTitle", DB::KeyType::Range)
],
provisioned_throughput: DB::ProvisionedThroughput.new(10, 5),
)
client = DB::Client.new # read credentials from environment variables
response = client.create_table(model)
puts response.http.status_code # 200
result = response.result
puts result.table_description.try &.table_name # Music
puts result.table_description.try &.attribute_definitions.try &.[0].attribute_name # Artist
Output:
200
Music
Artist
Supported APIs
API types that can be generated:
json
API types that are in progress:
rest-jsonquery
| Name | Supported? | Integration Tests | Notes |
|---|---|---|---|
| DynamoDB | โ | โ | |
| SSM | โ | โ | |
| S3 | ๐ซ | ๐ซ | Consider using awscr-s3 |
For example usage, please look at the integration tests. If you need an API that is not listed here, please open an issue or pull request with the generated code.
Installation
-
Add the dependency to your
shard.yml:dependencies: amazonite: github: rjnienaber/amazonite -
Run
shards install
Development
Once you've cloned the repo, have a look at the scripts directory for some scripts that help with development. Some of them use the excellent watchexec tool to watch for changes.
./scripts/watch_specs.sh- watches for code changes and runs the specs
./scripts/watch_codegen.sh- watches for code changes and regenerates the code for apis
./scripts/watch_integration.cr- watches for code changes and executes integration tests
Contributing
- Fork it (https://github.com/rjnienaber/amazonite/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- Richard Nienaber - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.1.1- Tagged
- Feb 21, 2023
- Commit
a4efe5916895- Indexed
- not yet
Dependents
No indexed shard depends on this one yet.
Repository
github.com/rjnienaber/amazonite
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 16, 2026
- Synced
- Aug 15, 2026
- Versions
- 3