add deploy script
This commit is contained in:
@@ -23,7 +23,7 @@ new aws.iam.RolePolicyAttachment(`${prefix}-lambda-role-exec`, {
|
||||
policyArn: aws.iam.ManagedPolicies.AWSLambdaBasicExecutionRole,
|
||||
});
|
||||
|
||||
const lambda = new aws.lambda.Function(`${prefix}-lambda`, {
|
||||
export const lambda = new aws.lambda.Function(`${prefix}-lambda`, {
|
||||
tags,
|
||||
runtime: "nodejs18.x",
|
||||
handler: "index.main",
|
||||
|
@@ -6,5 +6,8 @@ import * as frontend from "./frontend";
|
||||
|
||||
import "./deployment";
|
||||
|
||||
export const frontendDomain = frontend.cloudfront.domainName;
|
||||
export const backendEndpoint = backend.api.apiEndpoint;
|
||||
export const feBucket = frontend.bucket.bucket;
|
||||
export const feDomain = frontend.cloudfront.domainName;
|
||||
export const beBucket = backend.bucket.bucket;
|
||||
export const beLambda = backend.lambda.name;
|
||||
export const beEndpoint = backend.api.apiEndpoint;
|
||||
|
Reference in New Issue
Block a user