@datadog/datadog-ci-plugin-ecs-fargate 5.28.0 → 5.29.0
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 +0 -9
- package/dist/bundle.d.ts +20 -0
- package/dist/bundle.js +462 -87
- package/dist/bundle.js.LEGAL.txt +39 -0
- package/dist/bundle.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -4,13 +4,9 @@ You can use the CLI to instrument your AWS ECS Fargate task definitions with Dat
|
|
|
4
4
|
|
|
5
5
|
### `instrument`
|
|
6
6
|
|
|
7
|
-
**Warning:** The `ecs-fargate instrument` command is in beta. It requires you to set `DD_BETA_COMMANDS_ENABLED=1`.
|
|
8
|
-
|
|
9
7
|
Run `datadog-ci ecs-fargate instrument` to add the Datadog Agent sidecar to an ECS Fargate task definition. The command reads the task definitions you name, adds the `datadog-agent` container to each of them, and registers the result as a new revision. Running tasks do not change until the new revision is deployed. Pass `--ecs-service` to have the command update the service for you.
|
|
10
8
|
|
|
11
9
|
```bash
|
|
12
|
-
export DD_BETA_COMMANDS_ENABLED=1
|
|
13
|
-
|
|
14
10
|
# Instrument a task definition, reading the API key from an AWS Secrets Manager secret
|
|
15
11
|
datadog-ci ecs-fargate instrument --task-definition my-app -r us-east-1 --api-key-secret-arn <secret-arn>
|
|
16
12
|
|
|
@@ -116,13 +112,9 @@ A task definition and the services running it are instrumented and deployed on t
|
|
|
116
112
|
|
|
117
113
|
### `uninstrument`
|
|
118
114
|
|
|
119
|
-
**Warning:** The `ecs-fargate uninstrument` command is in beta. It requires you to set `DD_BETA_COMMANDS_ENABLED=1`.
|
|
120
|
-
|
|
121
115
|
Run `datadog-ci ecs-fargate uninstrument` to remove Datadog instrumentation from an ECS Fargate task definition. The command reads the task definitions you name, removes what `instrument` added, and registers the result as a new revision. As with `instrument`, running tasks do not change until the new revision is deployed. Pass `--ecs-service` to have the command update the service for you.
|
|
122
116
|
|
|
123
117
|
```bash
|
|
124
|
-
export DD_BETA_COMMANDS_ENABLED=1
|
|
125
|
-
|
|
126
118
|
# Revert a task definition
|
|
127
119
|
datadog-ci ecs-fargate uninstrument --task-definition my-app -r us-east-1
|
|
128
120
|
|
|
@@ -165,7 +157,6 @@ The Agent collects ECS task metadata, which is what tags your telemetry with the
|
|
|
165
157
|
|
|
166
158
|
#### Environment variables
|
|
167
159
|
|
|
168
|
-
- `DD_BETA_COMMANDS_ENABLED`: set to `1` to enable these commands while they are in beta.
|
|
169
160
|
- `DD_API_KEY` (or `DATADOG_API_KEY`): the Datadog API key to write into the task definition, used by `instrument` only when `--api-key-secret-arn` is not passed.
|
|
170
161
|
- `DD_SITE` (or `DATADOG_SITE`): the [Datadog site](https://docs.datadoghq.com/getting_started/site/) to send data to. Defaults to `datadoghq.com`.
|
|
171
162
|
- `AWS_REGION` (or `AWS_DEFAULT_REGION`): the region to use when `--region` is not passed.
|
package/dist/bundle.d.ts
CHANGED
|
@@ -297,6 +297,19 @@ declare abstract class Command<Context extends BaseContext = BaseContext> {
|
|
|
297
297
|
static Default: never[];
|
|
298
298
|
}
|
|
299
299
|
//#endregion
|
|
300
|
+
//#region ../base/dist/helpers/auth.d.ts
|
|
301
|
+
/**
|
|
302
|
+
* The authentication requirement of a command, declared with `public static authRequirement` on its base command class
|
|
303
|
+
* in `packages/base/src/commands/**`, next to the options it describes. A test checks that every registered command
|
|
304
|
+
* declares one.
|
|
305
|
+
*/
|
|
306
|
+
type AuthRequirement = {
|
|
307
|
+
kind: 'orgAction' | 'apiKey' | 'none';
|
|
308
|
+
} /** A command-specific text, for example the cloud credentials and Datadog variables a Serverless command reads. */ | {
|
|
309
|
+
kind: 'custom';
|
|
310
|
+
help: string;
|
|
311
|
+
};
|
|
312
|
+
//#endregion
|
|
300
313
|
//#region ../base/dist/helpers/serverless/ssi/injection-spec.d.ts
|
|
301
314
|
declare const LIBCS: readonly ["glibc", "musl"];
|
|
302
315
|
type Libc = (typeof LIBCS)[number];
|
|
@@ -347,6 +360,11 @@ type CommandContext = BaseContext & {
|
|
|
347
360
|
* This command should be extended by **every** command in the monorepo.
|
|
348
361
|
*/
|
|
349
362
|
declare abstract class BaseCommand<Context extends CommandContext = CommandContext> extends Command<Context> {
|
|
363
|
+
/**
|
|
364
|
+
* The credentials the command needs, shown in the "Authentication" section of its `--help`.
|
|
365
|
+
* Every command declares one; plugin commands inherit it from their base command.
|
|
366
|
+
*/
|
|
367
|
+
static authRequirement?: AuthRequirement;
|
|
350
368
|
protected logFormat: "text" | "json";
|
|
351
369
|
private _logger?;
|
|
352
370
|
get logger(): Logger;
|
|
@@ -419,6 +437,7 @@ declare abstract class EcsFargateCommand extends BaseCommand {
|
|
|
419
437
|
declare class EcsFargateInstrumentCommand extends EcsFargateCommand {
|
|
420
438
|
static paths: string[][];
|
|
421
439
|
static usage: Usage;
|
|
440
|
+
static authRequirement: AuthRequirement;
|
|
422
441
|
private apiKeySecretArn;
|
|
423
442
|
private agentImage;
|
|
424
443
|
private noAgentSocket;
|
|
@@ -489,6 +508,7 @@ declare class PluginCommand$1 extends EcsFargateInstrumentCommand {
|
|
|
489
508
|
declare class EcsFargateUninstrumentCommand extends EcsFargateCommand {
|
|
490
509
|
static paths: string[][];
|
|
491
510
|
static usage: Usage;
|
|
511
|
+
static authRequirement: AuthRequirement;
|
|
492
512
|
private envVars;
|
|
493
513
|
get additionalConfig(): Partial<EcsFargateConfigOptions>;
|
|
494
514
|
execute(): Promise<number | void>;
|