File tree 4 files changed +15
-2
lines changed
4 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -4,4 +4,5 @@ AWS_SECRET_ACCESS_KEY=YOUR_AWS_SECRET_ACCESS_KEY
4
4
AWS_SQS_QUEUE_URL = YOUR_AWS_SQS_QUEUE_URL
5
5
AWS_ECS_TASK_ARN = YOUR_AWS_ECS_TASK_ARN
6
6
AWS_ECS_CLUSTER_ARN = YOUR_AWS_ECS_CLUSTER_ARN
7
- AWS_ECS_CONTAINER_NAME = YOUR_AWS_ECS_CONTAINER_NAME
7
+ AWS_ECS_CONTAINER_NAME = YOUR_AWS_ECS_CONTAINER_NAME
8
+ VIDEO_STATUS_API = YOUR_VIDEO_STATUS_API
Original file line number Diff line number Diff line change 2
2
node_modules /
3
3
npm-debug.log
4
4
yarn-error.log
5
+ container
5
6
6
7
# Dependency directories
7
8
/.pnp
@@ -12,6 +13,7 @@ yarn-error.log
12
13
13
14
# Build output
14
15
/build
16
+ /dist
15
17
16
18
# Environment variables
17
19
.env
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ interface Config {
6
6
AWS_ECS_TASK_ARN : string ;
7
7
AWS_ECS_CLUSTER_ARN : string ;
8
8
AWS_ECS_CONTAINER_NAME : string ;
9
+ VIDEO_STATUS_API : string ;
9
10
}
10
11
11
12
const config : Config = {
@@ -15,7 +16,8 @@ const config : Config = {
15
16
AWS_SQS_QUEUE_URL : process . env . AWS_SQS_QUEUE_URL || "" ,
16
17
AWS_ECS_TASK_ARN : process . env . AWS_ECS_TASK_ARN || "" ,
17
18
AWS_ECS_CLUSTER_ARN : process . env . AWS_ECS_CLUSTER_ARN || "" ,
18
- AWS_ECS_CONTAINER_NAME : process . env . AWS_ECS_CONTAINER_NAME || ""
19
+ AWS_ECS_CONTAINER_NAME : process . env . AWS_ECS_CONTAINER_NAME || "" ,
20
+ VIDEO_STATUS_API : process . env . VIDEO_STATUS_API || ""
19
21
}
20
22
21
23
export default config ;
Original file line number Diff line number Diff line change @@ -38,6 +38,10 @@ export const TranscodeVideos = async (event: S3Event) => {
38
38
{
39
39
name : config . AWS_ECS_CONTAINER_NAME ,
40
40
environment : [
41
+ {
42
+ name : "AWS_REGION" ,
43
+ value : config . AWS_REGION ,
44
+ } ,
41
45
{
42
46
name : "BUCKET_NAME" ,
43
47
value : bucket . name ,
@@ -53,6 +57,10 @@ export const TranscodeVideos = async (event: S3Event) => {
53
57
{
54
58
name : "AWS_SECRET_ACCESS_KEY" ,
55
59
value : config . AWS_SECRET_ACCESS_KEY
60
+ } ,
61
+ {
62
+ name : "VIDEO_STATUS_API" ,
63
+ value : config . VIDEO_STATUS_API
56
64
}
57
65
] ,
58
66
} ,
You can’t perform that action at this time.
0 commit comments