Skip to content

hlucey/LEMP

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LEMP Template

An IBM Cloud Schematics template to provision a virtual machine instance and configure it with the "LEMP" stack: Linux, NGINX, MySQL (mariadb), and PHP. Schematics uses Terraform as the infrastructure as code engine. With this template, you can provision and manage infrastructure as a single unit.

See the IBM Cloud docs for more information about Schematics.

Costs

This sample uses chargable services and will incur costs for the time the services are deployed. Execution of terraform destroy will result in deletion of all resources including the ICD service instance. Billing for VSIs and ICD will terminate on the hour.

Dependencies

  • User has IAM security rights to create and configure an IBM Cloud Database instance and VSIs

Identity & Access Management (IAM) Permissions

The following variables need to be set before use

Variables

Variable Name Description Default Value
cores The number of CPU cores to allocate. 1
datacenter The data center to create resources in. You can get the list by running ibmcloud cs locations. wdc01
disk_size The numeric disk sizes (in GB) for the instance’s block device and disk image settings. 25
domain The domain for the instance. domain.dev
hostname The hostname for the instance. lemp
memory The amount of memory, expressed in megabytes, to allocate. 1026
network_speed The connection speed (in Mbps) for the instance’s network components. 100
os_reference_code The operating system reference code that is used to provision the computing instance. To see available OS reference codes, log in to the IBM Cloud Infrastructure (SoftLayer) API. CENTOS_LATEST_64
private_network_only When set to true, a compute instance only has access to the private network. false
softlayer_api_key Your IBM Cloud Infrastructure (SoftLayer) API key.
softlayer_username Your IBM Cloud Infrastructure (SoftLayer) user name.
ssh_key Your public SSH key to access the VM.
ssh_label An identifying label to assign to the SSH key. public ssh key - Schematics VM
ssh_notes A description to assign to the SSH key.
ssh_user The default username for the VM. root
tags Descriptive tags to label the resource.

Outputs

This template outputs the IPv4 address of the created virtual machine

About

Deploy a full stack LEMP environment (Linux, NGINX, MySQL, and PHP) on a single VM.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • HCL 100.0%