-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathterragrunt.stack.hcl
More file actions
81 lines (65 loc) · 2.71 KB
/
terragrunt.stack.hcl
File metadata and controls
81 lines (65 loc) · 2.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
locals {
name = "${get_env("EX_APP_PREFIX", "")}stateful-lambda-service"
}
unit "lambda_service" {
// You'll typically want to pin this to a particular version of your catalog repo.
// e.g.
// source = "github.com/acme/terragrunt-infrastructure-catalog//units/lambda-stateful-service?ref=v0.1.0"
//
// If you are using a private catalog, you may want to use an SSH source URL instead:
// source = "git::git@github.com:acme/terragrunt-infrastructure-catalog.git//units/lambda-stateful-service"
source = "github.com/gruntwork-io/terragrunt-infrastructure-catalog-example//units/js-lambda-stateful-service"
path = "service"
values = {
// This version here is used as the version passed down to the unit
// to use when fetching the OpenTofu/Terraform module.
version = "main"
name = local.name
// Required inputs
runtime = "nodejs22.x"
source_dir = "./src"
handler = "index.handler"
zip_file = "handler.zip"
// Optional inputs
memory = 128
timeout = 3
// Dependency paths
role_path = "../roles/lambda-iam-role-to-dynamodb"
dynamodb_table_path = "../db"
}
}
unit "db" {
// You'll typically want to pin this to a particular version of your catalog repo.
// e.g.
// source = "github.com/acme/terragrunt-infrastructure-catalog//units/dynamodb-table?ref=v0.1.0"
//
// If you are using a private catalog, you may want to use an SSH source URL instead:
// source = "git::git@github.com:acme/terragrunt-infrastructure-catalog.git//units/dynamodb-table"
source = "github.com/gruntwork-io/terragrunt-infrastructure-catalog-example//units/dynamodb-table"
path = "db"
values = {
// This version here is used as the version passed down to the unit
// to use when fetching the OpenTofu/Terraform module.
version = "main"
name = "${local.name}-db"
hash_key = "Id"
hash_key_type = "S"
}
}
unit "role" {
// You'll typically want to pin this to a particular version of your catalog repo.
// e.g.
// source = "github.com/acme/terragrunt-infrastructure-catalog//units/lambda-iam-role-to-dynamodb?ref=v0.1.0"
//
// If you are using a private catalog, you may want to use an SSH source URL instead:
// source = "git::git@github.com:acme/terragrunt-infrastructure-catalog.git//units/lambda-iam-role-to-dynamodb"
source = "github.com/gruntwork-io/terragrunt-infrastructure-catalog-example//units/lambda-iam-role-to-dynamodb"
path = "roles/lambda-iam-role-to-dynamodb"
values = {
// This version here is used as the version passed down to the unit
// to use when fetching the OpenTofu/Terraform module.
version = "main"
name = "${local.name}-role"
dynamodb_table_path = "../../db"
}
}