Skip to content

Commit

Permalink
Store AWS credentials in env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Khalid Khalil authored and Khalid Khalil committed Mar 31, 2021
1 parent a18b432 commit c0599c4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .env
@@ -1,5 +1,3 @@
S3_ACCESS_KEY=AKIAV655IKRQL7DXMTPX
S3_ACCESS_SECRET=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
# Set to production when deploying to production
NODE_ENV=development

Expand Down
2 changes: 0 additions & 2 deletions src/controllers/videos.ts
Expand Up @@ -15,8 +15,6 @@ const router = Express.Router();
*/

const s3 = new AWS.S3({
secretAccessKey: process.env.S3_ACCESS_KEY,
accessKeyId: process.env.S3_ACCESS_SECRET,
region: 'us-east-1',
});

Expand Down

0 comments on commit c0599c4

Please sign in to comment.