Provides a Lightsail Instance. Amazon Lightsail is a service to provide easy virtual private servers with custom software already setup. See What is Amazon Lightsail? for more information.
Note: Lightsail is currently only supported in a limited number of AWS Regions, please see "Regions and Availability Zones in Amazon Lightsail" for more details
# Create a new GitLab Lightsail Instance
resource "aws_lightsail_instance" "gitlab_test" {
name = "custom gitlab"
availability_zone = "us-east-1b"
blueprint_id = "string"
bundle_id = "string"
key_pair_name = "some_key_name"
}
The following arguments are supported:
name - (Required) The name of the Lightsail Instance availability_zone - (Required) The Availability Zone in which to create your instance. At this time, must be in us-east-1, us-east-2, us-west-2, eu-west-1, eu-west-2, eu-central-1, ap-southeast-1, ap-southeast-2, ap-northeast-1, ap-south-1 regions blueprint_id - (Required) The ID for a virtual private server image (see list below) bundle_id - (Required) The bundle of specification information (see list below) key_pair_name - (Required) The name of your key pair. Created in the Lightsail console (cannot use aws_key_pair at this time) user_data - (Optional) launch script to configure server with additional user data Lightsail currently supports the following Blueprint IDs: - amazon_linux_2017_03_1_1 - ubuntu_16_04_1 - debian_8_7 - freebsd_11 - opensuse_42_2 - wordpress_4_8_0 - lamp_5_6_30_5 - nodejs_7_10_0 - joomla_3_7_3 - magento_2_1_7 - mean_3_4_5 - drupal_8_3_3 - gitlab_9_2_6 - redmine_3_3_3_1 - nginx_1_12_0_2
Lightsail currently supports the following Bundle IDs:
The following attributes are exported in addition to the arguments listed above:
id - The ARN of the Lightsail instance (matches arn). arn - The ARN of the Lightsail instance (matches id). availability_zone blueprint_id bundle_id key_pair_name user_data Lightsail Instances can be imported using their name, e.g.
$ terraform import aws_lightsail_instance.gitlab_test 'custom gitlab'
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/aws/r/lightsail_instance.html