Download src/config/cloud.config.ts from lynfera/api: direct link, hf CLI and curl.
- Browser
- Download file 661 Bytes
-
https://huggingface.co/spaces/lynfera/api/resolve/main/src/config/cloud.config.ts
- Command line
-
hf download hf://spaces/lynfera/api/src/config/cloud.config.ts
-
curl -L -o cloud.config.ts https://huggingface.co/spaces/lynfera/api/resolve/main/src/config/cloud.config.ts
661 Bytes
| import { ECSClient } from "@aws-sdk/client-ecs"; | |
| import { S3Client } from "@aws-sdk/client-s3"; | |
| import { ENVS } from "@/config/env.config.js"; | |
| export const ecsClient = new ECSClient({ | |
| region: "us-east-1", | |
| credentials: { | |
| accessKeyId: ENVS.CLOUD_ACCESSKEY as string, | |
| secretAccessKey: ENVS.CLOUD_SECRETKEY as string, | |
| }, | |
| }); | |
| export const s3Client = new S3Client({ | |
| region: "auto", | |
| credentials: { | |
| accessKeyId: ENVS.CLOUD_ACCESSKEY as string, | |
| secretAccessKey: ENVS.CLOUD_SECRETKEY as string, | |
| }, | |
| endpoint: ENVS.CLOUD_ENDPOINT, | |
| forcePathStyle: true, | |
| }); | |
| export const config = { | |
| CLUSTER: ENVS.CLUSTER_ARN as string, | |
| TASK: ENVS.TASK_ARN as string, | |
| }; | |