Namespace Pulumi.Aws.LightSail
Classes
Domain
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
Example Usage, creating a new domain
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var domainTest = new Aws.LightSail.Domain("domainTest", new Aws.LightSail.DomainArgs
{
DomainName = "mydomain.com",
});
}
}
DomainArgs
DomainState
Instance
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
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
// Create a new GitLab Lightsail Instance
var gitlabTest = new Aws.LightSail.Instance("gitlabTest", new Aws.LightSail.InstanceArgs
{
AvailabilityZone = "us-east-1b",
BlueprintId = "string",
BundleId = "string",
KeyPairName = "some_key_name",
Tags =
{
{ "foo", "bar" },
},
});
}
}
Availability Zones
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}
Blueprints
Lightsail currently supports the following Blueprint IDs:
OS Only
amazon_linux_2018_03_0_2centos_7_1901_01debian_8_7debian_9_5freebsd_11_1opensuse_42_2ubuntu_16_04_2ubuntu_18_04
Apps and OS
drupal_8_5_6gitlab_11_1_4_1joomla_3_8_11lamp_5_6_37_2lamp_7_1_20_1magento_2_2_5mean_4_0_1nginx_1_14_0_1nodejs_10_8_0plesk_ubuntu_17_8_11_1redmine_3_4_6wordpress_4_9_8wordpress_multisite_4_9_8
Bundles
Lightsail currently supports the following Bundle IDs (e.g. an instance in ap-northeast-1 would use small_2_0):
Prefix
A Bundle ID starts with one of the below size prefixes:
nano_micro_small_medium_large_xlarge_2xlarge_
Suffix
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
InstanceArgs
InstanceState
KeyPair
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
Example Usage, creating a new Key Pair
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
// Create a new Lightsail Key Pair
var lgKeyPair = new Aws.LightSail.KeyPair("lgKeyPair", new Aws.LightSail.KeyPairArgs
{
});
}
}
Create new Key Pair, encrypting the private key with a PGP Key
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var lgKeyPair = new Aws.LightSail.KeyPair("lgKeyPair", new Aws.LightSail.KeyPairArgs
{
PgpKey = "keybase:keybaseusername",
});
}
}
Import an existing public key
using System.IO;
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var lgKeyPair = new Aws.LightSail.KeyPair("lgKeyPair", new Aws.LightSail.KeyPairArgs
{
PublicKey = File.ReadAllText("~/.ssh/id_rsa.pub"),
});
}
}
KeyPairArgs
KeyPairState
StaticIp
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
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var test = new Aws.LightSail.StaticIp("test", new Aws.LightSail.StaticIpArgs
{
});
}
}
StaticIpArgs
StaticIpAttachment
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
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var testStaticIp = new Aws.LightSail.StaticIp("testStaticIp", new Aws.LightSail.StaticIpArgs
{
});
var testInstance = new Aws.LightSail.Instance("testInstance", new Aws.LightSail.InstanceArgs
{
AvailabilityZone = "us-east-1b",
BlueprintId = "string",
BundleId = "string",
KeyPairName = "some_key_name",
});
var testStaticIpAttachment = new Aws.LightSail.StaticIpAttachment("testStaticIpAttachment", new Aws.LightSail.StaticIpAttachmentArgs
{
InstanceName = testInstance.Id,
StaticIpName = testStaticIp.Id,
});
}
}