forked from topmonks/hlidac-shopu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.ts
45 lines (40 loc) · 1.54 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
41
42
43
44
45
import * as pulumi from "@pulumi/pulumi";
import {
createCertificate,
registerAutoTags,
Website
} from "@topmonks/pulumi-aws";
import { createWebsite } from "./www.hlidacshopu.cz";
import {
createApi,
createDatabase,
createDatastore
} from "./api.hlidacshopu.cz";
registerAutoTags({
"user:Project": pulumi.getProject(),
"user:Stack": pulumi.getStack()
});
let certificate = createCertificate("www.hlidacshopu.cz");
let db = createDatabase();
let store = createDatastore();
let api = createApi("api.hlidacshopu.cz", { stage: "v2" });
Website.createRedirect("api2.hlidacshopu.cz", {
target: "https://api.hlidacshopu.cz/v2"
});
let web = createWebsite("www.hlidacshopu.cz");
export const certificateArn = certificate;
export const apiGatewayUrl = api.apiGateway.url;
export const apiDocumentationUrl = api.openApiUrl;
export const apiUrl = api.apiDistribution.url;
export const websiteUrl = web.website.url;
export const websiteS3BucketUri = web.website.s3BucketUri;
export const websiteS3WebsiteUrl = web.website.s3WebsiteUrl;
export const websiteCloudFrontId = web.website.cloudFrontId;
export const nakedDomainRedirectUrl = web.nakedDomainRedirect.url;
export const nakedDomainRedirectCloudFrontId =
web.nakedDomainRedirect.cloudFrontId;
export const dataBucketName = store.dataBucket.bucket;
export const dataDistributionID = store.dataDistributionID;
export const blackFridayDataTable = db.blackFridayDataTable;
export const extensionParsingDataTable = db.extensionParsingDataTable;
export const apiHitCounterDataTable = db.apiHitCounterDataTable;