-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathEpsAssistMeApp.ts
More file actions
43 lines (35 loc) · 1.16 KB
/
EpsAssistMeApp.ts
File metadata and controls
43 lines (35 loc) · 1.16 KB
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
#!/usr/bin/env node
import {App, Aspects, Tags} from "aws-cdk-lib"
import {AwsSolutionsChecks} from "cdk-nag"
import {EpsAssistMeStack} from "../stacks/EpsAssistMeStack"
import {applyCfnGuardSuppressions} from "./utils/appUtils"
const app = new App()
/* Required Context:
- accountId
- stackName
- version
- commit
*/
const accountId = app.node.tryGetContext("accountId")
const stackName = app.node.tryGetContext("stackName")
const version = app.node.tryGetContext("versionNumber")
const commit = app.node.tryGetContext("commitId")
const cfnDriftDetectionGroup = app.node.tryGetContext("cfnDriftDetectionGroup")
Aspects.of(app).add(new AwsSolutionsChecks({verbose: true}))
Tags.of(app).add("cdkApp", "EpsAssistMe")
Tags.of(app).add("accountId", accountId)
Tags.of(app).add("stackName", stackName)
Tags.of(app).add("version", version)
Tags.of(app).add("commit", commit)
Tags.of(app).add("cfnDriftDetectionGroup", cfnDriftDetectionGroup)
const EpsAssistMe = new EpsAssistMeStack(app, "EpsAssistMeStack", {
env: {
region: "eu-west-2",
account: accountId
},
stackName: stackName,
version: version,
commitId: commit
})
applyCfnGuardSuppressions(EpsAssistMe)
app.synth()