Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ukhomeoffice/dq-tf-external-tableau
https://github.com/ukhomeoffice/dq-tf-external-tableau
hodq terraform
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ukhomeoffice/dq-tf-external-tableau
- Owner: UKHomeOffice
- License: mit
- Created: 2017-11-24T16:31:33.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-11-05T13:11:17.000Z (3 days ago)
- Last Synced: 2024-11-05T14:18:54.335Z (3 days ago)
- Topics: hodq, terraform
- Language: HCL
- Size: 181 KB
- Stars: 3
- Watchers: 17
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dq-tf-external-tableau
This Terraform module has one subnet and deploys an EC2 instance representing a web server with postgress to a greenplum database. Allowing inbound HTTPS TCP traffic on port 443, and inbound RDP TCP traffic on port 3389 .
## Connectivity
| In/Out | Type | Protocol | FromPort| To Port | TLS |
| ------------- |:-------------:| -----:| -----:|-----:| -----:|
|INBOUND | RDP | TCP |3389 | 3389| TLS to External Tableau ELB |
|INBOUND | HTTPS | TCP | 443 | 443 | TLS to External Tableau ELB |## Content overview
This repo controls the deployment of an application module.
It consists of the following core elements:
### main.tf
This file has the basic components for EC2 instances.
- Private subnet and route table association
- An EC2 instance using the connectivity tester module
- Security group for the EC2 instance### variables.tf
Input data for resources within this repo.
### tests/e2e_test.py
Code and resource tester with mock data. It can be expanded by adding further definitions to the unit.
## User guide
### Prepare your local environment
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)
### How to run/deploy
To run tests using the [tf testsuite](https://github.com/UKHomeOffice/dq-tf-testsuite):
```shell
drone exec --repo.trusted
```
To launch:
```shell
terragrunt plan
terragrunt apply
```## FAQs
### The remote state isn't updating, what do I do?
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.```shell
terragrunt state rm aws_resource_name
```