Skip to content

Commit ef6bfad

Browse files
committed
PR Ready
1 parent 8324e54 commit ef6bfad

File tree

14 files changed

+1091
-0
lines changed

14 files changed

+1091
-0
lines changed

grafana/non-prod/readme.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Grafana infrastructure
2+
3+
The build comes in 2 parts
4+
1. Docker image
5+
2. AWS Infrastructure
6+
7+
## Docker Image
8+
9+
The docker file is built and pushed to the AWS ECT
10+
11+
The code may be found in the docker folder.
12+
13+
## Infrastructure
14+
15+
### Terraform state
16+
S3 bucket name : immunisation-grafana-terraform-state
17+
18+
The infrastructure is built using terraform. The code may be found in the terraform folder.
19+
20+
to rebuild the docker image from the ECR to ECS, run
21+
```
22+
terraform taint aws_ecs_task_definition.app
23+
```
24+
25+
to review the docker image
26+
```
27+
docker image inspect imms-fhir-api-grafana:11.0.0-22.04_stable
28+
```
29+
30+
### vpce vs nat gateway
31+
32+
By default, grafana image requires access to internet for plugins and updates.
33+
1. Disable internet access. The updates can be disabled and plugins can be preloaded. However, this was timeboxed and timed out.
34+
2. Permit access via VPC Endpoints. This gives access to AWS services. However updates & & info updates require internet access by default. To avoid a natgw, a proxy could be used.
35+
3. NatGateway - this is the current solutipn. However, it should be reviewed as it is more permissive and has higher costs.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Compiled files
2+
*.tfstate
3+
*.tfstate.backup
4+
.terraform.tfstate.lock.info
5+
6+
# Module directory
7+
.terraform/

grafana/non-prod/terraform/.terraform.lock.hcl

Lines changed: 74 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)