Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,13 +186,13 @@ module "api_gateway" {
| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.5.7 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 6.0 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 6.27 |

## Providers

| Name | Version |
|------|---------|
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 6.0 |
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 6.27 |

## Modules

Expand Down
10 changes: 5 additions & 5 deletions examples/complete-http/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Note that this example may create resources which cost money. Run `terraform des
| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.5.7 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 6.0 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 6.27 |
| <a name="requirement_local"></a> [local](#requirement\_local) | >= 2.5 |
| <a name="requirement_null"></a> [null](#requirement\_null) | >= 2.0 |
| <a name="requirement_tls"></a> [tls](#requirement\_tls) | >= 3.1 |
Expand All @@ -29,7 +29,7 @@ Note that this example may create resources which cost money. Run `terraform des

| Name | Version |
|------|---------|
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 6.0 |
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 6.27 |
| <a name="provider_local"></a> [local](#provider\_local) | >= 2.5 |
| <a name="provider_null"></a> [null](#provider\_null) | >= 2.0 |
| <a name="provider_tls"></a> [tls](#provider\_tls) | >= 3.1 |
Expand All @@ -40,9 +40,9 @@ Note that this example may create resources which cost money. Run `terraform des
|------|--------|---------|
| <a name="module_api_gateway"></a> [api\_gateway](#module\_api\_gateway) | ../../ | n/a |
| <a name="module_api_gateway_disabled"></a> [api\_gateway\_disabled](#module\_api\_gateway\_disabled) | ../../ | n/a |
| <a name="module_lambda_function"></a> [lambda\_function](#module\_lambda\_function) | terraform-aws-modules/lambda/aws | ~> 7.0 |
| <a name="module_s3_bucket"></a> [s3\_bucket](#module\_s3\_bucket) | terraform-aws-modules/s3-bucket/aws | ~> 3.0 |
| <a name="module_step_function"></a> [step\_function](#module\_step\_function) | terraform-aws-modules/step-functions/aws | ~> 4.0 |
| <a name="module_lambda_function"></a> [lambda\_function](#module\_lambda\_function) | terraform-aws-modules/lambda/aws | ~> 8.0 |
| <a name="module_s3_bucket"></a> [s3\_bucket](#module\_s3\_bucket) | terraform-aws-modules/s3-bucket/aws | ~> 5.0 |
| <a name="module_step_function"></a> [step\_function](#module\_step\_function) | terraform-aws-modules/step-functions/aws | ~> 5.0 |

## Resources

Expand Down
9 changes: 4 additions & 5 deletions examples/complete-http/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ module "api_gateway" {
create_certificate = true

mutual_tls_authentication = {
truststore_uri = "s3://${module.s3_bucket.s3_bucket_id}/${aws_s3_object.this.id}"
truststore_version = aws_s3_object.this.version_id
truststore_uri = "s3://${module.s3_bucket.s3_bucket_id}/${aws_s3_object.this.id}"
}

# Routes & Integration(s)
Expand Down Expand Up @@ -227,7 +226,7 @@ resource "aws_cognito_user_pool" "this" {

module "step_function" {
source = "terraform-aws-modules/step-functions/aws"
version = "~> 4.0"
version = "~> 5.0"

name = local.name
role_name = "${local.name}-step-function"
Expand Down Expand Up @@ -281,7 +280,7 @@ resource "null_resource" "download_package" {

module "lambda_function" {
source = "terraform-aws-modules/lambda/aws"
version = "~> 7.0"
version = "~> 8.0"

function_name = local.name
description = "My awesome lambda function"
Expand Down Expand Up @@ -311,7 +310,7 @@ module "lambda_function" {

module "s3_bucket" {
source = "terraform-aws-modules/s3-bucket/aws"
version = "~> 3.0"
version = "~> 5.0"

bucket_prefix = "${local.name}-"

Expand Down
2 changes: 1 addition & 1 deletion examples/complete-http/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 6.0"
version = ">= 6.27"
}
local = {
source = "hashicorp/local"
Expand Down
10 changes: 5 additions & 5 deletions examples/vpc-link-http/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,26 @@ Note that this example may create resources which cost money. Run `terraform des
| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.5.7 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 6.0 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 6.27 |
| <a name="requirement_null"></a> [null](#requirement\_null) | >= 2.0 |

## Providers

| Name | Version |
|------|---------|
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 6.0 |
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 6.27 |
| <a name="provider_null"></a> [null](#provider\_null) | >= 2.0 |

## Modules

| Name | Source | Version |
|------|--------|---------|
| <a name="module_alb"></a> [alb](#module\_alb) | terraform-aws-modules/alb/aws | ~> 9.0 |
| <a name="module_alb"></a> [alb](#module\_alb) | terraform-aws-modules/alb/aws | ~> 10.0 |
| <a name="module_api_gateway"></a> [api\_gateway](#module\_api\_gateway) | ../../ | n/a |
| <a name="module_api_gateway_security_group"></a> [api\_gateway\_security\_group](#module\_api\_gateway\_security\_group) | terraform-aws-modules/security-group/aws | ~> 5.0 |
| <a name="module_lambda_function"></a> [lambda\_function](#module\_lambda\_function) | terraform-aws-modules/lambda/aws | ~> 7.0 |
| <a name="module_lambda_function"></a> [lambda\_function](#module\_lambda\_function) | terraform-aws-modules/lambda/aws | ~> 8.0 |
| <a name="module_lambda_security_group"></a> [lambda\_security\_group](#module\_lambda\_security\_group) | terraform-aws-modules/security-group/aws | ~> 5.0 |
| <a name="module_vpc"></a> [vpc](#module\_vpc) | terraform-aws-modules/vpc/aws | ~> 5.0 |
| <a name="module_vpc"></a> [vpc](#module\_vpc) | terraform-aws-modules/vpc/aws | ~> 6.0 |

## Resources

Expand Down
6 changes: 3 additions & 3 deletions examples/vpc-link-http/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ module "api_gateway" {

module "vpc" {
source = "terraform-aws-modules/vpc/aws"
version = "~> 5.0"
version = "~> 6.0"

name = local.name
cidr = local.vpc_cidr
Expand Down Expand Up @@ -116,7 +116,7 @@ module "api_gateway_security_group" {

module "alb" {
source = "terraform-aws-modules/alb/aws"
version = "~> 9.0"
version = "~> 10.0"

name = local.name

Expand Down Expand Up @@ -176,7 +176,7 @@ resource "null_resource" "download_package" {

module "lambda_function" {
source = "terraform-aws-modules/lambda/aws"
version = "~> 7.0"
version = "~> 8.0"

function_name = local.name
description = "My awesome lambda function"
Expand Down
2 changes: 1 addition & 1 deletion examples/vpc-link-http/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 6.0"
version = ">= 6.27"
}
null = {
source = "hashicorp/null"
Expand Down
10 changes: 5 additions & 5 deletions examples/websocket/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ connected (press CTRL+C to quit)
| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.5.7 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 6.0 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 6.27 |

## Providers

Expand All @@ -62,10 +62,10 @@ No providers.
| Name | Source | Version |
|------|--------|---------|
| <a name="module_api_gateway"></a> [api\_gateway](#module\_api\_gateway) | ../../ | n/a |
| <a name="module_connect_lambda_function"></a> [connect\_lambda\_function](#module\_connect\_lambda\_function) | terraform-aws-modules/lambda/aws | ~> 4.0 |
| <a name="module_disconnect_lambda_function"></a> [disconnect\_lambda\_function](#module\_disconnect\_lambda\_function) | terraform-aws-modules/lambda/aws | ~> 4.0 |
| <a name="module_dynamodb_table"></a> [dynamodb\_table](#module\_dynamodb\_table) | terraform-aws-modules/dynamodb-table/aws | ~> 3.0 |
| <a name="module_send_message_lambda_function"></a> [send\_message\_lambda\_function](#module\_send\_message\_lambda\_function) | terraform-aws-modules/lambda/aws | ~> 4.0 |
| <a name="module_connect_lambda_function"></a> [connect\_lambda\_function](#module\_connect\_lambda\_function) | terraform-aws-modules/lambda/aws | ~> 8.0 |
| <a name="module_disconnect_lambda_function"></a> [disconnect\_lambda\_function](#module\_disconnect\_lambda\_function) | terraform-aws-modules/lambda/aws | ~> 8.0 |
| <a name="module_dynamodb_table"></a> [dynamodb\_table](#module\_dynamodb\_table) | terraform-aws-modules/dynamodb-table/aws | ~> 5.0 |
| <a name="module_send_message_lambda_function"></a> [send\_message\_lambda\_function](#module\_send\_message\_lambda\_function) | terraform-aws-modules/lambda/aws | ~> 8.0 |

## Resources

Expand Down
14 changes: 7 additions & 7 deletions examples/websocket/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,13 @@ module "api_gateway" {

module "connect_lambda_function" {
source = "terraform-aws-modules/lambda/aws"
version = "~> 4.0"
version = "~> 8.0"

function_name = "${local.name}-onConnect"
description = "Websocket onConnect handler"
source_path = ["function/onConnect.js"]
handler = "onConnect.handler"
runtime = "nodejs20.x"
runtime = "nodejs24.x"
architectures = ["arm64"]
memory_size = 256
publish = true
Expand All @@ -158,13 +158,13 @@ module "connect_lambda_function" {

module "disconnect_lambda_function" {
source = "terraform-aws-modules/lambda/aws"
version = "~> 4.0"
version = "~> 8.0"

function_name = "${local.name}-onDisconnect"
description = "Websocket onDisconnect handler"
source_path = ["function/onDisconnect.js"]
handler = "onDisconnect.handler"
runtime = "nodejs20.x"
runtime = "nodejs24.x"
architectures = ["arm64"]
memory_size = 256
publish = true
Expand All @@ -190,13 +190,13 @@ module "disconnect_lambda_function" {

module "send_message_lambda_function" {
source = "terraform-aws-modules/lambda/aws"
version = "~> 4.0"
version = "~> 8.0"

function_name = "${local.name}-sendMessage"
description = "Websocket sendMessage handler"
source_path = ["function/sendMessage.js"]
handler = "sendMessage.handler"
runtime = "nodejs20.x"
runtime = "nodejs24.x"
architectures = ["arm64"]
memory_size = 256
publish = true
Expand Down Expand Up @@ -227,7 +227,7 @@ module "send_message_lambda_function" {

module "dynamodb_table" {
source = "terraform-aws-modules/dynamodb-table/aws"
version = "~> 3.0"
version = "~> 5.0"

name = local.dynamodb_table_name
hash_key = "connectionId"
Expand Down
2 changes: 1 addition & 1 deletion examples/websocket/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 6.0"
version = ">= 6.27"
}
}
}
5 changes: 1 addition & 4 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,7 @@ resource "aws_apigatewayv2_api" "this" {
target = local.is_http ? var.target : null
version = var.api_version

tags = merge(
{ terraform-aws-modules = "apigateway-v2" },
var.tags,
)
tags = var.tags
}

################################################################################
Expand Down
8 changes: 7 additions & 1 deletion versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 6.0"
version = ">= 6.27"
}
}

provider_meta "aws" {
user_agent = [
"github.com/terraform-aws-modules/terraform-aws-apigateway-v2"
]
}
}
8 changes: 7 additions & 1 deletion wrappers/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 6.0"
version = ">= 6.27"
}
}

provider_meta "aws" {
user_agent = [
"github.com/terraform-aws-modules/terraform-aws-apigateway-v2"
]
}
}