/
bootstrap.ts
123 lines (105 loc) · 3.03 KB
/
bootstrap.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
import { SharedOptions } from './common';
/**
* Options to use with cdk bootstrap
*/
export interface BootstrapOptions extends SharedOptions {
/**
* The name of the CDK toolkit stack to create
*/
readonly toolkitStackName?: string;
/**
* The name of the CDK toolkit bucket; bucket will be created and
* must not exist
* @default - auto-generated CloudFormation name
*/
readonly bootstrapBucketName?: string;
/**
* Always bootstrap even if it would downgrade template version
* @default false
*/
readonly force?: boolean;
/**
* The Managed Policy ARNs that should be attached to the
* role performing deployments into this environment (may be repeated, modern bootstrapping only)
* @default - none
*/
readonly cfnExecutionPolicy?: string;
/**
* Instead of actual bootstrapping, print the current
* CLI\'s bootstrapping template to stdout for customization
* @default false
*/
readonly showTemplate?: boolean;
/**
* Use the template from the given file instead of the
* built-in one (use --show-template to obtain an example)
*/
readonly template?: string;
/**
* Toggle CloudFormation termination protection on the
* bootstrap stacks
* @default false
*/
readonly terminationProtection?: boolean;
/**
* Use the example permissions boundary.
* @default undefined
*/
readonly examplePermissionsBoundary?: boolean;
/**
* Use the permissions boundary specified by name.
* @default undefined
*/
readonly customPermissionsBoundary?: string;
/**
* Use previous values for existing parameters (you must specify
* all parameters on every deployment if this is disabled)
* @default true
*/
readonly usePreviousParameters?: boolean;
/**
* Whether to execute ChangeSet (--no-execute will NOT execute
* the ChangeSet)
* @default true
*/
readonly execute?: boolean;
/**
* String which must be unique for each bootstrap stack. You
* must configure it on your CDK app if you change this
* from the default.
* @default undefined
*/
readonly qualifier?: string;
/**
* The AWS account IDs that should be trusted to perform
* deployments into this environment (may be repeated,
* modern bootstrapping only)
* @default undefined
*/
readonly trust?: string;
/**
* The AWS account IDs that should be trusted to look
* up values in this environment (may be repeated,
* modern bootstrapping only)
* @default undefined
*/
readonly trustForLookup?: string;
/**
* AWS KMS master key ID used for the SSE-KMS encryption
* @default undefined
*/
readonly bootstrapKmsKeyId?: string;
/**
* Create a Customer Master Key (CMK) for the bootstrap
* bucket (you will be charged but can customize
* permissions, modern bootstrapping only)
* @default undefined
*/
readonly bootstrapCustomerKey?: string;
/**
* Block public access configuration on CDK toolkit
* bucket (enabled by default)
* @default undefined
*/
readonly publicAccessBlockConfiguration?: string;
}