Skip to content

jdhollis/datomic-http-direct-example

Repository files navigation

datomic-http-direct-example

This is a starter template for integrating Datomic's HTTP Direct with a service using Terraform. You can read more about the approach on my site: HTTP Direct with Datomic & Terraform

This also assumes you have a global Datomic service set up like datomic-service.

You can read more about my approach to integrating Datomic here: Datomic with Terraform

AWS

All Terraform and scripts assume you have the AWS CLI tools installed. On the Mac, you can install them via Homebrew:

brew install awscli

Credentials

All of the Terraform assumes that you have configured your AWS credentials the following way:

~/.aws/credentials

[ops]
aws_access_key_id = …
aws_secret_access_key = …

~/.aws/config

[profile ops]

[profile ops-dev]
source_profile = ops
role_arn = …

[profile ops-tools]
source_profile = ops
role_arn = …

[profile ops-stage]
source_profile = ops
role_arn = …

[profile ops-prod]
source_profile = ops
role_arn = …

You can configure using aws configure or edit the files directly.

Deployment

Check out my deployment-pipeline and pipeline-example for examples of how to integrate with CodePipeline.