Skip to content

Commit 971ca97

Browse files
committed
Update API Gateway
1 parent eccc6c0 commit 971ca97

2 files changed

Lines changed: 11 additions & 17 deletions

File tree

terraform/environments/dev/main.tf

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ module "api_gateway" {
8989
}
9090
authorizer_key = "cognito"
9191
}
92-
92+
9393
"POST /users/update-role" = {
9494
integration = {
9595
uri = module.lambda_service.lambda_function_arn
@@ -106,31 +106,31 @@ module "api_gateway" {
106106
}
107107
authorizer_key = "cognito"
108108
}
109-
109+
110110
"POST /products" = {
111111
integration = {
112112
uri = module.lambda_service.lambda_function_arn
113113
payload_format_version = "2.0"
114114
}
115115
authorizer_key = "cognito"
116116
}
117-
117+
118118
"GET /products/{id}" = {
119119
integration = {
120120
uri = module.lambda_service.lambda_function_arn
121121
payload_format_version = "2.0"
122122
}
123123
authorizer_key = "cognito"
124124
}
125-
125+
126126
"PUT /products/{id}" = {
127127
integration = {
128128
uri = module.lambda_service.lambda_function_arn
129129
payload_format_version = "2.0"
130130
}
131131
authorizer_key = "cognito"
132132
}
133-
133+
134134
"DELETE /products/{id}" = {
135135
integration = {
136136
uri = module.lambda_service.lambda_function_arn
@@ -147,15 +147,15 @@ module "api_gateway" {
147147
}
148148
authorizer_key = "cognito"
149149
}
150-
150+
151151
"POST /orders" = {
152152
integration = {
153153
uri = module.lambda_service.lambda_function_arn
154154
payload_format_version = "2.0"
155155
}
156156
authorizer_key = "cognito"
157157
}
158-
158+
159159
"PUT /orders/{id}" = {
160160
integration = {
161161
uri = module.lambda_service.lambda_function_arn
@@ -172,7 +172,7 @@ module "api_gateway" {
172172
}
173173
authorizer_key = "cognito"
174174
}
175-
175+
176176
"GET /trace" = {
177177
integration = {
178178
uri = module.lambda_service.lambda_function_arn
@@ -189,7 +189,7 @@ module "api_gateway" {
189189
}
190190
authorizer_key = "cognito"
191191
}
192-
192+
193193
"GET /retailers" = {
194194
integration = {
195195
uri = module.lambda_service.lambda_function_arn
@@ -206,7 +206,7 @@ module "api_gateway" {
206206
}
207207
# No authorizer - public endpoint for consumers
208208
}
209-
209+
210210
"GET /public/trace" = {
211211
integration = {
212212
uri = module.lambda_service.lambda_function_arn

terraform/environments/dev/variables.tf

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ variable "public_subnets" {
4949
variable "app_version" {
5050
description = "Version of the application"
5151
type = string
52-
default = "e827ed55f12de32e3787c8c0b68401a3477dc15a"
52+
default = "e827ed55f12de32e3787c8c0b68401a3477dc15a"
5353
}
5454

5555
variable "certificate_arn" {
@@ -69,9 +69,3 @@ variable "cognito_client_id" {
6969
type = string
7070
default = "2qkqfoug89p9qhfggcsflg4m24"
7171
}
72-
73-
variable "blockchain_endpoint" {
74-
description = "Endpoint for private blockchain"
75-
type = string
76-
default = "http://blockchain-service:8545" # Sẽ được cấu hình qua Kubernetes service
77-
}

0 commit comments

Comments
 (0)