lightsail

class pulumi_aws.lightsail.Domain(resource_name, opts=None, domain_name=None, __name__=None, __opts__=None)

Creates a domain resource for the specified domain (e.g., example.com). You cannot register a new domain name using Lightsail. You must register a domain name using Amazon Route 53 or another domain name registrar. If you have already registered your domain, you can enter its name in this parameter to manage the DNS records for that domain.

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
Parameters:
  • resource_name (str) – The name of the resource.
  • opts (pulumi.ResourceOptions) – Options for the resource.
  • domain_name (pulumi.Input[str]) – The name of the Lightsail domain to manage
arn = None

The ARN of the Lightsail domain

domain_name = None

The name of the Lightsail domain to manage

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters:prop (str) – A property name.
Returns:A potentially transformed property name.
Return type:str
translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters:prop (str) – A property name.
Returns:A potentially transformed property name.
Return type:str
class pulumi_aws.lightsail.Instance(resource_name, opts=None, availability_zone=None, blueprint_id=None, bundle_id=None, key_pair_name=None, name=None, user_data=None, __name__=None, __opts__=None)

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

Lightsail currently supports the following Availability Zones (e.g. us-east-1a):

  • ap-northeast-1{a,c,d}
  • ap-northeast-2{a,c}
  • ap-south-1{a,b}
  • ap-southeast-1{a,b,c}
  • ap-southeast-2{a,b,c}
  • ca-central-1{a,b}
  • eu-central-1{a,b,c}
  • eu-west-1{a,b,c}
  • eu-west-2{a,b,c}
  • eu-west-3{a,b,c}
  • us-east-1{a,b,c,d,e,f}
  • us-east-2{a,b,c}
  • us-west-2{a,b,c}

Lightsail currently supports the following Blueprint IDs:

  • amazon_linux_2018_03_0_2
  • centos_7_1805_01
  • debian_8_7
  • debian_9_5
  • freebsd_11_1
  • opensuse_42_2
  • ubuntu_16_04_2
  • ubuntu_18_04
  • drupal_8_5_6
  • gitlab_11_1_4_1
  • joomla_3_8_11
  • lamp_5_6_37_2
  • lamp_7_1_20_1
  • magento_2_2_5
  • mean_4_0_1
  • nginx_1_14_0_1
  • nodejs_10_8_0
  • plesk_ubuntu_17_8_11_1
  • redmine_3_4_6
  • wordpress_4_9_8
  • wordpress_multisite_4_9_8

Lightsail currently supports the following Bundle IDs (e.g. an instance in ap-northeast-1 would use small_2_0):

A Bundle ID starts with one of the below size prefixes:

  • nano_
  • micro_
  • small_
  • medium_
  • large_
  • xlarge_
  • 2xlarge_

A Bundle ID ends with one of the following suffixes depending on Availability Zone:

  • ap-northeast-1: 2_0
  • ap-northeast-2: 2_0
  • ap-south-1: 2_1
  • ap-southeast-1: 2_0
  • ap-southeast-2: 2_2
  • ca-central-1: 2_0
  • eu-central-1: 2_0
  • eu-west-1: 2_0
  • eu-west-2: 2_0
  • eu-west-3: 2_0
  • us-east-1: 2_0
  • us-east-2: 2_0
  • us-west-2: 2_0
Parameters:
  • resource_name (str) – The name of the resource.
  • opts (pulumi.ResourceOptions) – Options for the resource.
  • availability_zone (pulumi.Input[str]) – The Availability Zone in which to create your instance (see list below)
  • blueprint_id (pulumi.Input[str]) – The ID for a virtual private server image (see list below)
  • bundle_id (pulumi.Input[str]) – The bundle of specification information (see list below)
  • key_pair_name (pulumi.Input[str]) – The name of your key pair. Created in the Lightsail console (cannot use aws_key_pair at this time)
  • name (pulumi.Input[str]) – The name of the Lightsail Instance
  • user_data (pulumi.Input[str]) – launch script to configure server with additional user data
arn = None

