Skip to main content
Version: 4.0.4

app run Command

The app run command runs an infrastructure app.

Usage

app run <app_name> [--dry-run] [--config <config_name>]

Parameters

ParameterDescriptionRequired?Default Value
app_nameInfrastructure app name✔️

Options

OptionDescriptionRequired?
--dry-runPerform a dry run of the app *
--config <config_name>Config identifier **

* When using the --dry-run argument, the app will not be executed but the commands will be printed to the terminal.

** By default, Fix Inventory passes the app a configuration that corresponds to the app name. (For example, when installing an app named foobar, Fix Inventory creates a default config named fix.apps.foobar.) If you would like to run the app with an alternative config, you can specify the config name using the --config argument.

Example

Dry run an app
> app run --dry-run cleanup-untagged
search /metadata.protected == false and /metadata.phantom == false and /metadata.cleaned == false and is(["aws_ec2_instance", "aws_ec2_volume", "aws_vpc", "aws_cloudformation_stack", "aws_elb", "aws_alb", "aws_alb_target_group", "aws_eks_cluster", "aws_eks_nodegroup", "example_instance", "example_network"]) and not(has_key(tags, ["owner", "expiration"])) and ((/ancestors.cloud.reported.id == "aws" and /ancestors.account.reported.id == "068564737731" and age > 7d) or (/ancestors.cloud.reported.id == "aws" and /ancestors.account.reported.id == "575584959047" and age > 2h)) | clean "Missing one or more of required tags owner, expiration and age more than thfixshold"