Skip to content

Setting up

Get started by installing the infraweave cli.

Installing on Linux (x86)
# Download the binary
curl -Lo infraweave https://github.com/infraweave-io/infraweave/releases/latest/download/cli-linux-amd64
# Make it executable
chmod +x infraweave
# Move it to a directory in your PATH, e.g.
mkdir -p ~/.local/bin
mv infraweave ~/.local/bin
# Optional: Add the following to ~/.bashrc or ~/.zshrc:
export PATH="$HOME/.local/bin:$PATH"

Now it’s installed! Please remember to keep it up to date.

Verify installation

To verify the installation, run the following command:

Check the CLI version
infraweave --version

Running commands

Before you run any infraweave commands, make sure your cloud credentials and default region are set—just like you would for aws or az. Otherwise, the CLI will fail when it tries to call the API.

For example, to configure AWS:

export AWS_REGION=us-west-2
export AWS_PROFILE=central

Once your cloud is bootstrapped and these environment variables are in place, you’ll be ready to go.

Bootstrap Environment

To bootstrap your environment, set up the central and workload modules for your desired cloud provider, find them here.

You need to set up:

  • central - storage and databases required by the control plane
  • workload - runtime environments which should be deployed per project (e.g. AWS Account/Azure Subscription)

Start using 🎉

Now you have bootstrapped your AWS organization accounts with InfraWeave and are ready to use it.

Ensure you have set a region and a profile to use, as well as which InfraWeave environment you want to connect to:

Terminal window
export AWS_REGION=us-west-2
export AWS_PROFILE=central
export INFRAWEAVE_ENV=dev

If you run

Terminal window
infraweave module list beta

you will list all your modules that have been published to the beta-track in your central account for the dev-environment.

It is expected to show an empty list since you have not yet published anything:

Terminal window
$ infraweave module list beta
Project ID: 123456789101
Region: us-west-2
Module ModuleName Version Track Ref