Class 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
Inherited Members
Namespace: Pulumi.Aws.LightSail
Assembly: Pulumi.Aws.dll
Syntax
public class Instance : CustomResource
Constructors
View SourceInstance(String, InstanceArgs, CustomResourceOptions)
Create a Instance resource with the given unique name, arguments, and options.
Declaration
public Instance(string name, InstanceArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| InstanceArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceArn
The ARN of the Lightsail instance (matches id).
Declaration
public Output<string> Arn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
AvailabilityZone
The Availability Zone in which to create your instance (see list below)
Declaration
public Output<string> AvailabilityZone { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
BlueprintId
The ID for a virtual private server image (see list below)
Declaration
public Output<string> BlueprintId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
BundleId
The bundle of specification information (see list below)
Declaration
public Output<string> BundleId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
CpuCount
Declaration
public Output<int> CpuCount { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Int32> |
CreatedAt
The timestamp when the instance was created.
availability_zoneblueprint_idbundle_idkey_pair_nameuser_data
Declaration
public Output<string> CreatedAt { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Ipv6Address
Declaration
public Output<string> Ipv6Address { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
IsStaticIp
Declaration
public Output<bool> IsStaticIp { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Boolean> |
KeyPairName
The name of your key pair. Created in the
Lightsail console (cannot use aws.ec2.KeyPair at this time)
Declaration
public Output<string> KeyPairName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
The name of the Lightsail Instance. Names be unique within each AWS Region in your Lightsail account.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
PrivateIpAddress
Declaration
public Output<string> PrivateIpAddress { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
PublicIpAddress
Declaration
public Output<string> PublicIpAddress { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
RamSize
Declaration
public Output<int> RamSize { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Int32> |
Tags
A map of tags to assign to the resource.
Declaration
public Output<ImmutableDictionary<string, object>> Tags { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>> |
UserData
launch script to configure server with additional user data
Declaration
public Output<string> UserData { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Username
Declaration
public Output<string> Username { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, InstanceState, CustomResourceOptions)
Get an existing Instance resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Instance Get(string name, Input<string> id, InstanceState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| InstanceState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Instance |