Skip to content

Commit eb3f01d

Browse files
committed
Pipeline created
1 parent 6f2f5a4 commit eb3f01d

File tree

4 files changed

+15
-2
lines changed

4 files changed

+15
-2
lines changed

.env.sample

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ AWS_SECRET_ACCESS_KEY=YOUR_AWS_SECRET_ACCESS_KEY
44
AWS_SQS_QUEUE_URL=YOUR_AWS_SQS_QUEUE_URL
55
AWS_ECS_TASK_ARN=YOUR_AWS_ECS_TASK_ARN
66
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

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
node_modules/
33
npm-debug.log
44
yarn-error.log
5+
container
56

67
# Dependency directories
78
/.pnp
@@ -12,6 +13,7 @@ yarn-error.log
1213

1314
# Build output
1415
/build
16+
/dist
1517

1618
# Environment variables
1719
.env

src/config/config.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ interface Config {
66
AWS_ECS_TASK_ARN: string;
77
AWS_ECS_CLUSTER_ARN: string;
88
AWS_ECS_CONTAINER_NAME: string;
9+
VIDEO_STATUS_API: string;
910
}
1011

1112
const config : Config = {
@@ -15,7 +16,8 @@ const config : Config = {
1516
AWS_SQS_QUEUE_URL: process.env.AWS_SQS_QUEUE_URL || "",
1617
AWS_ECS_TASK_ARN: process.env.AWS_ECS_TASK_ARN || "",
1718
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 || ""
1921
}
2022

2123
export default config;

src/util/ecs.ts

+8
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ export const TranscodeVideos = async (event: S3Event) => {
3838
{
3939
name: config.AWS_ECS_CONTAINER_NAME,
4040
environment: [
41+
{
42+
name: "AWS_REGION",
43+
value: config.AWS_REGION,
44+
},
4145
{
4246
name: "BUCKET_NAME",
4347
value: bucket.name,
@@ -53,6 +57,10 @@ export const TranscodeVideos = async (event: S3Event) => {
5357
{
5458
name: "AWS_SECRET_ACCESS_KEY",
5559
value: config.AWS_SECRET_ACCESS_KEY
60+
},
61+
{
62+
name: "VIDEO_STATUS_API",
63+
value: config.VIDEO_STATUS_API
5664
}
5765
],
5866
},

0 commit comments

Comments
 (0)