Skip to content

Commit

Permalink
Merge pull request #1101 from aligent/fix/DO-1543_prerender_fargate_s…
Browse files Browse the repository at this point in the history
…ecrets_unwrap

DO-1543: call unsafeUnwrap to pass the secret key to the env
  • Loading branch information
krishanthisera authored Oct 5, 2023
2 parents 3adbbbc + cc9ced9 commit ddbcd17
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/prerender-fargate/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { PrerenderFargate } from "./lib/prerender-fargate";
import { PrerenderFargate, PrerenderOptions } from "./lib/prerender-fargate";

export { PrerenderFargate };
export { PrerenderFargate, PrerenderOptions };
2 changes: 1 addition & 1 deletion packages/prerender-fargate/lib/prerender-fargate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export class PrerenderFargate extends Construct {
environment: {
S3_BUCKET_NAME: this.bucket.bucketName,
AWS_ACCESS_KEY_ID: accessKey.accessKeyId,
AWS_SECRET_ACCESS_KEY: accessKey.secretAccessKey.toString(),
AWS_SECRET_ACCESS_KEY: accessKey.secretAccessKey.unsafeUnwrap(),
AWS_REGION: Stack.of(this).region,
ENABLE_REDIRECT_CACHE: props.enableRedirectCache || "false",
TOKEN_LIST: props.tokenList.toString()
Expand Down

0 comments on commit ddbcd17

Please sign in to comment.