Creating an Asset Source - AWS
Learn how to create an asset source in an Oracle Cloud Migrations environment.
Before you create an asset source, ensure that you have defined the required AWS privileges. See AWS Credentials for more information.
To create an asset source, follow these steps: You are redirected to the Asset source details page after the asset source is created successfully. You can now create a discovery work request. To create an asset source, use the
create
command.oci cloud-bridge discovery asset-source create --assets-compartment-id asset_compartment_ID --compartment-id target_compartment_ID --environment-id target_environment_ID --inventory-id assets_inventory_ID --type asset_source_type --discoveryCredentials credentials [OPTIONS]
create
command are:--assets-compartment-id
: Specifies the OCID of the compartment that is used to create assets.--compartment-id
: Specifies the OCID of the compartment for the resource.--environment-id
: Specifies the OCID of the environment.--inventory-id
: Specifies the OCID of the inventory that contains the created assets.--type
: Specifies the type of asset source in the external environment. The accepted value isAWS
.--discovery-credentials
: Specifies the OCI Vault secret that contains AWS credentials. The value cannot be null.--aws-account-key
: Specifies the AWS account key.--aws-region
: Specifies the AWS region where the source resources are located.--are-historical-metrics-collected
: Specifies the historical metrics that are collected directly from the source environment and contain a single value for the average network, memory, and CPU usage over an interval. Only one value for each is provided at the one day, one week, and one month intervals. This is optional.--are-realtime-metrics-collected
: Specifies the real-time metrics that are periodically collected from the source environment are stored in OCI monitoring. Overtime, more accurate calculations can be made against these metrics without relying on data provided by the source environment. This is optional.--is-cost-information-collected
: Specifies the cost estimation metrics. This is optional.
To get all the commands for
discovery asset-source
, run:oci cloud-bridge discovery asset-source -h
To get help for the
create
command, run:oci cloud-bridge discovery asset-source create -h
For a complete list of flags and variable options for CLI commands, see the CLI Command Reference.
To create an asset source, use the
CreateAssetSource
operation.