diff --git a/terraform/modules/container/README.md b/terraform/modules/container/README.md index f5ab0df..ecbca09 100644 --- a/terraform/modules/container/README.md +++ b/terraform/modules/container/README.md @@ -35,7 +35,7 @@ No modules. |------|-------------|------|---------|:--------:| | [additional\_host\_urls](#input\_additional\_host\_urls) | n/a | `list(string)` | `[]` | no | | [application\_type](#input\_application\_type) | defines what type of application is running, fullstack, client, backend, etc. will be used for cloudwatch logs | `string` | n/a | yes | -| [container\_cpu](#input\_container\_cpu) | n/a | `number` | `512` | no | +| [container\_cpu](#input\_container\_cpu) | n/a | `number` | `256` | no | | [container\_environment](#input\_container\_environment) | n/a |
list(object({
name = string
value = string
})) | n/a | yes |
| [container\_environment\_secrets](#input\_container\_environment\_secrets) | n/a | list(object({
name = string
valueFrom = string
})) | `[]` | no |
| [container\_image](#input\_container\_image) | n/a | `string` | n/a | yes |
@@ -44,6 +44,7 @@ No modules.
| [environment](#input\_environment) | n/a | `string` | n/a | yes |
| [health\_check\_path](#input\_health\_check\_path) | n/a | `string` | `"/"` | no |
| [hostname](#input\_hostname) | n/a | `string` | n/a | yes |
+| [launch\_type](#input\_launch\_type) | n/a | `string` | `"fargate"` | no |
| [listener\_priority](#input\_listener\_priority) | n/a | `number` | n/a | yes |
| [path](#input\_path) | n/a | `string` | `null` | no |
| [project\_name](#input\_project\_name) | The overall name of the project using this infrastructure; used to group related resources by | `any` | n/a | yes |
diff --git a/terraform/modules/dns-entry/README.md b/terraform/modules/dns-entry/README.md
index 3e13f65..75b310b 100644
--- a/terraform/modules/dns-entry/README.md
+++ b/terraform/modules/dns-entry/README.md
@@ -1,4 +1,10 @@
+# dns-entry
+
+This is used to create a root DNS entry in Route 53, for example "qa.vrms.io" or "staging.homeunite.us".
+The Route 53 DNS entry points to incubator's main ingress (cloudfront or ALB). All services that require
+web access (frontends or API backends) should use this.
+
## Requirements
No requirements.
@@ -18,19 +24,17 @@ No modules.
| Name | Type |
|------|------|
| [aws_route53_record.www](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/route53_record) | resource |
-| [aws_lb.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/lb) | data source |
-| [aws_route53_zone.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/route53_zone) | data source |
## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
-| [subdomain](#input\_subdomain) | n/a | `string` | n/a | yes |
-| [zone\_id](#input\_zone\_id) | n/a | `string` | n/a | yes |
+| [subdomain](#input\_subdomain) | DNS entry - for example, in `qa.vrms.io` the subdomain is `qa` | `string` | n/a | yes |
+| [zone\_id](#input\_zone\_id) | the Route 53 hosted zone id to create the entry | `string` | n/a | yes |
## Outputs
| Name | Description |
|------|-------------|
-| [full\_dns\_name](#output\_full\_dns\_name) | n/a |
+| [full\_dns\_name](#output\_full\_dns\_name) | full dns name, i.e. `qa.vrms.io` |
\ No newline at end of file
diff --git a/terraform/modules/dns-entry/main.tf b/terraform/modules/dns-entry/main.tf
index 21f4a5a..97603c0 100644
--- a/terraform/modules/dns-entry/main.tf
+++ b/terraform/modules/dns-entry/main.tf
@@ -1,15 +1,22 @@
+/**
+ * # dns-entry
+ *
+ * This is used to create a root DNS entry in Route 53, for example "qa.vrms.io" or "staging.homeunite.us".
+ * The Route 53 DNS entry points to incubator's main ingress (cloudfront or ALB). All services that require
+ * web access (frontends or API backends) should use this.
+ *
+ */
+// terraform-docs-ignore
data "aws_route53_zone" "this" {
zone_id = var.zone_id
}
-
+// terraform-docs-ignore
data "aws_lb" "this" {
arn = "arn:aws:elasticloadbalancing:us-west-2:035866691871:loadbalancer/app/incubator-prod-lb/7451adf77133ef36"
}
-
-
resource "aws_route53_record" "www" {
zone_id = var.zone_id
name = var.subdomain
diff --git a/terraform/modules/dns-entry/outputs.tf b/terraform/modules/dns-entry/outputs.tf
index bd82e80..7ad1c0e 100644
--- a/terraform/modules/dns-entry/outputs.tf
+++ b/terraform/modules/dns-entry/outputs.tf
@@ -1,3 +1,4 @@
output "full_dns_name" {
value = "${var.subdomain}.${data.aws_route53_zone.this.name}"
+ description = "full dns name, i.e. `qa.vrms.io`"
}
\ No newline at end of file
diff --git a/terraform/modules/dns-entry/variables.tf b/terraform/modules/dns-entry/variables.tf
index 28a1ca9..30fd8e6 100644
--- a/terraform/modules/dns-entry/variables.tf
+++ b/terraform/modules/dns-entry/variables.tf
@@ -1,8 +1,10 @@
variable "zone_id" {
type = string
+ description = "the Route 53 hosted zone id to create the entry"
}
variable "subdomain" {
type = string
+ description = "DNS entry - for example, in `qa.vrms.io` the subdomain is `qa`"
}
diff --git a/terraform/modules/ecr/.terraform.docs.yml b/terraform/modules/ecr/.terraform.docs.yml
deleted file mode 100644
index 8f17113..0000000
--- a/terraform/modules/ecr/.terraform.docs.yml
+++ /dev/null
@@ -1,60 +0,0 @@
-formatter: "markdown table" # this is required
-version: ""
-
-header-from: main.tf
-footer-from: ""
-
-recursive:
- enabled: false
- path: modules
-
-sections:
- hide: []
- show: []
-
-content: |-
- # ECR
-
- Add description.
-
- {{ .Header }}
- {{ .Modules }}
- {{ .Resources }}
- {{ .Inputs }}
- {{ .Outputs }}
- {{ .Providers }}
- {{ .Requirements }}
- {{ .Footer }}
- To automatically update this documentation, install terraform-docs on your local machine run the following:
- cd