Deploy Infrastructure Changes
You will need
- The project tools
- (If accessing Google Cloud) Google Cloud's default application configured
- (If accessing GitHub) A personal access token (with administrative rights to the repository)
- (If accessing Auth0)
AUTH0_DOMAINand an Auth0 API token or client credentials
Environments
There are different environments that are controlled by Tofu. These include:
| Environment | Description |
|---|---|
| a0 | Auth0 API, CLI application, roles, and permissions |
| gh | The GitHub repository containing the project |
| prod | All resources deployed in Google Cloud, publicly accessible |
Deploying Changes
The changes need to be deployed in two steps:
-
Plan the changes:
-
CAREFULLY INSPECT the output, and ensure you understand it all
-
Apply the changes
If an apply only partly succeeds, create a new plan before retrying. The previous saved plan no longer describes the current infrastructure state.
Activate shp7.link
The production configuration adds a shp7-link Cloud DNS zone, an apex A
record pointing to the shared load balancer, and a dedicated managed TLS
certificate attached to the existing HTTPS proxy. It covers shp7.link;
www.shp7.link is not configured.
- Plan and apply the
prodenvironment using the steps above. -
Retrieve the nameservers assigned to the new zone:
-
Set those nameservers at the domain registrar for
shp7.link. Registrar delegation is managed outside this Terraform configuration. -
Wait for DNS propagation and for the certificate to become
ACTIVE: -
Create a short link on
shp7.linkand open its HTTPS URL to verify the redirect. The domain root only redirects if a link has been created for that path.