Skip to content

environments

Functionality related to querying the user for GCP envionments.

ask_for_environments()

Ask the user for GCP environments the IAM bindings should be applied to.

One of: staging, prod

Source code in dapla_team_cli/tf/iam_bindings/environments.py
 7
 8
 9
10
11
12
13
14
15
16
def ask_for_environments() -> Any:
    """Ask the user for GCP environments the IAM bindings should be applied to.

    One of: `staging`, `prod`
    """
    return q.checkbox(
        message="Environments",
        qmark="🌳",
        choices=[q.Choice("staging", checked=True), q.Choice("prod")],
    ).ask()