Documentation

Update an InfluxDB stack

Use the influx apply command to update a stack with a modified template. When applying a template to an existing stack, InfluxDB checks to see if the resources in the template match existing resources. InfluxDB updates, adds, and removes resources to resolve differences between the current state of the stack and the newly applied template.

Each stack is uniquely identified by a stack ID. For information about retrieving your stack ID, see View stacks.

Provide the following:

  • Organization name or ID
  • Stack ID
  • InfluxDB template URLs to apply
influx apply \
  -o example-org \
  -u http://example.com/template-1.yml \
  -u http://example.com/template-2.yml \
  --stack-id=12ab34cd56ef

Template resources are uniquely identified by their metadata.name field. If errors occur when applying changes to a stack, all applied changes are reversed and the stack is returned to its previous state.


Was this page helpful?

Thank you for your feedback!


The future of Flux

Flux is going into maintenance mode. You can continue using it as you currently are without any changes to your code.

Read more

InfluxDB 3 Open Source Now in Public Alpha

InfluxDB 3 Open Source is now available for alpha testing, licensed under MIT or Apache 2 licensing.

We are releasing two products as part of the alpha.

InfluxDB 3 Core, is our new open source product. It is a recent-data engine for time series and event data. InfluxDB 3 Enterprise is a commercial version that builds on Core’s foundation, adding historical query capability, read replicas, high availability, scalability, and fine-grained security.

For more information on how to get started, check out:

InfluxDB Cloud powered by TSM