File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { Payload } from "./types";
4
4
import { error } from "console" ;
5
5
6
6
const handler : Handler = async ( payload : Payload ) => {
7
- const apiKey = process . env . API_Key ;
7
+ const apiKey = process . env . API_KEY ;
8
8
const apiUrl = process . env . API_URL ;
9
9
const { headers, data } = payload ;
10
10
headers . Authorization = headers . Authorization + apiKey ;
Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ resource "aws_lambda_function" "lambda" {
13
13
14
14
environment {
15
15
variables = {
16
- API_ACCESS_TOKEN = var.api_config.access_token
17
- URL = var.api_config.url
16
+ API_URL = var.api_config.api_url
17
+ API_KEY = var.api_config.api_key
18
18
}
19
19
}
20
20
Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ variable "name" {
6
6
variable "api_config" {
7
7
description = " api configuration"
8
8
type = object ({
9
- url = string
10
- access_token = string # Access token for the Slack bot
9
+ api_url = string
10
+ api_key = string
11
11
})
12
12
}
13
13
You can’t perform that action at this time.
0 commit comments