Skip to content

Conversation

christian-calabrese
Copy link
Contributor

@christian-calabrese christian-calabrese commented May 22, 2025

The infrastructure that is currently running the https://developer.pagopa.it website 🚀

Resolves CES-1018

@christian-calabrese christian-calabrese requested a review from a team as a code owner May 22, 2025 19:05
Copy link

changeset-bot bot commented May 22, 2025

🦋 Changeset detected

Latest commit: 06a6ae9

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
aws_open_next Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@uolter uolter temporarily deployed to infra-dev-ci May 28, 2025 13:54 — with GitHub Actions Inactive
@uolter uolter temporarily deployed to infra-dev-ci May 29, 2025 07:40 — with GitHub Actions Inactive
@uolter uolter temporarily deployed to infra-dev-ci May 29, 2025 07:43 — with GitHub Actions Inactive
@uolter uolter temporarily deployed to infra-dev-ci May 29, 2025 07:51 — with GitHub Actions Inactive
@uolter uolter temporarily deployed to infra-dev-ci May 29, 2025 10:38 — with GitHub Actions Inactive
@uolter uolter temporarily deployed to infra-dev-ci May 29, 2025 10:47 — with GitHub Actions Inactive
@uolter uolter temporarily deployed to infra-dev-ci May 29, 2025 10:54 — with GitHub Actions Inactive
@uolter uolter temporarily deployed to infra-dev-ci May 29, 2025 16:42 — with GitHub Actions Inactive
@uolter uolter temporarily deployed to infra-dev-ci June 6, 2025 09:55 — with GitHub Actions Inactive
@uolter uolter temporarily deployed to infra-dev-ci June 9, 2025 08:59 — with GitHub Actions Inactive
Comment on lines 128 to 132
variable "enable_waf" {
type = bool
description = "Whether to enable WAF for enhanced protection."
default = false
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: can't the WAF be always enabled? what is our suggestion about the WAF?

Copy link
Contributor Author

@christian-calabrese christian-calabrese Oct 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not mandatory, I updated the variable description for more guidance. Mainly useful for sensitive production applications. Enabling WAF adds costs

default = null
}

variable "node_major_version" {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
variable "node_major_version" {
variable "node_version" {

type = object({
timeout = optional(number, 30)
memory_size = optional(number, 1024)
handler = optional(string, "index.handler")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: what is the meaning of index.handler? is it a reference to a file named index.handler.js produced by next?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

index is the name of the main file where the handler function is implemented. The handler function is the entry point of the lambda and it is produced by opennext in this case.

Copy link
Contributor

@mamu0 mamu0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, great job! ✅

Copy link
Contributor

📋 Pre-commit Output Log
[INFO] Initializing environment for https://github.com/antonbabenko/pre-commit-terraform.
Lock Terraform Registry modules..................................(no files to check)Skipped
Terraform Providers Lock (on staged .terraform.lock.hcl files).......................Passed
- hook id: terraform_providers_lock_staged
- duration: 0.08s

No .terraform.lock.hcl files to process.

Terraform fmt........................................................................Passed
terraform_docs on modules............................................................Passed
terraform_docs on resources......................................(no files to check)Skipped
Terraform validate with tflint.......................................................Passed
Terraform validate...................................................................Passed
Terraform validate with trivy........................................................Passed

Generated on Thu Oct 16 17:30:34 UTC 2025
Run all checks on modified files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants