Configuring your Projects to use Fastly#
amazee.io CDN uses the variable LAGOON_FASTLY_SERVICE_ID
to configure your domains under your projects or environments.
amazee.io CDN takes care of registering the domain of the ingress with a specific Fastly service and uploads TLS certificates into Fastly’s Platform TLS.
When you add the LAGOON_FASTLY_SERVICE_ID
variable at the project level or environment level, our CDN will know that the domains inside that project are managed and will do all the necessary modifications.
Usage#
You can add the LAGOON_FASTLY_SERVICE_ID
at project level or environment level, please note that you will need to perform a deployment (of all the environments within the project if the variable is added at project level or of the specific environment if the variable is added at environment level) in order for the changes to take effect.
Command to add the LAGOON_FASTLY_SERVICE_ID
at the project level is :
lagoon add variable -p project-name --name LAGOON_FASTLY_SERVICE_ID --scope build --value 'XXXXXXXXXXXXXXXXXX:true'
If you would like to add this at the environment level, the command is :
lagoon add variable -p project-name -e env_name --name LAGOON_FASTLY_SERVICE_ID --scope build --value 'XXXXXXXXXXXXXXXXXX:true'
To see what variables you have at the project level and if the variable has been set correctly, you can use the following command :
lagoon list v -p project-name --reveal
To see the variables at the environment level :
lagoon list v -p project-name -e environment-name --reveal
Help#
If you're unsure if you have a service ID to use, reach out to your customer engagement manager or technical account manager, alternatively you can open a support ticket (see Support)