Deploying the Application to AWS with Terraform
Explore how to deploy a Golang application to AWS using Terraform by setting up Kubernetes namespaces, configuring NATS messaging, initializing databases, and managing secrets securely. Learn how to deploy and tear down resources while ensuring repeatable, automated infrastructure management.
To deploy the application, we will need to switch to the /deployment/application directory.
Similar to what we did for the infrastructure, we will prepare Terraform by installing the libraries that deploying the application will require by running the following command:
make ready
Getting to know the application resources to be deployed
As we did for the infrastructure, we have broken up the resources we will be deploying into multiple files.
Database setup
For the database, we will initialize the shared triggers and that action can be found in the database.tf file.