Skip to content

Commit

Permalink
Update aws/iglu_server to support AWS China (closes #94)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbeemster committed Apr 3, 2024
1 parent c0d170b commit 04d7801
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 4 deletions.
3 changes: 2 additions & 1 deletion terraform/aws/iglu_server/default/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
|------|--------|---------|
| <a name="module_iglu_lb"></a> [iglu\_lb](#module\_iglu\_lb) | snowplow-devops/alb/aws | 0.2.0 |
| <a name="module_iglu_rds"></a> [iglu\_rds](#module\_iglu\_rds) | snowplow-devops/rds/aws | 0.4.0 |
| <a name="module_iglu_server"></a> [iglu\_server](#module\_iglu\_server) | snowplow-devops/iglu-server-ec2/aws | 0.5.0 |
| <a name="module_iglu_server"></a> [iglu\_server](#module\_iglu\_server) | snowplow-devops/iglu-server-ec2/aws | 0.5.1 |

## Resources

Expand All @@ -43,6 +43,7 @@
| <a name="input_cloudwatch_logs_enabled"></a> [cloudwatch\_logs\_enabled](#input\_cloudwatch\_logs\_enabled) | Whether application logs should be reported to CloudWatch | `bool` | `true` | no |
| <a name="input_cloudwatch_logs_retention_days"></a> [cloudwatch\_logs\_retention\_days](#input\_cloudwatch\_logs\_retention\_days) | The length of time in days to retain logs for | `number` | `7` | no |
| <a name="input_iam_permissions_boundary"></a> [iam\_permissions\_boundary](#input\_iam\_permissions\_boundary) | The permissions boundary ARN to set on IAM roles created | `string` | `""` | no |
| <a name="input_private_ecr_registry"></a> [private\_ecr\_registry](#input\_private\_ecr\_registry) | The URL of an ECR registry that the sub-account has access to (e.g. '000000000000.dkr.ecr.cn-north-1.amazonaws.com.cn/') | `string` | `""` | no |
| <a name="input_ssl_information"></a> [ssl\_information](#input\_ssl\_information) | The ARN of an Amazon Certificate Manager certificate to bind to the load balancer | <pre>object({<br> enabled = bool<br> certificate_arn = string<br> })</pre> | <pre>{<br> "certificate_arn": "",<br> "enabled": false<br>}</pre> | no |
| <a name="input_tags"></a> [tags](#input\_tags) | The tags to append to the resources in this module | `map(string)` | `{}` | no |
| <a name="input_telemetry_enabled"></a> [telemetry\_enabled](#input\_telemetry\_enabled) | Whether or not to send telemetry information back to Snowplow Analytics Ltd | `bool` | `true` | no |
Expand Down
4 changes: 3 additions & 1 deletion terraform/aws/iglu_server/default/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ module "iglu_lb" {

module "iglu_server" {
source = "snowplow-devops/iglu-server-ec2/aws"
version = "0.5.0"
version = "0.5.1"

accept_limited_use_license = var.accept_limited_use_license

Expand Down Expand Up @@ -66,4 +66,6 @@ module "iglu_server" {

cloudwatch_logs_enabled = var.cloudwatch_logs_enabled
cloudwatch_logs_retention_days = var.cloudwatch_logs_retention_days

private_ecr_registry = var.private_ecr_registry
}
3 changes: 3 additions & 0 deletions terraform/aws/iglu_server/default/terraform.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,6 @@ tags = {}
# --- CloudWatch logging to ensure logs are saved outside of the server
cloudwatch_logs_enabled = true
cloudwatch_logs_retention_days = 7

# --- Image Repositories
private_ecr_registry = ""
6 changes: 6 additions & 0 deletions terraform/aws/iglu_server/default/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,9 @@ variable "cloudwatch_logs_retention_days" {
default = 7
type = number
}

variable "private_ecr_registry" {
description = "The URL of an ECR registry that the sub-account has access to (e.g. '000000000000.dkr.ecr.cn-north-1.amazonaws.com.cn/')"
type = string
default = ""
}
3 changes: 2 additions & 1 deletion terraform/aws/iglu_server/secure/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
|------|--------|---------|
| <a name="module_iglu_lb"></a> [iglu\_lb](#module\_iglu\_lb) | snowplow-devops/alb/aws | 0.2.0 |
| <a name="module_iglu_rds"></a> [iglu\_rds](#module\_iglu\_rds) | snowplow-devops/rds/aws | 0.4.0 |
| <a name="module_iglu_server"></a> [iglu\_server](#module\_iglu\_server) | snowplow-devops/iglu-server-ec2/aws | 0.5.0 |
| <a name="module_iglu_server"></a> [iglu\_server](#module\_iglu\_server) | snowplow-devops/iglu-server-ec2/aws | 0.5.1 |

## Resources

Expand All @@ -44,6 +44,7 @@
| <a name="input_cloudwatch_logs_enabled"></a> [cloudwatch\_logs\_enabled](#input\_cloudwatch\_logs\_enabled) | Whether application logs should be reported to CloudWatch | `bool` | `true` | no |
| <a name="input_cloudwatch_logs_retention_days"></a> [cloudwatch\_logs\_retention\_days](#input\_cloudwatch\_logs\_retention\_days) | The length of time in days to retain logs for | `number` | `7` | no |
| <a name="input_iam_permissions_boundary"></a> [iam\_permissions\_boundary](#input\_iam\_permissions\_boundary) | The permissions boundary ARN to set on IAM roles created | `string` | `""` | no |
| <a name="input_private_ecr_registry"></a> [private\_ecr\_registry](#input\_private\_ecr\_registry) | The URL of an ECR registry that the sub-account has access to (e.g. '000000000000.dkr.ecr.cn-north-1.amazonaws.com.cn/') | `string` | `""` | no |
| <a name="input_ssl_information"></a> [ssl\_information](#input\_ssl\_information) | The ARN of an Amazon Certificate Manager certificate to bind to the load balancer | <pre>object({<br> enabled = bool<br> certificate_arn = string<br> })</pre> | <pre>{<br> "certificate_arn": "",<br> "enabled": false<br>}</pre> | no |
| <a name="input_tags"></a> [tags](#input\_tags) | The tags to append to the resources in this module | `map(string)` | `{}` | no |
| <a name="input_telemetry_enabled"></a> [telemetry\_enabled](#input\_telemetry\_enabled) | Whether or not to send telemetry information back to Snowplow Analytics Ltd | `bool` | `true` | no |
Expand Down
4 changes: 3 additions & 1 deletion terraform/aws/iglu_server/secure/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ module "iglu_lb" {

module "iglu_server" {
source = "snowplow-devops/iglu-server-ec2/aws"
version = "0.5.0"
version = "0.5.1"

accept_limited_use_license = var.accept_limited_use_license

Expand Down Expand Up @@ -68,4 +68,6 @@ module "iglu_server" {

cloudwatch_logs_enabled = var.cloudwatch_logs_enabled
cloudwatch_logs_retention_days = var.cloudwatch_logs_retention_days

private_ecr_registry = var.private_ecr_registry
}
3 changes: 3 additions & 0 deletions terraform/aws/iglu_server/secure/terraform.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,6 @@ tags = {}
# --- CloudWatch logging to ensure logs are saved outside of the server
cloudwatch_logs_enabled = true
cloudwatch_logs_retention_days = 7

# --- Image Repositories
private_ecr_registry = ""
6 changes: 6 additions & 0 deletions terraform/aws/iglu_server/secure/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,9 @@ variable "cloudwatch_logs_retention_days" {
default = 7
type = number
}

variable "private_ecr_registry" {
description = "The URL of an ECR registry that the sub-account has access to (e.g. '000000000000.dkr.ecr.cn-north-1.amazonaws.com.cn/')"
type = string
default = ""
}

0 comments on commit 04d7801

Please sign in to comment.