Skip to content

Setup Launchpad

GlennChia edited this page Jul 7, 2021 · 1 revision

The caf-terraform-landingzones repo provides instructions on how to deploy a sample landing zone such as the caf_launchpad and caf_solution. For development, the caf_launchpad is sufficient. Instructions to deploy the launchpad are also shown below. For the most updated instructions, please refer to Getting started with launchpad.

Installation steps

  1. First clone the repo. Link to the caf-terraform-landingzones repo
  2. Re-open the cloned repository in the .devcontainer. This assumes that you have completed the required installs
  3. In the terminal that has path /tf/caf/, login to rover with rover login. Follow the instructions as shown in the prompt. This requires you to enter a code that is shown on a page that can be accessed via a provided link.
  4. Once successfully logged in, run the following command to deploy the launchpad:
    rover -lz /tf/caf/caf_launchpad \
        -launchpad \
        -var-folder /tf/caf/caf_launchpad/scenario/100 \
        -parallelism=30 \
        -a apply
  5. If successfully deployed, you will see Apply complete! Resources: <some number> added, 0 changed, 0 destroyed

Troubleshooting

Rover apply command not working

Error message:

Failed to get existing workspaces: containers.Client#ListBlobs: Failure responding to request: StatusCode=403 -- Original Error: autorest/azure: Service returned an error. Status=403 Code="AuthenticationFailed" Message="Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.

Fix:

This issue is caused by a time drift between Windows and the Docker container. Run sudo hwclock -s and then try the apply command again.

Clone this wiki locally