https://github.com/mattmassicotte/swift-keyspaces
An experiment connecting Swift to AWS Keyspaces (Cassandra)
https://github.com/mattmassicotte/swift-keyspaces
aws aws-keyspaces aws-lambda cassandra swift
Last synced: about 2 months ago
JSON representation
An experiment connecting Swift to AWS Keyspaces (Cassandra)
- Host: GitHub
- URL: https://github.com/mattmassicotte/swift-keyspaces
- Owner: mattmassicotte
- License: bsd-3-clause
- Created: 2022-12-17T19:42:35.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-22T16:30:58.000Z (over 2 years ago)
- Last Synced: 2025-02-10T18:13:28.506Z (4 months ago)
- Topics: aws, aws-keyspaces, aws-lambda, cassandra, swift
- Language: Swift
- Homepage:
- Size: 17.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# swift-keyspaces
An experiment connecting Swift to AWS Keyspaces (Cassandra)
- [CassandraClient](https://github.com/apple/swift-cassandra-client)
- [AWSLambdaRuntime](https://github.com/swift-server/swift-aws-lambda-runtime)
- [AWS Lambda](https://aws.amazon.com/lambda/)
- [AWS Keyspaces](https://aws.amazon.com/keyspaces/)## AWS Configuration
This project includes a CloudFormation template that gets you nearly set up. You also need a user with Keyspaces credentials and an S3 bucket to host all of the artifacts.
Policy needed for user:
```json
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"cassandra:Create",
"cassandra:Select",
"cassandra:Modify"
],
"Resource": [
"arn:aws:cassandra:*:YOUR_ACCOUNT_ID_GOES_HERE:/keyspace/swift_keyspaces_test/",
"arn:aws:cassandra:*:YOUR_ACCOUNT_ID_GOES_HERE:/keyspace/swift_keyspaces_test/table/*"
]
},
{
"Sid": "VisualEditor1",
"Effect": "Allow",
"Action": "cassandra:Select",
"Resource": "arn:aws:cassandra:*:YOUR_ACCOUNT_ID_GOES_HERE:/keyspace/system/table/*"
}
]
}
```
## Code of ConductEveryone interacting in the rake-remote-file project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/mattmassicotte/rake-remote-file/blob/master/CODE_OF_CONDUCT.md).