The ARN of the Lightsail instance (matches id).

  • availability_zone
  • blueprint_id
  • bundle_id
  • key_pair_name
  • user_data
availability_zone = None

The Availability Zone in which to create your instance (see list below)

blueprint_id = None

The ID for a virtual private server image (see list below)

bundle_id = None

The bundle of specification information (see list below)

key_pair_name = None

The name of your key pair. Created in the Lightsail console (cannot use aws_key_pair at this time)

name = None

The name of the Lightsail Instance

user_data = None

launch script to configure server with additional user data

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters:prop (str) – A property name.
Returns:A potentially transformed property name.
Return type:str
translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters:prop (str) – A property name.
Returns:A potentially transformed property name.
Return type:str
class pulumi_aws.lightsail.KeyPair(resource_name, opts=None, name=None, name_prefix=None, pgp_key=None, public_key=None, __name__=None, __opts__=None)

Provides a Lightsail Key Pair, for use with Lightsail Instances. These key pairs are separate from EC2 Key Pairs, and must be created or imported for use with Lightsail.

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
Parameters:
  • resource_name (str) – The name of the resource.
  • opts (pulumi.ResourceOptions) – Options for the resource.
  • name (pulumi.Input[str]) – The name of the Lightsail Key Pair. If omitted, a unique name will be generated by Terraform
  • pgp_key (pulumi.Input[str]) – An optional PGP key to encrypt the resulting private key material. Only used when creating a new key pair
  • public_key (pulumi.Input[str]) – The public key material. This public key will be imported into Lightsail
arn = None

The ARN of the Lightsail key pair

encrypted_fingerprint = None

The MD5 public key fingerprint for the encrypted private key

encrypted_private_key = None

the private key material, base 64 encoded and encrypted with the given pgp_key. This is only populated when creating a new key and pgp_key is supplied

fingerprint = None

The MD5 public key fingerprint as specified in section 4 of RFC 4716.

name = None

The name of the Lightsail Key Pair. If omitted, a unique name will be generated by Terraform

pgp_key = None

An optional PGP key to encrypt the resulting private key material. Only used when creating a new key pair

private_key = None

the private key, base64 encoded. This is only populated when creating a new key, and when no pgp_key is provided

public_key = None

The public key material. This public key will be imported into Lightsail

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters:prop (str) – A property name.
Returns:A potentially transformed property name.
Return type:str
translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters:prop (str) – A property name.
Returns:A potentially transformed property name.
Return type:str
class pulumi_aws.lightsail.StaticIp(resource_name, opts=None, name=None, __name__=None, __opts__=None)

Allocates a static IP address.

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
Parameters:
  • resource_name (str) – The name of the resource.
  • opts (pulumi.ResourceOptions) – Options for the resource.
  • name (pulumi.Input[str]) – The name for the allocated static IP
arn = None

The ARN of the Lightsail static IP

ip_address = None

The allocated static IP address

name = None

The name for the allocated static IP

support_code = None

The support code.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters:prop (str) – A property name.
Returns:A potentially transformed property name.
Return type:str
translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters:prop (str) – A property name.
Returns:A potentially transformed property name.
Return type:str
class pulumi_aws.lightsail.StaticIpAttachment(resource_name, opts=None, instance_name=None, static_ip_name=None, __name__=None, __opts__=None)

Provides a static IP address attachment - relationship between a Lightsail static IP & Lightsail instance.

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
Parameters:
  • resource_name (str) – The name of the resource.
  • opts (pulumi.ResourceOptions) – Options for the resource.
  • instance_name (pulumi.Input[str]) – The name of the Lightsail instance to attach the IP to
  • static_ip_name (pulumi.Input[str]) – The name of the allocated static IP
instance_name = None

The name of the Lightsail instance to attach the IP to

static_ip_name = None

The name of the allocated static IP

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters:prop (str) – A property name.
Returns:A potentially transformed property name.
Return type:str
translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters:prop (str) – A property name.
Returns:A potentially transformed property name.
Return type:str