DEV Community

DarkEdges
DarkEdges

Posted on

Deploying the AWS API Gateway V2 to LocalStack

We are getting close to being able to test our solution, the final piece is the deployment of an AWS API Gateway v2 with an Authorizer that trusts Auth0 tokens.

For this we will create a number of AWS Configurations

  • API Gateway V2 will connect to the Fargate API Instance we deployed previously.

This is a lot of configuration items so they are avaiable in the following branch.

git switch apiv2
Enter fullscreen mode Exit fullscreen mode

First we will plan and then apply the changes if that is green, by using the following commands.

terraform plan
terraform apply --auto-approve
Enter fullscreen mode Exit fullscreen mode

Once it has been deployed you should get the following output

alb = "http://alb.elb.localhost.localstack.cloud:4566/"
Enter fullscreen mode Exit fullscreen mode

We will use this address in a future request to confirm the API has been deployed correctly.

Top comments (0)