Drupal on AWS Lightsail
Terraform blueprint that deploys a simple and affordable Drupal on AWS Lightsail.
Requirements
Name | Version |
---|---|
terraform | >= 1.5.0 |
aws | >= 5.52 |
time | >= 0.11 |
Inputs
Name | Description | Type | Default | Required |
---|---|---|---|---|
blueprint_id | Lighsail instance image | string | n/a | yes |
bundle_id | Bundle ID of the Amazon Lightsail instance. A bundle describes the specifications of an instance, such as the monthly cost, amount of memory, the number of vCPUs, amount of storage space, and monthly network data transfer quota. | string | "nano_3_0" | no |
cdn_bundle_id | Bundle ID of the Amazon Lightsail CDN distribution. A distribution bundle specifies the monthly network transfer quota and cost. Available options: small_1_0 (50GB), medium_1_0 (200GB), large_1_0 (500GB). | string | "small_1_0" | no |
cdn_static_content_path_patterns | List of static content path patterns that should be cached for a long period of time. This is usually versioned content that is invalidated using the cache-busting technique." | list(string) | [] | no |
dns_subdomain | Subdomain for the Drupal site. E.g. "www" | string | n/a | yes |
dns_zone_name | Public zone name for the Drupal site e.g. example.com . If the DNS zone already exists, records will be added to the existing zone. Otherwise, a zone will be created. | string | n/a | yes |
key_path | Public key path (e.g. ~/.ssh/id_rsa.pub ). | string | "" | no |
public_key | The public key material. This public key will be imported into Lightsail. | string | "" | no |
use_custom_key_pair | Custom key pair name will be used, you must specify 'key_pair_name' | bool | false | no |
user_data | Single lined launch script as a string to configure server with additional user data. | string | "" | no |
Outputs
Name | Description |
---|---|
cdn_domain_name | The domain name of the Lightsail CDN distribution. |
ipv4_address | The public IP address of the Lightsail instance. This is a static IP address, and it will not change if the instance is stopped or restarted. |
ipv6_address | List of IPv6 addresses for the Lightsail instance. |
Dependencies
Dependency | Version |
---|