Skip to content

Latest commit

 

History

History

Open Targets Platform API

This submodule defines the infrastructure needed to deploy Open Targets Platform Web Application.

Built as a Single Page Application (SPA), it is deployed in a Google Cloud Storage bucket, once the deployment configuration context has been injected in the web bundle.

How to use the module

The module can be sourced from its GitHub URL as shown below.

// --- Open Targets Platform API --- //
module "webapp" {
  source = "github.com/opentargets/terraform-google-opentargets-platform//modules/webapp"
  // ...
}

Module configuration

The module implements the following input parameters.

General configuration

module_wide_prefix_scope, scoping prefix for naming resources in this deployment, default 'otpdevwebapp'.

project_id, ID of the project that will host the deployed resources.

location, this input value sets the bucket's location. Multi-Region or Regional buckets location values are supported, see here for more information. By default, the bucket is regional, location 'EUROPE-WEST4'

Web Application configuration

webapp_repo_name, Web Application repository name, where to find the bundle given a release version as well.

webapp_release, release version of the web application to deploy (it will be used to locate the bundle within the given repository)

webapp_deployment_context_placeholder, This defines the placeholder to replace within the public index.html, with the deployment context, default 'DEVOPS_CONTEXT_DEPLOYMENT' (DEPRECATED)

webapp_deployment_context, values for parameterising the deployment of the web application, see defaults as an example.

webapp_docker_node_version, Node version to use for building the bundle.

website_not_found_page, it defines the website 'not found' page, default 'index.html'.

Temporary assets

folder_tmp, path to a temporary folder where to deploy working directories.

Output Information

Once the infrastructure has been successfully deployed, the following details are revealed by this module as output.

bucket, details on the created Google Cloud Storage Bucket.

Copyright

Copyright 2014-2018 Biogen, Celgene Corporation, EMBL - European Bioinformatics Institute, GlaxoSmithKline and Wellcome Sanger Institute

This software was developed as part of the Open Targets project. For more information please see: http://www.opentargets.org

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.