forked from topmonks/hlidac-shopu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.ts
41 lines (34 loc) · 1.58 KB
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import * as pulumi from "@pulumi/pulumi";
import { createCertificate, registerAutoTags } from "@topmonks/pulumi-aws";
import { createWebsite } from "./www.hlidacshopu.cz";
import { createApi, createDatabase } from "./api.hlidacshopu.cz";
registerAutoTags({
"user:Project": pulumi.getProject(),
"user:Stack": pulumi.getStack()
});
let certificate = createCertificate("www.hlidacshopu.cz");
let db = createDatabase();
let { apiGateway, apiDistribution, openApiUrl } = createApi("api2.hlidacshopu.cz");
let {
assetsCachingLambda,
securityHeadersLambda,
nakedDomainRedirect,
website
} = createWebsite("www.hlidacshopu.cz");
export const certificateArn = certificate;
export const apiGatewayUrl = apiGateway.url;
export const apiDocumentationUrl = openApiUrl;
export const apiUrl = apiDistribution.url;
export const assetsCachingLambdaArn = assetsCachingLambda.arn;
export const securityHeadersLambdaArn = securityHeadersLambda.arn;
export const websiteUrl = website.url;
export const websiteS3BucketUri = website.s3BucketUri;
export const websiteS3WebsiteUrl = website.s3WebsiteUrl;
export const websiteCloudFrontId = website.cloudFrontId;
export const nakedDomainRedirectUrl = nakedDomainRedirect.url;
export const nakedDomainRedirectCloudFrontId = nakedDomainRedirect.cloudFrontId;
export const allShopsTable = db.allShopsTable.name;
export const allShopsMetadataTable = db.allShopsMetadataTable.name;
export const allShopsStatsTable = db.allShopsStatsTable.name;
export const topslevyAbsoluteTable = db.topslevyAbsoluteTable.name;
export const topslevyRelativeTable = db.topslevyRelativeTable.name;