tools/flag_sync/README.md
Flag Sync is a tool to allow engineers to quickly introduce or disable flags on remote client systems. Currently, this is used to enable or disable certain Bazel flags across user workstations or CI hosts.
Make sure you have valid AWS admin credentials for devprod-build. aws configure sso is the easiest way to do so.
bazel run //tools/flag_sync:client flag get "{namespace}"
bazel run //tools/flag_sync:client flag create "{namespace}" "{flag_name}" "{flag_value}"
bazel run //tools/flag_sync:client flag toggle-off "{namespace}" "{flag_name}"
bazel run //tools/flag_sync:client flag toggle-on "{namespace}" "{flag_name}"
bazel run //tools/flag_sync:client flag delete "{namespace}" "{flag_name}"
user-prod - Namespace for flags to be synced with user workstations.ci-prod - Namespace for flags to be synced with CI hosts.Create a new config local flag under the user-prod namespace:
bazel run //tools/flag_sync:client flag create "user-prod" "local" "common --config=local"
If the flag exists already, you can simple run:
bazel run //tools/flag_sync:client flag toggle-on "user-prod" "local"