Set up InfluxDB
As you get started with this tutorial, do the following to make sure everything you need is in place.
- Optional: Download, install, and configure the influx CLI
- Create an All Access API token
- Configure authentication credentials
- Optional: Create a bucket
Optional: Download, install, and configure the
influx
CLI.The
influx
CLI provides a simple way to interact with InfluxDB from a command line. For detailed installation and setup instructions, see theinflux
CLI reference.Create an All Access API token.
Go to cloud2.influxdata.com in a browser to log in and access the InfluxDB UI.
Navigate to Load Data > API Tokens using the left navigation bar.
Click + Generate API token and select All Access API Token.
Enter a description for the API token and click Save.
Copy the generated token and store it for safe keeping.
We recommend using a password manager or a secret store to securely store sensitive tokens.
Configure authentication credentials.
As you go through this tutorial, interactions with InfluxDB Cloud Serverless require your InfluxDB URL or host, organization name or ID, and your API token. There are different methods for providing these credentials depending on which client you use to interact with InfluxDB.
When configuring your token, if you created an all access token, use that token to interact with InfluxDB. Otherwise, use your operator token.
There are three ways to provide authentication credentials to the
influx
CLI:All
influx
CLI examples in this getting started tutorial assume your InfluxDB host, organization, and token are provided by either the activeinflux
CLI configuration or by environment variables.Optional: Create a bucket.
You can use an existing bucket or create a new one specifically for this getting started tutorial. All examples in this tutorial assume a bucket named “get-started”.
Use the InfluxDB UI,
influx
CLI, or InfluxDB API to create a bucket.If you haven’t already, download, install, and configure the
influx
CLI.Use the
influx bucket create
command to create a new bucket.Provide the following:
-n, --name
flag with the bucket name.-r, --retention
flag with the bucket’s retention period duration. Supported retention periods depend on your InfluxDB Cloud Serverless plan.- Connection and authentication credentials
influx bucket create \ --name
get-started\ --retention7d
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 Cloud Serverless and this documentation. To find support, use the following resources:
Customers with an annual or support contract can contact InfluxData Support.