Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#37 Upgrade NodeJS version in CloudFormation template #38

Merged
merged 8 commits into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 16 additions & 13 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,34 @@
name: CI Build

on:
- push
push:
branches: ["main"]
pull_request:

jobs:
build:
name: Building with Terraform version ${{ matrix.terraform_version }}
defaults:
run:
shell: "bash"
permissions:
contents: read
runs-on: ubuntu-latest
strategy:
matrix:
terraform_version: ["1.5.1"]

steps:
- name: Checkout the repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install terraform
uses: hashicorp/setup-terraform@v2
with:
terraform_version: ${{ matrix.terraform_version }}

- name: Install tflint
uses: terraform-linters/setup-tflint@v3
uses: terraform-linters/setup-tflint@v4
with:
tflint_version: v0.47.0
tflint_version: v0.50.3

- name: Log Terraform version
run: |
terraform version
tflint --version

- name: Run CI Script
run: ./scripts/ci.sh
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

* [1.0.4](changes_1.0.4.md)
* [1.0.3](changes_1.0.3.md)
* [1.0.2](changes_1.0.2.md)
* [1.0.1](changes_1.0.1.md)
Expand Down
13 changes: 13 additions & 0 deletions doc/changes/changes_1.0.4.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# terraform-aws-exasol 1.0.4, released 2024-03-11

Code name: Fix deployment

## Summary

This release updates the NodeJS version for Lambdas used by the CloudFormation template during deployment to 16.x.

Starting with this version terraform-aws-exasol is tested with Terraform 1.5.7. We recommend using the same version.

## Bug Fixes

- #37: Fixed nodejs version in CF template
6 changes: 6 additions & 0 deletions doc/developers_guide/developers_guide.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Developer Guide

## Updating CloudFormation Templates

1. Make a copy of the latest template in `scripts` for the new version
2. Update the new template
3. Upload the template to S3 bucket `exasol-cf-templates` in region `eu-central-1` (prod account)

## CI Tests

The CI build runs smoke tests and static code analysis. This requires Terraform and [tflint](https://github.com/terraform-linters/tflint) to be installed.
Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ resource "aws_cloudformation_stack" "exasol_cluster" {
capabilities = [
"CAPABILITY_IAM"]
on_failure = "DELETE"
template_url = "https://exasol-cf-templates.s3.eu-central-1.amazonaws.com/cloudformation_template_v1.0.3.yml"
template_url = "https://exasol-cf-templates.s3.eu-central-1.amazonaws.com/cloudformation_template_v1.0.4.yml"
parameters = {
DBSystemName = var.database_name
DBPassword = var.sys_user_password
Expand Down
Loading