﻿---
title: stack kb fleet-cloud-onboarding-instances post-fleet-cloud-onboarding-deployments cli command
description: Create cloud onboarding instance Behaviour flags: --dry-run — validate all inputs and exit without performing any action 
url: https://www.elastic.co/elastic/docs-builder/docs/5002/reference/elastic-cli/cli/stack/kb/fleet-cloud-onboarding-instances/post-fleet-cloud-onboarding-deployments
applies_to:
  - Elastic Cloud Serverless: Preview
  - Elastic Stack: Preview
---

# stack kb fleet-cloud-onboarding-instances post-fleet-cloud-onboarding-deployments cli command
<cli-modifiers>
</cli-modifiers>

```bash
elastic stack kb fleet-cloud-onboarding-instances post-fleet-cloud-onboarding-deployments \
  --mechanisms <mechanisms> \
  --provider <provider> \
  --services <services> \
  [options]
```

Create cloud onboarding instance
**Behaviour flags:**
`--dry-run` — validate all inputs and exit without performing any action

## Options

<definitions>
  <definition term="--mechanisms string[] required">
    Delivery mechanisms active in this deployment.
    **Repeatable:** pass `--mechanisms` multiple times to supply more than one value
  </definition>
  <definition term="--provider enum required">
    Cloud provider.
    **Values:** aws, azure, gcp
  </definition>
  <definition term="--services string[] required">
    Service IDs to be covered by this deployment.
    **Repeatable:** pass `--services` multiple times to supply more than one value
  </definition>
  <definition term="--agent-policy-ids string[]">
    Agent policy IDs for agent_based existing-policy deploys. Provided on create so that a mid-deploy tab-close leaves a record that hydrates back into existing mode.
    **Repeatable:** pass `--agent-policy-ids` multiple times to supply more than one value
  </definition>
  <definition term="--auth-method enum">
    Authentication method. Allowed values depend on the delivery mechanism: - managed_integration: identity_federation | static_keys
    - agent_based: static_keys (direct_access_keys) | temporary_keys | shared_credentials | assume_role
    **Values:** identity_federation, static_keys, temporary_keys, shared_credentials, assume_role
  </definition>
  <definition term="--connector-id string">
    ID of the fleet-cloud-connector to associate with this deployment. Omit for static-keys deployments.
  </definition>
  <definition term="--data-format enum">
    Data format: ecs or otel.
    **Values:** ecs, otel
  </definition>
  <definition term="--dedicated-namespace-templates">
    Whether the global namespace uses dedicated index templates. Applied to the installed packages after a deployment. Absent means off.
  </definition>
  <definition term="--description string">
    Integration description from the Service settings step.
  </definition>
  <definition term="--global-region string">
    Global AWS region from the Service Settings step.
  </definition>
  <definition term="--instances string[]">
    Service instances, including duplicates, being deployed. Used to restore the service list when the onboarding is resumed.
    **Repeatable:** pass `--instances` multiple times to supply more than one value
  </definition>
  <definition term="--integration-name string">
    Integration name as entered in the Service settings step, before any per-package suffix is applied.
  </definition>
  <definition term="--namespace string">
    Global data stream namespace from the Service settings step. When omitted, an agent-based deployment inherits the agent policy namespace, other deployment methods use the default namespace.
  </definition>
  <definition term="--package-names string[]">
    Names of the integration packages this deployment covers (e.g. aws, aws_bedrock). Used to list the deployments of a package.
    **Repeatable:** pass `--package-names` multiple times to supply more than one value
  </definition>
  <definition term="--policy-settings string">
    Integration policy settings from the Service settings step that apply to every integration policy of the deployment, keyed by integration policy field (for example `output_id`).
  </definition>
  <definition term="--service-names string">
    Display name of each service as shown in the onboarding flow, by service ID.
  </definition>
  <definition term="--service-vars string">
    Per-service config keyed by instance ID.
  </definition>
  <definition term="--input-file string">
    path to a JSON file to use as command input
  </definition>
  <definition term="--dry-run">
    validate all inputs and exit without performing any action (preview changes without applying them)
  </definition>
  <definition term="--no-validate">
    skip input validation and send the request as-is
  </definition>
</definitions>


## Global Options

<definitions>
  <definition term="--output-fields string">
    comma-separated list of fields to include in output (dot-notation supported)
  </definition>
  <definition term="--output-template string">
    Mustache-like template for custom text output (e.g. "{{id}}: {{name}}")
  </definition>
  <definition term="--json">
    output as JSON
  </definition>
</definitions>