Set up InfluxDB 3 Cloud
InfluxDB 3 Cloud is the fully managed, cloud-hosted version of
InfluxDB 3 Enterprise.
InfluxData provisions and operates the InfluxDB 3 servers for you, so you don’t
install, run, or scale servers yourself.
To get started, sign up for a trial, find your instance URL in the Admin UI,
configure the influxdb3 CLI, log in, and then create a database.
- Get your instance
- Trial expiration
- Configure the influxdb3 CLI
- Create a database
- Create a token for applications
Get your instance
Sign up for a InfluxDB 3 Cloud trial. Check the email address you used to sign up for onboarding instructions and your trial terms.
Trial object storage
New trial signups currently use AWS object storage in the United States.
Click the link in your email to confirm that you want to start your trial. You’re redirected to the Admin UI at console.influxdata.com to log in. Your instance can take up to one hour to provision after you confirm your signup. Once your instance is ready, you can create a database and resource token in the Admin UI, or continue with the CLI steps below.
For questions or problems during your trial, follow the instructions in your signup email or contact influxdb3-cloud-trial@influxdata.com.
After your instance is provisioned, find your instance host URL, which is the endpoint you connect to:
- Go to console.influxdata.com and sign in.
- Select your instance.
- In the navigation, select Overview.
- In the Instance Details card, copy the Instance URL.
The Admin UI URL, https://console.influxdata.com, isn’t your instance host URL.
If you use it as the host, influxdb3 auth login --oauth fails with a JSON parsing error.
For more information, see Monitor your instance.
You authenticate with your InfluxData account in the following steps. You don’t copy or store a token for interactive use.
You can also manage your instance in the InfluxDB 3 Cloud Admin UI at
console.influxdata.com.
Sign in with the same InfluxData account to view your instance.
Depending on your role, you can manage databases,
tokens, and
users.
This guide uses the influxdb3 CLI.
Trial expiration
When your trial expires, your instance is deprovisioned within one hour and you lose access to it. InfluxData retains your data for 15 days after your trial expires. Export any data you want to keep before your trial ends. For questions about your trial, contact influxdb3-cloud-trial@influxdata.com. Refer to your trial email for your trial terms.
Configure the influxdb3 CLI
The influxdb3 CLI lets you
administer your instance and write and query data from the command line.
Because InfluxDB 3 Cloud is fully managed, you don’t install or run
anything for the service itself. You point the influxdb3 CLI at your hosted
instance and log in with your InfluxData account.
Install the influxdb3 CLI
The influxdb3 CLI is distributed in the InfluxDB 3 Enterprise binary.
For InfluxDB 3 Cloud, you install the Enterprise binary to get the CLI—you don’t run the server.
To install it on Linux or macOS, download and run the quick installer
script:
curl -O https://www.influxdata.com/d/install_influxdb3.sh \
&& sh install_influxdb3.sh enterprise --version 3.12.3The installer script defaults to an older version of the CLI.
Use the --version option to install version 3.10.0 or later.
InfluxDB 3 Cloud requires influxdb3 3.10.0 or later because
influxdb3 auth login, which you use to authenticate, was introduced in 3.10.0.
When the installer prompts you, make the following choices:
- At Select Installation Type, enter
2(Simple Download). Don’t choose1(Docker Image), which pulls an image but doesn’t install the CLI on your host. - Skip the prompts to start a server. InfluxDB 3 Cloud is fully managed, so you only need the CLI.
To verify the installed version, run influxdb3 --version.
For Windows binaries and other CLI installation options, see Install the influxdb3 CLI for InfluxDB 3 Cloud.
Connect to your instance
Set the INFLUXDB3_HOST_URL environment variable for the influxdb3 CLI to connect to your instance host URL:
export INFLUXDB3_HOST_URL=https://instance-id.enterprise.influxdb.io$env:INFLUXDB3_HOST_URL = "https://instance-id.enterprise.influxdb.io"set INFLUXDB3_HOST_URL=https://instance-id.enterprise.influxdb.io
# Make sure to include a space character at the end of this command.Log in to your instance
Log in to your instance with the OAuth device-code flow. InfluxDB 3 Cloud authenticates you with your InfluxData account, so you don’t need a token to use the CLI interactively.
Run the following command and follow the printed instructions:
influxdb3 auth login --oauthThe output is a URL and a one-time user code.
Open the URL in a browser, enter the code, and approve the request.
After you approve, the CLI saves your credentials to
~/.influxdb3/credentials.json and uses them automatically for later
commands, so you don’t need to pass a token.
Don’t set the INFLUXDB3_AUTH_TOKEN environment variable for interactive use.
If it’s set, the influxdb3 CLI uses that token instead of your logged-in
session. Run influxdb3 auth login --oauth again when your session expires.
List your databases to verify that you’re authenticated:
influxdb3 show databasesA successful response confirms that your host URL and login are configured correctly.
Create a database
Use the
influxdb3 create database command
to create a database.
You can use an existing database or create a new one specifically for this
getting started tutorial.
Examples in this tutorial assume a database named get-started.
Provide the following:
- The database name
- Optional: a database retention period as a duration value. If no retention period is specified, the default is infinite.
influxdb3 create database \
--retention-period 1y \
get-startedReplace the following:
get-started: the name of the database to create1y: the database retention period as a duration
A newly created database can take a few seconds to appear in
influxdb3 show databases.
Create a token for applications
Logging in authenticates you for interactive use with the influxdb3 CLI.
For applications and automated clients, create a database token scoped to
only the databases and permissions it needs.
To create a resource token with the CLI or HTTP API, your role needs
Create on Resource tokens for the instance.
The default Member role includes this permission; a custom role can also grant it.
Using the Tokens page in the Admin UI requires the Admin role.
If you don’t have the required permission, ask an administrator to create a token for you.
For details, see Role permissions reference.
Use the
influxdb3 create token command
with the --permission option to create a token with read and write access to
your database.
Provide the following:
--permission: A resource permission string in the formatdb:DATABASE_NAME:read,write--name: A unique name for the token
influxdb3 create token \
--permission "db:get-started:read,write" \
--name "Read/write token for get-started database"Replace get-started
with the name of the database to grant the token access to.
The command returns the token string.
Store your token securely
InfluxDB displays the token string only when you create it. Store your token securely—you cannot retrieve it from the database later.
Applications can authenticate with the token by setting the
INFLUXDB3_AUTH_TOKEN environment variable or passing the --token option.
Authentication in InfluxDB 3 Cloud
For interactive use, authenticate as a user with
influxdb3 auth login --oauth.
You don’t need a token.
For applications, create and manage tokens in the Admin UI, with the
influxdb3 CLI, or through the HTTP API. This guide uses the CLI:
- Database tokens: Grant scoped read and/or write access to specific databases.
- Admin tokens: Grant full administrative access. Create named admin
tokens with
influxdb3 create token --admin --name "NAME".
For more information, see Manage tokens.
Was this page helpful?
Thank you for your feedback!
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for InfluxDB 3 Cloud and this documentation. To find support, use the following resources:
Customers with an annual or support contract can contact InfluxData Support.