Skip to main content

astro deployment connection create

info

This command is only available on Astro.

Create an Airflow connection in a Deployment's metadata database.

Usage

astro deployment connection create

Options

OptionDescriptionPossible Values
-d,--deployment-idThe ID of the Deployment where you want to create a connection.Any valid Deployment ID
--deployment-nameThe name of the Deployment where you want to create a connection. Use as an alternative to <deployment-id>.Any valid Deployment name
-w,--workspace-idCreate a connection for a Deployment that is not in your current Workspace. If not specified, your current Workspace is assumed.Any valid Workspace ID
-i,--conn-idThe connection ID. Required.string
-t,--conn-typeThe connection type. Required.string
--descriptionThe connection description.string
--extraThe extra field configuration, defined as a stringified JSON object.string
--hostThe connection host.string
--loginThe connection login or username.string
--passwordThe connection password.string
--portThe connection port.string
--schemaThe connection schema.string

Examples

# create connection called my-connection stored in the Deployment with an ID of cl03oiq7d80402nwn7fsl3dmv
astro deployment connection create --deployment-id cl03oiq7d80402nwn7fsl3dmv --conn-id my-connection --conn-type http

# create connections stored in the Deployment "My Deployment"
astro deployment connection create --deployment-name="My Deployment" --conn-id my-connection --conn-type http

Was this page helpful?

Sign up for Developer Updates

Get a summary of new Astro features once a month.

You can unsubscribe at any time.
By proceeding you agree to our Privacy Policy, our Website Terms and to receive emails from Astronomer.