ardent-cli 0.0.18 → 0.0.19

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.
Files changed (2) hide show
  1. package/dist/index.js +8 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -712,6 +712,7 @@ async function createAction2(type, url, options) {
712
712
  if (!options.awsRoleArn) missing.push("--aws-role-arn");
713
713
  if (!options.awsExternalId) missing.push("--aws-external-id");
714
714
  if (!options.awsRegion) missing.push("--aws-region");
715
+ if (!options.awsClusterName) missing.push("--aws-cluster-name");
715
716
  if (missing.length > 0) {
716
717
  console.error(
717
718
  `\u2717 ${missing.join(", ")} required when --deployment-model=customer-cloud`
@@ -719,10 +720,10 @@ async function createAction2(type, url, options) {
719
720
  process.exit(1);
720
721
  }
721
722
  } else {
722
- const stray = options.awsRoleArn || options.awsExternalId || options.awsRegion;
723
+ const stray = options.awsRoleArn || options.awsExternalId || options.awsRegion || options.awsClusterName;
723
724
  if (stray) {
724
725
  console.error(
725
- "\u2717 --aws-role-arn / --aws-external-id / --aws-region require --deployment-model=customer-cloud"
726
+ "\u2717 --aws-role-arn / --aws-external-id / --aws-region / --aws-cluster-name require --deployment-model=customer-cloud"
726
727
  );
727
728
  process.exit(1);
728
729
  }
@@ -793,7 +794,8 @@ async function createAction2(type, url, options) {
793
794
  createPayload.byoc_access_credentials = {
794
795
  role_arn: options.awsRoleArn,
795
796
  external_id: options.awsExternalId,
796
- region: options.awsRegion
797
+ region: options.awsRegion,
798
+ cluster_name: options.awsClusterName
797
799
  };
798
800
  }
799
801
  const created = await api.post("/v1/connectors", createPayload);
@@ -1064,6 +1066,9 @@ connectorCommand.command("create <type> [url]").description("Create a new connec
1064
1066
  ).option(
1065
1067
  "--aws-region <region>",
1066
1068
  "AWS region of the customer data plane (required with --deployment-model=customer-cloud)"
1069
+ ).option(
1070
+ "--aws-cluster-name <name>",
1071
+ "EKS cluster name in the customer account where pgstream pods run (required with --deployment-model=customer-cloud)"
1067
1072
  ).action(createAction2);
1068
1073
  connectorCommand.command("list").description("List your connectors").action(listAction2);
1069
1074
  connectorCommand.command("switch <name>").description("Switch to a different connector").action(switchAction2);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ardent-cli",
3
- "version": "0.0.18",
3
+ "version": "0.0.19",
4
4
  "description": "Git for Data infrastructure",
5
5
  "type": "module",
6
6
  "bin": {