Skip to content

Commit

Permalink
fix: pin module versions (#43)
Browse files Browse the repository at this point in the history
* fix(aws-lambda-tutorial): pin modules versions

* fix(byo-vpc-tutorial): pin module versions
  • Loading branch information
jordan-acosta authored Aug 6, 2024
1 parent 05cab74 commit f361bb5
Show file tree
Hide file tree
Showing 9 changed files with 84 additions and 79 deletions.
34 changes: 17 additions & 17 deletions aws-lambda-tutorial/components/api-gateway/.terraform.lock.hcl

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

3 changes: 2 additions & 1 deletion aws-lambda-tutorial/components/api-gateway/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ locals {
}

module "api_gateway" {
source = "terraform-aws-modules/apigateway-v2/aws"
source = "terraform-aws-modules/apigateway-v2/aws"
version = "~> 5.1.0"

name = var.name
integrations = local.integrations
Expand Down
34 changes: 17 additions & 17 deletions aws-lambda-tutorial/components/dynamodb-table/.terraform.lock.hcl

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

3 changes: 2 additions & 1 deletion aws-lambda-tutorial/components/dynamodb-table/main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module "dynamodb_table" {
source = "terraform-aws-modules/dynamodb-table/aws"
source = "terraform-aws-modules/dynamodb-table/aws"
version = "~> 4.0.0"

name = var.name
hash_key = var.hash_key
Expand Down
32 changes: 16 additions & 16 deletions aws-lambda-tutorial/components/lambda-function/.terraform.lock.hcl

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

3 changes: 2 additions & 1 deletion aws-lambda-tutorial/components/lambda-function/main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module "lambda_function" {
source = "terraform-aws-modules/lambda/aws"
source = "terraform-aws-modules/lambda/aws"
version = "7.7.0"

function_name = var.function_name
image_uri = var.image_uri
Expand Down
34 changes: 17 additions & 17 deletions byo-vpc-tutorial/components/ecs-service/.terraform.lock.hcl

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

13 changes: 7 additions & 6 deletions byo-vpc-tutorial/components/ecs-service/alb.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module "ingress" {
source = "terraform-aws-modules/alb/aws"
source = "terraform-aws-modules/alb/aws"
version = "~> 9.10.0"

name = var.service_name
vpc_id = var.vpc_id
Expand Down Expand Up @@ -52,11 +53,11 @@ module "ingress" {

target_groups = {
api = {
name_prefix = "api"
protocol = "HTTP"
backend_port = var.container_port
target_type = "ip"
create_attachment = false
name_prefix = "api"
protocol = "HTTP"
backend_port = var.container_port
target_type = "ip"
create_attachment = false
deregistration_delay = 5
load_balancing_cross_zone_enabled = true

Expand Down
7 changes: 4 additions & 3 deletions byo-vpc-tutorial/components/ecs-service/service.tf
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
module "service" {
source = "terraform-aws-modules/ecs/aws//modules/service"
source = "terraform-aws-modules/ecs/aws//modules/service"
version = "~> 5.11.0"

name = var.service_name
cluster_arn = var.cluster_arn

desired_count = 3
cpu = 1024
memory = 4096
cpu = 1024
memory = 4096

container_definitions = {
api = {
Expand Down

0 comments on commit f361bb5

Please sign in to comment.