Skip to content

A project I've been working on to learn Terraform and HCL

Notifications You must be signed in to change notification settings

tboltondev/cognito-authn-service

Repository files navigation

cognito-authn-service

A simple POC microservice for authentication using AWS cognito for the purpose of learning Terraform and HCL for provisioning the infrastructure as code.

Run locally

You will need Docker installed and to have set the following environment variables:

AWS_REGION=
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=

Then install packages and run:

$ npm i
$ npm run dev

Apply terraform changes

You will need terraform and the aws cli installed. In order to apply changes you will need to have configured the aws-cli with a valid AWS Access Key ID and AWS Secret Access Key. To initialise your terraform workspace (run in project root):

$ terraform init

To apply any infrastructure changes:

$ terraform apply

Releases

No releases published

Packages

No packages published