diff --git a/template-only-docs/set-up-cd.md b/template-only-docs/set-up-cd.md index 83c9c3e4..398c5282 100644 --- a/template-only-docs/set-up-cd.md +++ b/template-only-docs/set-up-cd.md @@ -4,7 +4,7 @@ Once you have set up your application environments (at least `dev`), you can enable continuous deployment by running: ```sh -nava-platform infra update --data app_has_dev_env_setup=true . +nava-platform infra update --answers-only --data app_has_dev_env_setup=true ``` And update the `role-to-assume` with the GitHub actions ARN. diff --git a/template-only-docs/set-up-ci.md b/template-only-docs/set-up-ci.md index dd26da74..ba0b1be9 100644 --- a/template-only-docs/set-up-ci.md +++ b/template-only-docs/set-up-ci.md @@ -11,7 +11,7 @@ Some checks are disabled until you've completed certain setup steps: After [setting up the app environment](/docs/infra/set-up-app-env.md), run: ```sh -nava-platform infra update --data app_has_dev_env_setup=true . +nava-platform infra update --answers-only --data app_has_dev_env_setup=true . ``` If you setup your AWS account in a different region than `us-east-1`, update the `aws-region` workflow settings to match your region. diff --git a/template-only-docs/set-up-pr-environments.md b/template-only-docs/set-up-pr-environments.md index 1df2db04..283cc207 100644 --- a/template-only-docs/set-up-pr-environments.md +++ b/template-only-docs/set-up-pr-environments.md @@ -3,6 +3,6 @@ [Pull request environments](/docs/infra/pull-request-environments.md) are temporary environments that exist during a pull request. Enable them after [setting up the app environment](/docs/infra/set-up-app-env.md): - In [ci-{{app_name}}-pr-environment-checks.yml](/.github/workflows/ci-{{app_name}}-pr-environment-checks.yml.jinja) and [ci-{{app_name}}-pr-environment-destroy.yml](/.github/workflows/ci-{{app_name}}-pr-environment-destroy.yml.jinja), search for `!!`. -- Uncomment the PR environment triggers for spot testing. Run `nava-platform infra update --data app_has_dev_env_setup=true .` to consistently enable things. +- Uncomment the PR environment triggers for spot testing. Run `nava-platform infra update-app --answers-only --data app_has_dev_env_setup=true . ` to consistently enable things. You can verify that PR environments are working by opening a new PR and waiting for the "PR Environment Update" job to finish. diff --git a/templates/app/.github/workflows/cd-{{app_name}}.yml.jinja b/templates/app/.github/workflows/cd-{{app_name}}.yml.jinja index 0442a04b..a38e887f 100644 --- a/templates/app/.github/workflows/cd-{{app_name}}.yml.jinja +++ b/templates/app/.github/workflows/cd-{{app_name}}.yml.jinja @@ -16,7 +16,7 @@ on: # !! Once you've set up the dev environment and are ready to enable continuous # deployment, run: # - # nava-platform infra update --data app_has_dev_env_setup=true . + # nava-platform infra update-app --answers-only --data app_has_dev_env_setup=true . {{app_name}} # # to enable these lines. They are here as comments for context. # diff --git a/templates/app/.github/workflows/ci-{{app_name}}-infra-service.yml.jinja b/templates/app/.github/workflows/ci-{{app_name}}-infra-service.yml.jinja index 09e288a2..350a4123 100644 --- a/templates/app/.github/workflows/ci-{{app_name}}-infra-service.yml.jinja +++ b/templates/app/.github/workflows/ci-{{app_name}}-infra-service.yml.jinja @@ -20,7 +20,7 @@ on: # !! Once you've set up the dev environment and are ready to enable automated # infra tests, run: # - # nava-platform infra update --data app_has_dev_env_setup=true . + # nava-platform infra update-app --answers-only --data app_has_dev_env_setup=true . {{app_name}} # # to enable these lines. They are here as comments for context. # diff --git a/templates/app/.github/workflows/ci-{{app_name}}-pr-environment-checks.yml.jinja b/templates/app/.github/workflows/ci-{{app_name}}-pr-environment-checks.yml.jinja index 764ea91b..f0ae79b3 100644 --- a/templates/app/.github/workflows/ci-{{app_name}}-pr-environment-checks.yml.jinja +++ b/templates/app/.github/workflows/ci-{{app_name}}-pr-environment-checks.yml.jinja @@ -14,7 +14,7 @@ on: # !! Once you've set up the dev environment and are ready to enable PR # environments, run: # - # nava-platform infra update --data app_has_dev_env_setup=true . + # nava-platform infra update-app --answers-only --data app_has_dev_env_setup=true . {{app_name}} # # to enable these lines. They are here as comments for context. # diff --git a/templates/app/.github/workflows/ci-{{app_name}}-pr-environment-destroy.yml.jinja b/templates/app/.github/workflows/ci-{{app_name}}-pr-environment-destroy.yml.jinja index 62bb4579..809b3972 100644 --- a/templates/app/.github/workflows/ci-{{app_name}}-pr-environment-destroy.yml.jinja +++ b/templates/app/.github/workflows/ci-{{app_name}}-pr-environment-destroy.yml.jinja @@ -12,7 +12,7 @@ on: # !! Once you've set up the dev environment and are ready to enable PR # environments, run: # - # nava-platform infra update --data app_has_dev_env_setup=true . + # nava-platform infra update-app --answers-only --data app_has_dev_env_setup=true . {{app_name}} # # to enable these lines. They are here as comments for context. #