Skip to content

Commit 21b788a

Browse files
committed
feat: update AWS provider versions, add WEB_CONCURRENCY env var, and generate terraform graph
- Add .terraform file patterns to .gitignore - Configure WEB_CONCURRENCY in _local.tf based on autoscaling settings - Generate updated terraform dependency graph in tfutil.sh and output as graph.png
1 parent 8693b5f commit 21b788a

5 files changed

Lines changed: 13 additions & 5 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.terraform.*
2+
.terraform/**

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,10 @@ The current architectural design for dibbs-aws is as follows:
111111

112112
| Name | Version |
113113
|------|---------|
114-
| <a name="provider_aws"></a> [aws](#provider\_aws) | ~> 5.86.0 |
115-
| <a name="provider_dockerless"></a> [dockerless](#provider\_dockerless) | ~> 0.1.1 |
116-
| <a name="provider_null"></a> [null](#provider\_null) | ~> 3.2.3 |
117-
| <a name="provider_random"></a> [random](#provider\_random) | ~> 3.6.3 |
114+
| <a name="provider_aws"></a> [aws](#provider\_aws) | 5.86.1 |
115+
| <a name="provider_dockerless"></a> [dockerless](#provider\_dockerless) | 0.1.1 |
116+
| <a name="provider_null"></a> [null](#provider\_null) | 3.2.4 |
117+
| <a name="provider_random"></a> [random](#provider\_random) | 3.6.3 |
118118

119119
## Modules
120120

_local.tf

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,12 @@ locals {
158158
registry_url = local.registry_url,
159159
root_service = false,
160160
listener_priority = 50000
161-
env_vars = []
161+
env_vars = [
162+
{
163+
name = "WEB_CONCURRENCY",
164+
value = try((floor(var.override_autoscaling["fhir-converter"].cpu/1000) + 1), 1)
165+
}
166+
]
162167
},
163168
ingestion = {
164169
short_name = "inge",

graph.png

355 KB
Loading

tfutil.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
terraform fmt
44
terraform-docs markdown table --output-file README.md --output-mode inject .
55
tflint -f compact
6+
terraform graph -draw-cycles | dot -Tpng >graph.png

0 commit comments

Comments
 (0)