Skip to content

Commit

Permalink
#23: Upgrade base module (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaklakariada authored Sep 30, 2024
1 parent 80867d6 commit 5936de7
Show file tree
Hide file tree
Showing 8 changed files with 97 additions and 90 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check_terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Setup TFLint
uses: terraform-linters/setup-tflint@v4
with:
tflint_version: v0.50.3
tflint_version: v0.53.0
- name: Log Terraform version
run: |
terraform version
Expand Down
146 changes: 73 additions & 73 deletions .terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ By that, this module allows you to quickly create an Exasol cluster for testing.
deputy = "<DEPUTY_EMAIL>"
datanode_count = 1
project = "<PROJECT_SHORT_TAG>"
license = "./exasolution.lic"
}
```

Expand All @@ -51,7 +50,6 @@ By that, this module allows you to quickly create an Exasol cluster for testing.
*.lock.hcl
generated/
```
* Get an Exasol license and save it as `exasolution.lic`
* Now run `terraform init` and `terraform apply`. Terraform will now create the cluster. That takes about half an hour.

Additionally it might be required to specify your AWS profile selected in file `~/.aws/config`:
Expand Down
1 change: 1 addition & 0 deletions doc/changes/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Changes:

* [2.0.0](changes_2.0.0.md)
* [1.2.3](changes_1.2.3.md)
* [1.2.2](changes_1.2.2.md)
* [1.2.1](changes_1.2.1.md)
Expand Down
15 changes: 15 additions & 0 deletions doc/changes/changes_2.0.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# terraform-aws-exasol-test-setup 2.0.0, released 2024-09-30

Code name: Fix NodeJS version in CloudFormation template

## Summary

This release upgrades to base module `terraform-aws-exasol` version 2.0.0 to fix issues with a deprecated NodeJS version used in CloudFormation template.

### Breaking Change

The "Bring your Own License" (BYOL) AMI images are deprecated and not available any more. Specifying your own license file is not possible any more. Please use the "Pay as you go" (PAYG) AMI images, e.g. Exasol-R7.1.26-PAYG.

## Bugfixes

* #23: Fixed NodeJS version in CloudFormation template
3 changes: 1 addition & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ resource "random_password" "exasol_admin_password" {

module "exasol" {
source = "exasol/exasol/aws"
version = "1.0.4"
version = "2.0.0"
cluster_name = "${local.project_tag}-exasol-cluster"
database_name = "exadb"
ami_image_name = var.exasol_image
Expand All @@ -157,7 +157,6 @@ module "exasol" {
project_name = local.id
owner = var.owner
environment = "dev"
license = var.license
}

resource "local_file" "test_config" {
Expand Down
10 changes: 2 additions & 8 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,10 @@ variable "datanode_count" {
type = number
}

variable "license" {
default = null
description = "A path to license file that can be used with Bring Your Own License (BYOL) installation."
type = string
}

variable "exasol_image" {
description = "An Exasol AMI image name. For example, 'R6.1.5-PAYG' or 'R6.2.1-BYOL'."
description = "An Exasol AMI image name. For example, 'Exasol-R7.1.26-PAYG'."
type = string
default = "Exasol-R7.1.26-BYOL"
default = "Exasol-R7.1.26-PAYG"
}

variable "datanode_instance_type" {
Expand Down
8 changes: 4 additions & 4 deletions versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@ terraform {
required_providers {
random = {
source = "hashicorp/random"
version = "3.6.0"
version = "3.6.3"
}
local = {
source = "hashicorp/local"
version = "2.4.1"
version = "2.5.2"
}
tls = {
source = "hashicorp/tls"
version = "4.0.5"
version = "4.0.6"
}
aws = {
source = "hashicorp/aws"
version = "5.40.0"
version = "5.68.0"
}
}
}

0 comments on commit 5936de7

Please sign in to comment.