EMBL-EBI-TSI/cpa-instance

Name: cpa-instance

Owner: EMBL-EBI Technology & Science Integration

Description: TSI Cloud Portal - generic server instance

Created: 2016-11-01 10:13:06.0

Updated: 2017-09-26 13:05:25.0

Pushed: 2018-01-12 16:36:04.0

Homepage: null

Size: 50

Language: HCL

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

TSI Cloud Portal - generic server instance

A generic server Portal app deployable in the Cloud.

Requirements

A network and a floating ip pool are expected to be shared with other virtual machines, therefore is not provided and destroyed with this terraform description.
If you want to provide a new network you can use the cpa-network terraform app.

Instructions
General set up in the Cloud Portal
Deployment in the Cloud Portal
ssh connection

Once the Virtual machine is deployed you can connect to it with:

-i `~/.ssh/your_private_key_name` `OS_default_user`@`external_ip_provided_in_the_portal_output`

i.e:

-i ~/.ssh/id_rsa ubuntu@216.58.212.78

In AWS, the OS_dafualt_user is always ec2-user.

In Azure, the OS_dafualt_user is always clouduser

Configuration example

Note: most of this values are specific for each cloud provider and in many cases specific for your environment inside the cloud provider himself.
The disk_image_name in AWS is referred to the AMI value, which is also different, for the same Image, in every AWS region.

Inputs

Inputs entry is not mandatory, if a default input value is defined in the terraform configuration, it will be used when no inputs are entered.

OpenStack

| Input name | Input value | | — | — | | disk_image_name | ubuntu-16.04 | | machine_type | s1.nano |

AWS

| Input name | Input value | | — | — | | disk_image_name | ami-bb9a6bc2 | | machine_type | t2.micro |

Azure

| Parameter name | Parameter value | | — | — | | region | westeurope | | resource_group | resourcegroup_from_cpa_network |

Deployment parameters

The current version of the portal is requiring to include the parameters of all the cloud providers, in the deployment configurations. This behaviour will change soon, for the moment just enter a random value for the parameters that are not necessary for your cloud provider.

| Parameter name | Parameter value | | — | — | | network_name | test_network | | floating_ip_pool | ext-net | | subnet_id | subnet-123xyzta |

OpenStack

name: extcloud-05

| Parameter name | Parameter value | | — | — | | network_name | test_network | | floating_ip_pool | ext-net |

AWS

| Parameter name | Parameter value | | — | — | | subnet_id | subnet-123xyzta |

This information will be available in your AWS console, when using a manually configured AWS subnet, or will be available as an output in the Deployments page when you are using the appliance cpa-network.

Azure

For the deployment parameters, only subnet_id and network_name are relevant:

| Parameter name | Parameter value | | — | — | | floating_ip_pool | NA | | network_name | network_from_cpa_network | | subnet_id | /subscriptions/sub-id/resourceGroups/resgroup/subnets/subnet

AWS Cloud Credential

Create an entry in the Cloud Credentials section whit Parameters:

| Parameter name | Parameter value | | — | — | |AWS_ACCESS_KEY_ID | AKIAIOSFODNN7EXAMPLE| |AWS_SECRET_ACCESS_KEY| wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY| |AWS_DEFAULT_REGION | eu-west-1|

You can find the first two values (or create a new credential) in your AWS user page, under the section IAM –> USERS.
The available regions, at the moment of writing, are the following:

|Code | Name| | — | — | |us-east-1 |US East (N. Virginia)| |us-east-2 |US East (Ohio)| |us-west-1 |US West (N. California)| |us-west-2 |US West (Oregon)| |ca-central-1 |Canada (Central)| |eu-west-1 |EU (Ireland)| |eu-central-1 |EU (Frankfurt)| |eu-west-2 |EU (London)| |ap-northeast-1 |Asia Pacific (Tokyo)| |ap-northeast-2 |Asia Pacific (Seoul)| |ap-southeast-1 |Asia Pacific (Singapore)| |ap-southeast-2 |Asia Pacific (Sydney)| |ap-south-1 |Asia Pacific (Mumbai)| |sa-east-1 |South America (São Paulo)|

Note: In order to use the default AMI value with cpa-instance you can choose eu-west-1


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.