This Terraform module has two private subnets and deploys an PostgreSQL database instance. Allowing inbound TCP traffic on 5432.
In/Out | Type | Protocol | FromPort | To Port | Description |
---|---|---|---|---|---|
INBOUND | PostgreSQL | TCP | 5432 | 5432 | Datafeeds Postgres RDS |
This repo controls the deployment of an application module.
It consists of the following core elements:
This file has the basic components for VPC
- Private subnets and route table associations
Deploys an RDS instance, security and database groups.
Various data outputs for other modules/consumers.
Input data for resources within this repo.
Code and resource tester with mock data. It can be expanded by adding further definitions to the unit.
This project currently depends on:
- drone v0.5+dev
- terraform v0.11.1+
- terragrunt v0.13.21+
- python v3.6.3+
Please ensure that you have the correct versions installed (it is not currently tested against the latest version of Drone)
To run tests using the tf testsuite:
drone exec --repo.trusted
To launch:
terragrunt plan
terragrunt apply
If the CI process appears to be stuck with a stale tf state
then run the following command to force a refresh:
terragrunt refresh
If the CI process is still failing after a refresh look for errors about items no longer available in AWS - say something that was deleted manually via the AWS console or CLI.
To explicitly delete the stale resource from TF state use the following command below. Note:terragrunt state rm
will not delete the resource from AWS it will unlink it from state only.
terragrunt state rm aws_resource_name