Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
' | sudo tee /var/www/html/index.html
* ```
*
* ### Enable Auto Snapshots
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const test = new aws.lightsail.Instance("test", {
* name: "custom_instance",
* availabilityZone: "us-east-1b",
* blueprintId: "amazon_linux_2",
* bundleId: "nano_3_0",
* addOn: {
* type: "AutoSnapshot",
* snapshotTime: "06:00",
* status: "Enabled",
* },
* tags: {
* foo: "bar",
* },
* });
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* test = aws.lightsail.Instance("test",
* name="custom_instance",
* availability_zone="us-east-1b",
* blueprint_id="amazon_linux_2",
* bundle_id="nano_3_0",
* add_on={
* "type": "AutoSnapshot",
* "snapshot_time": "06:00",
* "status": "Enabled",
* },
* tags={
* "foo": "bar",
* })
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* return await Deployment.RunAsync(() =>
* {
* var test = new Aws.LightSail.Instance("test", new()
* {
* Name = "custom_instance",
* AvailabilityZone = "us-east-1b",
* BlueprintId = "amazon_linux_2",
* BundleId = "nano_3_0",
* AddOn = new Aws.LightSail.Inputs.InstanceAddOnArgs
* {
* Type = "AutoSnapshot",
* SnapshotTime = "06:00",
* Status = "Enabled",
* },
* Tags =
* {
* { "foo", "bar" },
* },
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/lightsail"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := lightsail.NewInstance(ctx, "test", &lightsail.InstanceArgs{
* Name: pulumi.String("custom_instance"),
* AvailabilityZone: pulumi.String("us-east-1b"),
* BlueprintId: pulumi.String("amazon_linux_2"),
* BundleId: pulumi.String("nano_3_0"),
* AddOn: &lightsail.InstanceAddOnArgs{
* Type: pulumi.String("AutoSnapshot"),
* SnapshotTime: pulumi.String("06:00"),
* Status: pulumi.String("Enabled"),
* },
* Tags: pulumi.StringMap{
* "foo": pulumi.String("bar"),
* },
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.lightsail.Instance;
* import com.pulumi.aws.lightsail.InstanceArgs;
* import com.pulumi.aws.lightsail.inputs.InstanceAddOnArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
* public static void stack(Context ctx) {
* var test = new Instance("test", InstanceArgs.builder()
* .name("custom_instance")
* .availabilityZone("us-east-1b")
* .blueprintId("amazon_linux_2")
* .bundleId("nano_3_0")
* .addOn(InstanceAddOnArgs.builder()
* .type("AutoSnapshot")
* .snapshotTime("06:00")
* .status("Enabled")
* .build())
* .tags(Map.of("foo", "bar"))
* .build());
* }
* }
* ```
* ```yaml
* resources:
* test:
* type: aws:lightsail:Instance
* properties:
* name: custom_instance
* availabilityZone: us-east-1b
* blueprintId: amazon_linux_2
* bundleId: nano_3_0
* addOn:
* type: AutoSnapshot
* snapshotTime: 06:00
* status: Enabled
* tags:
* foo: bar
* ```
*
* ## Import
* Using `pulumi import`, import Lightsail Instances using their name. For example:
* ```sh
* $ pulumi import aws:lightsail/instance:Instance gitlab_test 'custom_gitlab'
* ```
* @property addOn The add on configuration for the instance. Detailed below.
* @property availabilityZone The Availability Zone in which to create your instance. A
* list of available zones can be obtained using the AWS CLI command:
* [`aws lightsail get-regions --include-availability-zones`](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/lightsail/get-regions.html).
* @property blueprintId The ID for a virtual private server image. A list of available
* blueprint IDs can be obtained using the AWS CLI command:
* [`aws lightsail get-blueprints`](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/lightsail/get-blueprints.html).
* @property bundleId The bundle of specification information. A list of available
* bundle IDs can be obtained using the AWS CLI command:
* [`aws lightsail get-bundles`](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/lightsail/get-bundles.html).
* @property ipAddressType The IP address type of the Lightsail Instance. Valid Values: `dualstack` | `ipv4`.
* @property keyPairName The name of your key pair. Created in the
* Lightsail console (cannot use `aws.ec2.KeyPair` at this time)
* @property name The name of the Lightsail Instance. Names must be unique within each AWS Region in your Lightsail account.
* @property tags A map of tags to assign to the resource. To create a key-only tag, use an empty string as the value. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
* @property userData Single lined launch script as a string to configure server with additional user data
*/
public data class InstanceArgs(
public val addOn: Output? = null,
public val availabilityZone: Output? = null,
public val blueprintId: Output? = null,
public val bundleId: Output? = null,
public val ipAddressType: Output? = null,
public val keyPairName: Output? = null,
public val name: Output? = null,
public val tags: Output