@pipeline-builder/pipeline-manager 6.5.4 → 6.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/agent/post-steps.d.ts +1 -1
- package/dist/agent/post-steps.d.ts.map +1 -1
- package/dist/agent/post-steps.js +27 -31
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +8 -9
- package/dist/commands/audit-stacks.d.ts +2 -1
- package/dist/commands/audit-stacks.d.ts.map +1 -1
- package/dist/commands/audit-stacks.js +12 -2
- package/dist/commands/deploy-job.js +4 -4
- package/dist/commands/provision-steps.d.ts +1 -1
- package/dist/commands/provision-steps.js +2 -2
- package/dist/commands/provision.js +2 -2
- package/dist/commands/redrive-events.d.ts +4 -3
- package/dist/commands/redrive-events.d.ts.map +1 -1
- package/dist/commands/redrive-events.js +51 -18
- package/dist/commands/runner-signing-key.js +2 -2
- package/dist/commands/{setup-runner.d.ts → setup-account.d.ts} +119 -71
- package/dist/commands/setup-account.d.ts.map +1 -0
- package/dist/commands/setup-account.js +1345 -0
- package/dist/commands/store-token.d.ts +6 -28
- package/dist/commands/store-token.d.ts.map +1 -1
- package/dist/commands/store-token.js +12 -139
- package/dist/config/cli.constants.d.ts +0 -8
- package/dist/config/cli.constants.d.ts.map +1 -1
- package/dist/config/cli.constants.js +1 -9
- package/dist/lambda/events-handler.js +1529 -0
- package/dist/lambda/runner-handler.d.ts +25 -1
- package/dist/lambda/runner-handler.d.ts.map +1 -1
- package/dist/lambda/runner-handler.js +403 -50
- package/dist/lambda/runner-inspect-connection.d.ts +32 -0
- package/dist/lambda/runner-inspect-connection.d.ts.map +1 -0
- package/dist/lambda/runner-inspect-connection.js +144 -0
- package/dist/lambda/runner-inspect.d.ts +6 -1
- package/dist/lambda/runner-inspect.d.ts.map +1 -1
- package/dist/lambda/runner-inspect.js +15 -5
- package/dist/lambda/runner-jws.d.ts.map +1 -1
- package/dist/lambda/runner-jws.js +59 -6
- package/dist/lambda/runner-sources.d.ts +12 -0
- package/dist/lambda/runner-sources.d.ts.map +1 -1
- package/dist/lambda/runner-sources.js +28 -22
- package/dist/lambda/token-renew-handler.d.ts +3 -2
- package/dist/lambda/token-renew-handler.d.ts.map +1 -1
- package/dist/lambda/token-renew-handler.js +17 -5
- package/dist/templates/account-stack.json +2049 -0
- package/dist/templates/forwarder-stack.json +133 -0
- package/dist/utils/{runner-template.d.ts → account-template.d.ts} +69 -18
- package/dist/utils/account-template.d.ts.map +1 -0
- package/dist/utils/account-template.js +316 -0
- package/dist/utils/inspect-buildspec.d.ts +9 -0
- package/dist/utils/inspect-buildspec.d.ts.map +1 -0
- package/dist/utils/inspect-buildspec.js +209 -0
- package/package.json +5 -4
- package/dist/commands/setup-events.d.ts +0 -15
- package/dist/commands/setup-events.d.ts.map +0 -1
- package/dist/commands/setup-events.js +0 -182
- package/dist/commands/setup-runner.d.ts.map +0 -1
- package/dist/commands/setup-runner.js +0 -1132
- package/dist/templates/events-stack.json +0 -192
- package/dist/templates/runner-stack.json +0 -948
- package/dist/templates/token-renew-stack.json +0 -115
- package/dist/utils/cron.d.ts +0 -28
- package/dist/utils/cron.d.ts.map +0 -1
- package/dist/utils/cron.js +0 -119
- package/dist/utils/runner-template.d.ts.map +0 -1
- package/dist/utils/runner-template.js +0 -229
|
@@ -2,11 +2,22 @@ import { type Stack } from '@aws-sdk/client-cloudformation';
|
|
|
2
2
|
import { type RunnerHealth, type RunnerOutcome, type RunnerSigningKeyDto, type RunnersUnavailableReason, type RunnerStatus } from '@pipeline-builder/api-core/pipeline-runners';
|
|
3
3
|
import { Command } from 'commander';
|
|
4
4
|
import { type StepUpProvider } from '../utils/service-account.js';
|
|
5
|
-
export interface
|
|
6
|
-
|
|
5
|
+
export interface AccountPlanInput {
|
|
6
|
+
/** `--name`: the connector's free-text name (a new connector: default `<account id> · <home region>`). */
|
|
7
|
+
name?: string;
|
|
8
|
+
/** `--account <id or name>`: the connector to update (default: this organization's connector in the account). */
|
|
9
|
+
account?: string;
|
|
10
|
+
/** `--region`: the home region (the stack's). */
|
|
7
11
|
region: string;
|
|
8
12
|
regions?: string;
|
|
9
|
-
|
|
13
|
+
/** `--allowed-prefixes`. */
|
|
14
|
+
allowedPrefixes?: string;
|
|
15
|
+
/** commander's `--no-runner` (true unless given). */
|
|
16
|
+
runner?: boolean;
|
|
17
|
+
/** commander's `--no-reporting` (true unless given). */
|
|
18
|
+
reporting?: boolean;
|
|
19
|
+
/** `--dora`: DORA lead time in-account (reporting). */
|
|
20
|
+
dora?: boolean;
|
|
10
21
|
apiGateway?: boolean;
|
|
11
22
|
allowIp?: string[];
|
|
12
23
|
/** commander's `--no-waf` (true unless given). */
|
|
@@ -16,62 +27,63 @@ export interface RunnerPlanInput {
|
|
|
16
27
|
/** `--generate-key`: create the org's signing key (step-up) when it has none. */
|
|
17
28
|
generateKey?: boolean;
|
|
18
29
|
yes?: boolean;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
/** `--
|
|
22
|
-
enableDeploy?: boolean;
|
|
23
|
-
requireBootstrap?: boolean;
|
|
30
|
+
/** `--permissions-boundary`: an IAM permissions boundary for EVERY role. */
|
|
31
|
+
permissionsBoundary?: string;
|
|
32
|
+
/** `--bootstrap`: `cdk bootstrap` the home region (the template bucket) and, with --deploy, every allowlisted region that needs it. */
|
|
24
33
|
bootstrap?: boolean;
|
|
34
|
+
/** `--deploy` and its options (each needs it). */
|
|
35
|
+
deploy?: boolean;
|
|
36
|
+
requireBootstrap?: boolean;
|
|
25
37
|
cdkQualifier?: string;
|
|
26
38
|
deployTimeout?: string | number;
|
|
27
39
|
deployConcurrency?: string | number;
|
|
28
|
-
deployPermissionsBoundary?: string;
|
|
29
40
|
registryPullHost?: string;
|
|
30
41
|
}
|
|
31
|
-
/** The deploy half of a plan (`--
|
|
42
|
+
/** The deploy half of a plan (`--deploy`). */
|
|
32
43
|
export interface RunnerDeployPlan {
|
|
33
44
|
qualifier: string;
|
|
34
45
|
timeoutMinutes: number;
|
|
35
46
|
concurrency: number;
|
|
36
|
-
/** '' = none. */
|
|
37
|
-
permissionsBoundaryArn: string;
|
|
38
|
-
/** Refuse when an allowlisted region has no (or an outdated) CDK bootstrap. */
|
|
39
47
|
requireBootstrap: boolean;
|
|
40
|
-
/** Bootstrap such regions (cdk bootstrap with these credentials) instead of only warning. */
|
|
41
48
|
bootstrap: boolean;
|
|
42
|
-
/** Explicit; otherwise the platform URL's host[:port]. */
|
|
43
49
|
registryPullHost?: string;
|
|
44
50
|
}
|
|
45
|
-
export interface
|
|
46
|
-
|
|
47
|
-
|
|
51
|
+
export interface AccountPlan {
|
|
52
|
+
/** The typed name (trimmed), or undefined = keep / default. */
|
|
53
|
+
name?: string;
|
|
54
|
+
/** `--account`: the connector to update, by id or name. */
|
|
55
|
+
account?: string;
|
|
56
|
+
/** Where the stack lives (the home region). */
|
|
48
57
|
region: string;
|
|
49
|
-
/** Where the runner may act. */
|
|
58
|
+
/** Where the runner may act and reporting covers. */
|
|
50
59
|
regions: string[];
|
|
51
60
|
/**
|
|
52
|
-
* The regions the account scan MUST cover (the
|
|
53
|
-
* --regions region): listed first, and an unreadable one fails the scan.
|
|
54
|
-
* scan itself covers every enabled region of the account ({@link accountRunnerStacks}).
|
|
61
|
+
* The regions the account scan MUST cover (the home region, then every
|
|
62
|
+
* --regions region): listed first, and an unreadable one fails the scan.
|
|
55
63
|
*/
|
|
56
64
|
scanRegions: string[];
|
|
57
65
|
/** Explicit prefixes, or undefined = derive from the org's registered pipeline names. */
|
|
58
66
|
prefixes?: string[];
|
|
67
|
+
runner: boolean;
|
|
68
|
+
reporting: boolean;
|
|
69
|
+
dora: boolean;
|
|
59
70
|
apiGateway: boolean;
|
|
60
71
|
allowIps: string[];
|
|
61
|
-
/** The API's WAFv2 rate limit is attached (api-gateway only). */
|
|
62
72
|
waf: boolean;
|
|
63
|
-
/** Requests per 5 minutes per source IP (meaningful when `waf`). */
|
|
64
73
|
wafRateLimit: number;
|
|
65
74
|
generateKey: boolean;
|
|
66
75
|
/** --yes: confirms '*' prefixes and installing beside a parent organization's shared runner. */
|
|
67
76
|
yes: boolean;
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
/**
|
|
77
|
+
/** '' = none. */
|
|
78
|
+
permissionsBoundaryArn: string;
|
|
79
|
+
/** --bootstrap. */
|
|
80
|
+
bootstrap: boolean;
|
|
81
|
+
/** The CDK bootstrap qualifier of the home region's template bucket (and the deploy regions'). */
|
|
82
|
+
qualifier: string;
|
|
71
83
|
deploy?: RunnerDeployPlan;
|
|
72
84
|
}
|
|
73
85
|
/** Validate the flags into a plan. Throws ValidationError naming the flag. */
|
|
74
|
-
export declare function
|
|
86
|
+
export declare function planAccount(input: AccountPlanInput): AccountPlan;
|
|
75
87
|
/**
|
|
76
88
|
* The org's default pipeline-name prefix, from its registered pipeline names:
|
|
77
89
|
* its pipeline ORGANIZATION IDENTITY + `-`.
|
|
@@ -92,7 +104,7 @@ export declare function planRunner(input: RunnerPlanInput): RunnerPlan;
|
|
|
92
104
|
*/
|
|
93
105
|
export declare function prefixesFromPipelineNames(names: string[]): string[];
|
|
94
106
|
/** What a dry run prints. No call of any kind is made to build it. */
|
|
95
|
-
export declare function describePlan(plan:
|
|
107
|
+
export declare function describePlan(plan: AccountPlan, bundleSha256?: string): Record<string, unknown>;
|
|
96
108
|
export interface PlatformApi {
|
|
97
109
|
get<T = unknown>(url: string, params?: Record<string, unknown>, headers?: Record<string, string>): Promise<T>;
|
|
98
110
|
post<T = unknown>(url: string, data?: unknown, headers?: Record<string, string>): Promise<T>;
|
|
@@ -124,25 +136,25 @@ export interface RunnerList {
|
|
|
124
136
|
export interface RunnerStackInfo {
|
|
125
137
|
stackName: string;
|
|
126
138
|
region: string;
|
|
127
|
-
/** Its RunnerId parameter (the function's RUNNER_ID). */
|
|
139
|
+
/** Its RunnerId parameter (the function's RUNNER_ID): the connector id. */
|
|
128
140
|
runnerId?: string;
|
|
129
|
-
/** Its pb.runner-label tag. */
|
|
130
|
-
label?: string;
|
|
131
141
|
/** Its AllowedPipelinePrefixes parameter. */
|
|
132
142
|
prefixes: string[];
|
|
133
143
|
}
|
|
134
|
-
export interface
|
|
144
|
+
export interface AccountDeps {
|
|
135
145
|
platform: PlatformApi;
|
|
136
146
|
platformBaseUrl: string;
|
|
137
147
|
stepUp: StepUpProvider;
|
|
138
|
-
/** `aws cloudformation deploy` of the given template (written to a temp file). */
|
|
148
|
+
/** `aws cloudformation deploy` of the given template, uploaded to `s3Bucket` (written to a temp file). */
|
|
139
149
|
deployStack(a: {
|
|
140
150
|
stackName: string;
|
|
141
151
|
template: Record<string, unknown>;
|
|
142
152
|
parameters: string[];
|
|
143
|
-
tags: Record<string, string>;
|
|
144
153
|
region: string;
|
|
154
|
+
s3Bucket: string;
|
|
145
155
|
}): Promise<void>;
|
|
156
|
+
/** Set the stack's policy (before an update; after a create). */
|
|
157
|
+
setStackPolicy(stackName: string, policy: Record<string, unknown>, region: string): Promise<void>;
|
|
146
158
|
/** The stack's outputs and parameters, or undefined when it does not exist. */
|
|
147
159
|
describeStack(stackName: string, region: string): Promise<{
|
|
148
160
|
outputs: Record<string, string>;
|
|
@@ -151,32 +163,40 @@ export interface SetupRunnerDeps {
|
|
|
151
163
|
/** The account's enabled regions (EC2 DescribeRegions, AllRegions=false), asked in `region`. */
|
|
152
164
|
enabledRegions(region: string): Promise<string[]>;
|
|
153
165
|
/**
|
|
154
|
-
* Every
|
|
155
|
-
* account. An unreadable region in `required` fails the call;
|
|
156
|
-
* warned about and skipped
|
|
166
|
+
* Every connector stack with a runner (`pipeline-builder-runner-*`) in these
|
|
167
|
+
* regions of the account. An unreadable region in `required` fails the call;
|
|
168
|
+
* any other is warned about and skipped.
|
|
157
169
|
*/
|
|
158
170
|
listRunnerStacks(regions: string[], required: string[]): Promise<RunnerStackInfo[]>;
|
|
171
|
+
/** The regions (of `regions`) holding a forwarder stack of this name. */
|
|
172
|
+
forwarderRegions(stackName: string, regions: string[]): Promise<string[]>;
|
|
159
173
|
deleteStack(stackName: string, region: string): Promise<void>;
|
|
160
|
-
/** Upload
|
|
161
|
-
uploadCode(functionName: string, region: string): Promise<void>;
|
|
174
|
+
/** Upload one bundled Lambda handler and wait until the function is updated. */
|
|
175
|
+
uploadCode(functionName: string, region: string, bundle: LambdaBundle): Promise<void>;
|
|
162
176
|
/** The org's registered pipeline names (for the default prefix). */
|
|
163
177
|
registeredPipelineNames(): Promise<string[]>;
|
|
164
178
|
/** SHA-256 (hex) of the runner bundle this CLI deploys. */
|
|
165
179
|
bundleSha256(): string;
|
|
166
|
-
/** `infra setup-events --scoped-ingest` in the region (--with-events). */
|
|
167
|
-
runSetupEvents(region: string): Promise<void>;
|
|
168
180
|
/** A y/N question; false when nobody can answer (not a terminal, --json). */
|
|
169
181
|
confirm(question: string): Promise<boolean>;
|
|
170
182
|
warn(message: string): void;
|
|
171
|
-
/**
|
|
183
|
+
/** The org the operator's token acts for (secret names, OrgId). */
|
|
172
184
|
organizationId(): Promise<string>;
|
|
173
|
-
/**
|
|
185
|
+
/** This AWS account's id (sts:GetCallerIdentity): the default name. */
|
|
186
|
+
accountId(): Promise<string>;
|
|
187
|
+
/** A region's CDK bootstrap version (undefined = not bootstrapped with that qualifier). */
|
|
174
188
|
bootstrapVersion(region: string, qualifier: string): Promise<number | undefined>;
|
|
189
|
+
/** The home region's CDK bootstrap bucket (the template goes there), or undefined when there is none. */
|
|
190
|
+
bootstrapBucket(region: string, qualifier: string): Promise<string | undefined>;
|
|
175
191
|
/** --bootstrap: `cdk bootstrap` the region with these credentials. */
|
|
176
192
|
runBootstrap(region: string, qualifier: string): Promise<void>;
|
|
177
|
-
/**
|
|
193
|
+
/** Whether a Secrets Manager secret exists. */
|
|
178
194
|
secretExists(name: string, region: string): Promise<boolean>;
|
|
195
|
+
/** remove-account: revoke the credential stored in a secret (its own key revokes itself); false when there was nothing to revoke. */
|
|
196
|
+
revokeStoredKey(secretName: string, region: string): Promise<boolean>;
|
|
179
197
|
}
|
|
198
|
+
/** The connector's bundled Lambda handlers (dist/lambda/*). */
|
|
199
|
+
export type LambdaBundle = 'runner' | 'events' | 'renew';
|
|
180
200
|
/** Why the platform cannot take runners right now (`available: false` / 409 RUNNERS_UNAVAILABLE). */
|
|
181
201
|
export declare function runnersUnavailableMessage(reason?: RunnersUnavailableReason | null): string;
|
|
182
202
|
/** A 409 RUNNERS_UNAVAILABLE refusal's `details.reason`, when the server sent one. */
|
|
@@ -195,14 +215,17 @@ export interface SigningKeyStatus {
|
|
|
195
215
|
kid: string | null;
|
|
196
216
|
inheritedFrom?: string;
|
|
197
217
|
}
|
|
198
|
-
export interface
|
|
199
|
-
action: 'created' | 'updated' | '
|
|
218
|
+
export interface AccountResult {
|
|
219
|
+
action: 'created' | 'updated' | 'removed';
|
|
220
|
+
/** The connector id (with a runner). */
|
|
200
221
|
runnerId?: string;
|
|
201
|
-
|
|
222
|
+
/** The connector's name (with a runner). */
|
|
223
|
+
name?: string;
|
|
202
224
|
stackName: string;
|
|
203
225
|
region: string;
|
|
204
226
|
regions: string[];
|
|
205
227
|
prefixes?: string[];
|
|
228
|
+
runner?: boolean;
|
|
206
229
|
/** pending | active, as the platform last reported it. */
|
|
207
230
|
status?: string;
|
|
208
231
|
test?: {
|
|
@@ -214,14 +237,25 @@ export interface SetupRunnerResult {
|
|
|
214
237
|
jwksUrl?: string;
|
|
215
238
|
signingKey?: SigningKeyStatus;
|
|
216
239
|
bundleSha256?: string;
|
|
217
|
-
|
|
218
|
-
|
|
240
|
+
/** Reporting: off, or on with the regions forwarding to the home region (and those whose forwarder was removed). */
|
|
241
|
+
reporting?: {
|
|
242
|
+
enabled: false;
|
|
243
|
+
} | {
|
|
244
|
+
enabled: true;
|
|
245
|
+
forwarders: string[];
|
|
246
|
+
removedForwarders: string[];
|
|
247
|
+
};
|
|
248
|
+
/** The credential secrets the key renewal rotates. */
|
|
249
|
+
renewed?: string[];
|
|
250
|
+
/** Deploys through the runner: off, or on with each allowlisted region's CDK bootstrap. */
|
|
219
251
|
deploy?: {
|
|
220
252
|
enabled: false;
|
|
221
253
|
} | {
|
|
222
254
|
enabled: true;
|
|
223
255
|
bootstrap: Record<string, RegionBootstrap>;
|
|
224
256
|
};
|
|
257
|
+
/** remove-account: what is deliberately kept. */
|
|
258
|
+
retained?: string[];
|
|
225
259
|
}
|
|
226
260
|
/** A region's CDK bootstrap as --enable-deploy found (or left) it. */
|
|
227
261
|
export type RegionBootstrap = 'ok' | 'missing' | 'outdated' | 'bootstrapped';
|
|
@@ -251,7 +285,7 @@ export declare function prefixesOverlap(a: string[], b: string[]): boolean;
|
|
|
251
285
|
* and must be readable; the rest follow in the order DescribeRegions answers.
|
|
252
286
|
* Returns the stacks and the regions scanned.
|
|
253
287
|
*/
|
|
254
|
-
export declare function accountRunnerStacks(plan:
|
|
288
|
+
export declare function accountRunnerStacks(plan: AccountPlan, deps: AccountDeps): Promise<{
|
|
255
289
|
stacks: RunnerStackInfo[];
|
|
256
290
|
regions: string[];
|
|
257
291
|
}>;
|
|
@@ -261,39 +295,53 @@ export declare function accountRunnerStacks(plan: RunnerPlan, deps: SetupRunnerD
|
|
|
261
295
|
* failed region is warned about and skipped.
|
|
262
296
|
*/
|
|
263
297
|
export declare function scanRegionStacks(regions: string[], required: string[], listOne: (region: string) => Promise<RunnerStackInfo[]>, warn: (message: string) => void): Promise<RunnerStackInfo[]>;
|
|
298
|
+
/**
|
|
299
|
+
* The credential secrets the key renewal may rotate (each only when it exists):
|
|
300
|
+
* every one `store-token` can store — the platform key and each scope's leaf.
|
|
301
|
+
*/
|
|
302
|
+
export declare const RENEWABLE_LEAVES: readonly string[];
|
|
264
303
|
/** The registry host the deploy build pulls from: --registry-pull-host, else the platform URL's host[:port]. */
|
|
265
304
|
export declare function deployPullHost(plan: RunnerDeployPlan, platformBaseUrl: string): string;
|
|
266
305
|
/** The runner's own JWKS URL (absolute). */
|
|
267
306
|
export declare function runnerJwksUrl(platformBaseUrl: string, runnerId: string): string;
|
|
268
307
|
/** Install or update a runner. */
|
|
269
|
-
export declare function
|
|
308
|
+
export declare function setupAccountFlow(plan: AccountPlan, deps: AccountDeps): Promise<AccountResult>;
|
|
309
|
+
/** What remove-account deliberately leaves in the account (each removable by hand). */
|
|
310
|
+
export declare const RETAINED_RESOURCES: string[];
|
|
270
311
|
/**
|
|
271
|
-
*
|
|
272
|
-
*
|
|
273
|
-
*
|
|
274
|
-
*
|
|
275
|
-
*
|
|
276
|
-
* is not this org's is never touched.
|
|
312
|
+
* remove-account: revoke the connector on the platform FIRST (step-up; a stack
|
|
313
|
+
* whose connector the platform still has is never deleted), revoke the
|
|
314
|
+
* reporting credential, then delete the regional forwarders and the home stack.
|
|
315
|
+
* The connector is this organization's connector in the account (or the one
|
|
316
|
+
* `--account` names); `--no-runner` removes a reporting-only connector.
|
|
277
317
|
*/
|
|
278
|
-
export declare function
|
|
318
|
+
export declare function removeAccountFlow(plan: AccountPlan, deps: AccountDeps): Promise<AccountResult>;
|
|
279
319
|
/** SHA-256 of the runner bundle: what release notes list, so an operator can check what runs in their account. */
|
|
280
320
|
export declare function sha256OfFile(file: string): string;
|
|
281
|
-
/** A DescribeStacks entry as {@link RunnerStackInfo}, or undefined when it is not a
|
|
321
|
+
/** A DescribeStacks entry as {@link RunnerStackInfo}, or undefined when it is not a connector stack with a runner. */
|
|
282
322
|
export declare function runnerStackInfo(s: Stack, region: string): RunnerStackInfo | undefined;
|
|
283
|
-
/** The rule, after the options in `setup-
|
|
284
|
-
export declare const
|
|
323
|
+
/** The rule, after the options in `setup-account --help`. */
|
|
324
|
+
export declare const SETUP_ACCOUNT_HELP: string;
|
|
325
|
+
/**
|
|
326
|
+
* Registers `infra setup-account`.
|
|
327
|
+
*
|
|
328
|
+
* @example
|
|
329
|
+
* ```bash
|
|
330
|
+
* pipeline-manager infra setup-account --region us-east-1 --regions us-east-1,eu-west-2 --allowed-prefixes acme- --name "Prod — US East"
|
|
331
|
+
* pipeline-manager infra setup-account --region us-east-1 --api-gateway --allow-ip 203.0.113.10/32 --deploy
|
|
332
|
+
* pipeline-manager infra setup-account --region us-east-1 --no-runner
|
|
333
|
+
* pipeline-manager infra setup-account --region us-east-1 --dry-run --json
|
|
334
|
+
* ```
|
|
335
|
+
*/
|
|
336
|
+
export declare function setupAccount(program: Command): void;
|
|
285
337
|
/**
|
|
286
|
-
* Registers `infra
|
|
338
|
+
* Registers `infra remove-account`.
|
|
287
339
|
*
|
|
288
340
|
* @example
|
|
289
341
|
* ```bash
|
|
290
|
-
* pipeline-manager infra
|
|
291
|
-
* pipeline-manager infra
|
|
292
|
-
* pipeline-manager infra setup-runner --region us-east-1 --api-gateway --allow-ip 203.0.113.10/32 --waf-rate-limit 500
|
|
293
|
-
* pipeline-manager infra setup-runner --region us-east-1 --generate-key
|
|
294
|
-
* pipeline-manager infra setup-runner --region us-east-1 --label ops --delete
|
|
295
|
-
* pipeline-manager infra setup-runner --region us-east-1 --dry-run --json
|
|
342
|
+
* pipeline-manager infra remove-account --region us-east-1
|
|
343
|
+
* pipeline-manager infra remove-account --region us-east-1 --no-runner
|
|
296
344
|
* ```
|
|
297
345
|
*/
|
|
298
|
-
export declare function
|
|
299
|
-
//# sourceMappingURL=setup-
|
|
346
|
+
export declare function removeAccount(program: Command): void;
|
|
347
|
+
//# sourceMappingURL=setup-account.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setup-account.d.ts","sources":["../../src/commands/setup-account.ts"],"names":[],"mappings":"AAsDA,OAAO,EACsG,KAAK,KAAK,EAEtH,MAAM,gCAAgC,CAAC;AAIxC,OAAO,EAGiB,KAAK,YAAY,EAAE,KAAK,aAAa,EAAE,KAAK,mBAAmB,EAAE,KAAK,wBAAwB,EAAE,KAAK,YAAY,EACxI,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAoBpC,OAAO,EAAyC,KAAK,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAUzG,MAAM,WAAW,gBAAg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