@pulumi/aws 6.83.0-alpha.1749735083 → 6.83.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/amp/index.d.ts +3 -0
- package/amp/index.js +6 -1
- package/amp/index.js.map +1 -1
- package/amp/workspaceConfiguration.d.ts +149 -0
- package/amp/workspaceConfiguration.js +124 -0
- package/amp/workspaceConfiguration.js.map +1 -0
- package/cloudfront/keyvaluestoreKeysExclusive.d.ts +12 -0
- package/cloudfront/keyvaluestoreKeysExclusive.js +2 -0
- package/cloudfront/keyvaluestoreKeysExclusive.js.map +1 -1
- package/dsql/cluster.d.ts +170 -0
- package/dsql/cluster.js +94 -0
- package/dsql/cluster.js.map +1 -0
- package/dsql/clusterPeering.d.ts +114 -0
- package/dsql/clusterPeering.js +101 -0
- package/dsql/clusterPeering.js.map +1 -0
- package/dsql/index.d.ts +6 -0
- package/dsql/index.js +27 -0
- package/dsql/index.js.map +1 -0
- package/ec2/vpnConnection.d.ts +20 -0
- package/ec2/vpnConnection.js +4 -0
- package/ec2/vpnConnection.js.map +1 -1
- package/fsx/lustreFileSystem.d.ts +18 -3
- package/fsx/lustreFileSystem.js +4 -0
- package/fsx/lustreFileSystem.js.map +1 -1
- package/glue/job.d.ts +102 -5
- package/glue/job.js +102 -5
- package/glue/job.js.map +1 -1
- package/index.d.ts +3 -1
- package/index.js +7 -3
- package/index.js.map +1 -1
- package/lambda/codeSigningConfig.d.ts +2 -2
- package/lambda/codeSigningConfig.js +2 -2
- package/lightsail/bucket.d.ts +40 -28
- package/lightsail/bucket.js +4 -4
- package/lightsail/bucket.js.map +1 -1
- package/lightsail/bucketAccessKey.d.ts +16 -16
- package/lightsail/bucketAccessKey.js +5 -5
- package/lightsail/bucketResourceAccess.d.ts +30 -8
- package/lightsail/bucketResourceAccess.js +24 -2
- package/lightsail/bucketResourceAccess.js.map +1 -1
- package/lightsail/certificate.d.ts +29 -23
- package/lightsail/certificate.js +6 -6
- package/lightsail/certificate.js.map +1 -1
- package/lightsail/containerService.d.ts +62 -97
- package/lightsail/containerService.js +11 -15
- package/lightsail/containerService.js.map +1 -1
- package/lightsail/containerServiceDeploymentVersion.d.ts +22 -16
- package/lightsail/containerServiceDeploymentVersion.js +1 -1
- package/lightsail/containerServiceDeploymentVersion.js.map +1 -1
- package/lightsail/database.d.ts +113 -109
- package/lightsail/database.js +36 -38
- package/lightsail/database.js.map +1 -1
- package/lightsail/disk.d.ts +30 -24
- package/lightsail/disk.js +4 -4
- package/lightsail/disk.js.map +1 -1
- package/lightsail/disk_attachment.d.ts +19 -19
- package/lightsail/disk_attachment.js +10 -10
- package/lightsail/distribution.d.ts +84 -88
- package/lightsail/distribution.js +32 -38
- package/lightsail/distribution.js.map +1 -1
- package/lightsail/domain.d.ts +10 -12
- package/lightsail/domain.js +5 -7
- package/lightsail/domain.js.map +1 -1
- package/lightsail/domainEntry.d.ts +27 -21
- package/lightsail/domainEntry.js +6 -6
- package/lightsail/domainEntry.js.map +1 -1
- package/lightsail/instance.d.ts +60 -78
- package/lightsail/instance.js +9 -12
- package/lightsail/instance.js.map +1 -1
- package/lightsail/instancePublicPorts.d.ts +29 -14
- package/lightsail/instancePublicPorts.js +26 -11
- package/lightsail/instancePublicPorts.js.map +1 -1
- package/lightsail/keyPair.d.ts +44 -34
- package/lightsail/keyPair.js +6 -9
- package/lightsail/keyPair.js.map +1 -1
- package/lightsail/lb.d.ts +47 -30
- package/lightsail/lb.js +6 -4
- package/lightsail/lb.js.map +1 -1
- package/lightsail/lbAttachment.d.ts +15 -15
- package/lightsail/lbAttachment.js +9 -9
- package/lightsail/lbCertificate.d.ts +41 -21
- package/lightsail/lbCertificate.js +10 -8
- package/lightsail/lbCertificate.js.map +1 -1
- package/lightsail/lbCertificateAttachment.d.ts +19 -17
- package/lightsail/lbCertificateAttachment.js +13 -11
- package/lightsail/lbCertificateAttachment.js.map +1 -1
- package/lightsail/lbHttpsRedirectionPolicy.d.ts +21 -19
- package/lightsail/lbHttpsRedirectionPolicy.js +15 -13
- package/lightsail/lbHttpsRedirectionPolicy.js.map +1 -1
- package/lightsail/lbStickinessPolicy.d.ts +17 -15
- package/lightsail/lbStickinessPolicy.js +8 -6
- package/lightsail/lbStickinessPolicy.js.map +1 -1
- package/lightsail/staticIp.d.ts +22 -12
- package/lightsail/staticIp.js +13 -3
- package/lightsail/staticIp.js.map +1 -1
- package/lightsail/staticIpAttachment.d.ts +28 -19
- package/lightsail/staticIpAttachment.js +20 -11
- package/lightsail/staticIpAttachment.js.map +1 -1
- package/neptune/cluster.d.ts +81 -90
- package/neptune/cluster.js.map +1 -1
- package/neptune/getEngineVersion.d.ts +95 -13
- package/neptune/getEngineVersion.js +22 -6
- package/neptune/getEngineVersion.js.map +1 -1
- package/neptune/globalCluster.d.ts +11 -14
- package/neptune/globalCluster.js.map +1 -1
- package/networkfirewall/ruleGroup.d.ts +46 -0
- package/networkfirewall/ruleGroup.js +46 -0
- package/networkfirewall/ruleGroup.js.map +1 -1
- package/package.json +2 -2
- package/pinpoint/smsvoicev2PhoneNumber.d.ts +12 -0
- package/pinpoint/smsvoicev2PhoneNumber.js +2 -0
- package/pinpoint/smsvoicev2PhoneNumber.js.map +1 -1
- package/s3/accessPoint.d.ts +22 -1
- package/s3/accessPoint.js +22 -1
- package/s3/accessPoint.js.map +1 -1
- package/s3control/directoryBucketAccessPointScope.d.ts +120 -0
- package/s3control/directoryBucketAccessPointScope.js +102 -0
- package/s3control/directoryBucketAccessPointScope.js.map +1 -0
- package/s3control/index.d.ts +3 -0
- package/s3control/index.js +6 -1
- package/s3control/index.js.map +1 -1
- package/ssm/association.d.ts +155 -0
- package/ssm/association.js +155 -0
- package/ssm/association.js.map +1 -1
- package/types/input.d.ts +579 -56
- package/types/input.js.map +1 -1
- package/types/output.d.ts +579 -56
- package/types/output.js.map +1 -1
- package/vpc/index.d.ts +15 -0
- package/vpc/index.js +26 -1
- package/vpc/index.js.map +1 -1
- package/vpc/routeServer.d.ts +197 -0
- package/vpc/routeServer.js +114 -0
- package/vpc/routeServer.js.map +1 -0
- package/vpc/routeServerEndpoint.d.ts +173 -0
- package/vpc/routeServerEndpoint.js +101 -0
- package/vpc/routeServerEndpoint.js.map +1 -0
- package/vpc/routeServerPeer.d.ts +233 -0
- package/vpc/routeServerPeer.js +154 -0
- package/vpc/routeServerPeer.js.map +1 -0
- package/vpc/routeServerPropagation.d.ts +90 -0
- package/vpc/routeServerPropagation.js +84 -0
- package/vpc/routeServerPropagation.js.map +1 -0
- package/vpc/routeServerVpcAssociation.d.ts +90 -0
- package/vpc/routeServerVpcAssociation.js +84 -0
- package/vpc/routeServerVpcAssociation.js.map +1 -0
- package/workspaces/index.d.ts +9 -0
- package/workspaces/index.js +16 -1
- package/workspaces/index.js.map +1 -1
- package/workspaces/webBrowserSettings.d.ts +5 -2
- package/workspaces/webBrowserSettings.js +7 -2
- package/workspaces/webBrowserSettings.js.map +1 -1
- package/workspaces/webDataProtectionSettings.d.ts +264 -0
- package/workspaces/webDataProtectionSettings.js +174 -0
- package/workspaces/webDataProtectionSettings.js.map +1 -0
- package/workspaces/webIpAccessSettings.d.ts +245 -0
- package/workspaces/webIpAccessSettings.js +155 -0
- package/workspaces/webIpAccessSettings.js.map +1 -0
- package/workspaces/webNetworkSettings.d.ts +4 -1
- package/workspaces/webNetworkSettings.js +6 -1
- package/workspaces/webNetworkSettings.js.map +1 -1
- package/workspaces/webUserAccessLoggingSettings.d.ts +152 -0
- package/workspaces/webUserAccessLoggingSettings.js +110 -0
- package/workspaces/webUserAccessLoggingSettings.js.map +1 -0
- package/workspaces/webUserSettings.d.ts +6 -3
- package/workspaces/webUserSettings.js +8 -3
- package/workspaces/webUserSettings.js.map +1 -1
- package/workspacesweb/browserSettings.d.ts +190 -0
- package/workspacesweb/browserSettings.js +122 -0
- package/workspacesweb/browserSettings.js.map +1 -0
- package/workspacesweb/dataProtectionSettings.d.ts +261 -0
- package/workspacesweb/dataProtectionSettings.js +171 -0
- package/workspacesweb/dataProtectionSettings.js.map +1 -0
- package/workspacesweb/index.d.ts +18 -0
- package/workspacesweb/index.js +47 -0
- package/workspacesweb/index.js.map +1 -0
- package/workspacesweb/ipAccessSettings.d.ts +242 -0
- package/workspacesweb/ipAccessSettings.js +152 -0
- package/workspacesweb/ipAccessSettings.js.map +1 -0
- package/workspacesweb/networkSettings.d.ts +181 -0
- package/workspacesweb/networkSettings.js +125 -0
- package/workspacesweb/networkSettings.js.map +1 -0
- package/workspacesweb/userAccessLoggingSettings.d.ts +149 -0
- package/workspacesweb/userAccessLoggingSettings.js +107 -0
- package/workspacesweb/userAccessLoggingSettings.js.map +1 -0
- package/workspacesweb/userSettings.d.ts +342 -0
- package/workspacesweb/userSettings.js +194 -0
- package/workspacesweb/userSettings.js.map +1 -0
package/lightsail/domain.js
CHANGED
|
@@ -6,13 +6,11 @@ exports.Domain = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
* You cannot register a new domain name using Lightsail. You must register
|
|
11
|
-
* a domain name using Amazon Route 53 or another domain name registrar.
|
|
12
|
-
* If you have already registered your domain, you can enter its name in
|
|
13
|
-
* this parameter to manage the DNS records for that domain.
|
|
9
|
+
* Manages a Lightsail domain for DNS management. Use this resource to manage DNS records for a domain that you have already registered with a domain registrar.
|
|
14
10
|
*
|
|
15
|
-
* > **Note:**
|
|
11
|
+
* > **Note:** You cannot register a new domain name using Lightsail. Register your domain using Amazon Route 53 or another domain name registrar before using this resource.
|
|
12
|
+
*
|
|
13
|
+
* > **Note:** Lightsail is currently only supported in a limited number of AWS Regions, please see ["Regions and Availability Zones in Amazon Lightsail"](https://lightsail.aws.amazon.com/ls/docs/overview/article/understanding-regions-and-availability-zones-in-amazon-lightsail) for more details.
|
|
16
14
|
*
|
|
17
15
|
* ## Example Usage
|
|
18
16
|
*
|
|
@@ -20,7 +18,7 @@ const utilities = require("../utilities");
|
|
|
20
18
|
* import * as pulumi from "@pulumi/pulumi";
|
|
21
19
|
* import * as aws from "@pulumi/aws";
|
|
22
20
|
*
|
|
23
|
-
* const
|
|
21
|
+
* const example = new aws.lightsail.Domain("example", {domainName: "example.com"});
|
|
24
22
|
* ```
|
|
25
23
|
*/
|
|
26
24
|
class Domain extends pulumi.CustomResource {
|
package/lightsail/domain.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"domain.js","sourceRoot":"","sources":["../../lightsail/domain.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"domain.js","sourceRoot":"","sources":["../../lightsail/domain.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;GAeG;AACH,MAAa,MAAO,SAAQ,MAAM,CAAC,cAAc;IAC7C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAmB,EAAE,IAAmC;QACjH,OAAO,IAAI,MAAM,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC7D,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,MAAM,CAAC,YAAY,CAAC;IACvD,CAAC;IAmBD,YAAY,IAAY,EAAE,WAAsC,EAAE,IAAmC;QACjG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAsC,CAAC;YACrD,cAAc,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;SACvE;aAAM;YACH,MAAM,IAAI,GAAG,WAAqC,CAAC;YACnD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACvD,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;aAC7D;YACD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC7C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,MAAM,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC3D,CAAC;;AA9DL,wBA+DC;AAjDG,gBAAgB;AACO,mBAAY,GAAG,6BAA6B,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Manages a Lightsail domain entry (DNS record). Use this resource to define how DNS queries for your domain are handled.
|
|
4
4
|
*
|
|
5
5
|
* > **NOTE on `id`:** In an effort to simplify imports, this resource `id` field has been updated to the standard resource id separator, a comma (`,`). For backward compatibility, the previous separator (underscore `_`) can still be used to read and import existing resources. When state is refreshed, the `id` will be updated to use the new standard separator. The previous separator will be deprecated in a future major release.
|
|
6
6
|
*
|
|
@@ -10,9 +10,9 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
10
10
|
* import * as pulumi from "@pulumi/pulumi";
|
|
11
11
|
* import * as aws from "@pulumi/aws";
|
|
12
12
|
*
|
|
13
|
-
* const
|
|
14
|
-
* const
|
|
15
|
-
* domainName:
|
|
13
|
+
* const example = new aws.lightsail.Domain("example", {domainName: "example.com"});
|
|
14
|
+
* const exampleDomainEntry = new aws.lightsail.DomainEntry("example", {
|
|
15
|
+
* domainName: example.domainName,
|
|
16
16
|
* name: "www",
|
|
17
17
|
* type: "A",
|
|
18
18
|
* target: "127.0.0.1",
|
|
@@ -21,10 +21,10 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
21
21
|
*
|
|
22
22
|
* ## Import
|
|
23
23
|
*
|
|
24
|
-
* Using `pulumi import`, import
|
|
24
|
+
* Using `pulumi import`, import Lightsail Domain Entry using the id attribute. For example:
|
|
25
25
|
*
|
|
26
26
|
* ```sh
|
|
27
|
-
* $ pulumi import aws:lightsail/domainEntry:DomainEntry example www,
|
|
27
|
+
* $ pulumi import aws:lightsail/domainEntry:DomainEntry example www,example.com,A,127.0.0.1
|
|
28
28
|
* ```
|
|
29
29
|
*/
|
|
30
30
|
export declare class DomainEntry extends pulumi.CustomResource {
|
|
@@ -44,23 +44,25 @@ export declare class DomainEntry extends pulumi.CustomResource {
|
|
|
44
44
|
*/
|
|
45
45
|
static isInstance(obj: any): obj is DomainEntry;
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
47
|
+
* Name of the Lightsail domain in which to create the entry.
|
|
48
48
|
*/
|
|
49
49
|
readonly domainName: pulumi.Output<string>;
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
51
|
+
* Whether the entry should be an alias. Default: `false`.
|
|
52
52
|
*/
|
|
53
53
|
readonly isAlias: pulumi.Output<boolean | undefined>;
|
|
54
54
|
/**
|
|
55
|
-
* Name of the entry record
|
|
55
|
+
* Name of the entry record.
|
|
56
56
|
*/
|
|
57
57
|
readonly name: pulumi.Output<string>;
|
|
58
58
|
/**
|
|
59
|
-
* Target of the domain entry
|
|
59
|
+
* Target of the domain entry.
|
|
60
60
|
*/
|
|
61
61
|
readonly target: pulumi.Output<string>;
|
|
62
62
|
/**
|
|
63
|
-
* Type of record
|
|
63
|
+
* Type of record. Valid values: `A`, `AAAA`, `CNAME`, `MX`, `NS`, `SOA`, `SRV`, `TXT`.
|
|
64
|
+
*
|
|
65
|
+
* The following arguments are optional:
|
|
64
66
|
*/
|
|
65
67
|
readonly type: pulumi.Output<string>;
|
|
66
68
|
/**
|
|
@@ -77,23 +79,25 @@ export declare class DomainEntry extends pulumi.CustomResource {
|
|
|
77
79
|
*/
|
|
78
80
|
export interface DomainEntryState {
|
|
79
81
|
/**
|
|
80
|
-
*
|
|
82
|
+
* Name of the Lightsail domain in which to create the entry.
|
|
81
83
|
*/
|
|
82
84
|
domainName?: pulumi.Input<string>;
|
|
83
85
|
/**
|
|
84
|
-
*
|
|
86
|
+
* Whether the entry should be an alias. Default: `false`.
|
|
85
87
|
*/
|
|
86
88
|
isAlias?: pulumi.Input<boolean>;
|
|
87
89
|
/**
|
|
88
|
-
* Name of the entry record
|
|
90
|
+
* Name of the entry record.
|
|
89
91
|
*/
|
|
90
92
|
name?: pulumi.Input<string>;
|
|
91
93
|
/**
|
|
92
|
-
* Target of the domain entry
|
|
94
|
+
* Target of the domain entry.
|
|
93
95
|
*/
|
|
94
96
|
target?: pulumi.Input<string>;
|
|
95
97
|
/**
|
|
96
|
-
* Type of record
|
|
98
|
+
* Type of record. Valid values: `A`, `AAAA`, `CNAME`, `MX`, `NS`, `SOA`, `SRV`, `TXT`.
|
|
99
|
+
*
|
|
100
|
+
* The following arguments are optional:
|
|
97
101
|
*/
|
|
98
102
|
type?: pulumi.Input<string>;
|
|
99
103
|
}
|
|
@@ -102,23 +106,25 @@ export interface DomainEntryState {
|
|
|
102
106
|
*/
|
|
103
107
|
export interface DomainEntryArgs {
|
|
104
108
|
/**
|
|
105
|
-
*
|
|
109
|
+
* Name of the Lightsail domain in which to create the entry.
|
|
106
110
|
*/
|
|
107
111
|
domainName: pulumi.Input<string>;
|
|
108
112
|
/**
|
|
109
|
-
*
|
|
113
|
+
* Whether the entry should be an alias. Default: `false`.
|
|
110
114
|
*/
|
|
111
115
|
isAlias?: pulumi.Input<boolean>;
|
|
112
116
|
/**
|
|
113
|
-
* Name of the entry record
|
|
117
|
+
* Name of the entry record.
|
|
114
118
|
*/
|
|
115
119
|
name?: pulumi.Input<string>;
|
|
116
120
|
/**
|
|
117
|
-
* Target of the domain entry
|
|
121
|
+
* Target of the domain entry.
|
|
118
122
|
*/
|
|
119
123
|
target: pulumi.Input<string>;
|
|
120
124
|
/**
|
|
121
|
-
* Type of record
|
|
125
|
+
* Type of record. Valid values: `A`, `AAAA`, `CNAME`, `MX`, `NS`, `SOA`, `SRV`, `TXT`.
|
|
126
|
+
*
|
|
127
|
+
* The following arguments are optional:
|
|
122
128
|
*/
|
|
123
129
|
type: pulumi.Input<string>;
|
|
124
130
|
}
|
package/lightsail/domainEntry.js
CHANGED
|
@@ -6,7 +6,7 @@ exports.DomainEntry = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Manages a Lightsail domain entry (DNS record). Use this resource to define how DNS queries for your domain are handled.
|
|
10
10
|
*
|
|
11
11
|
* > **NOTE on `id`:** In an effort to simplify imports, this resource `id` field has been updated to the standard resource id separator, a comma (`,`). For backward compatibility, the previous separator (underscore `_`) can still be used to read and import existing resources. When state is refreshed, the `id` will be updated to use the new standard separator. The previous separator will be deprecated in a future major release.
|
|
12
12
|
*
|
|
@@ -16,9 +16,9 @@ const utilities = require("../utilities");
|
|
|
16
16
|
* import * as pulumi from "@pulumi/pulumi";
|
|
17
17
|
* import * as aws from "@pulumi/aws";
|
|
18
18
|
*
|
|
19
|
-
* const
|
|
20
|
-
* const
|
|
21
|
-
* domainName:
|
|
19
|
+
* const example = new aws.lightsail.Domain("example", {domainName: "example.com"});
|
|
20
|
+
* const exampleDomainEntry = new aws.lightsail.DomainEntry("example", {
|
|
21
|
+
* domainName: example.domainName,
|
|
22
22
|
* name: "www",
|
|
23
23
|
* type: "A",
|
|
24
24
|
* target: "127.0.0.1",
|
|
@@ -27,10 +27,10 @@ const utilities = require("../utilities");
|
|
|
27
27
|
*
|
|
28
28
|
* ## Import
|
|
29
29
|
*
|
|
30
|
-
* Using `pulumi import`, import
|
|
30
|
+
* Using `pulumi import`, import Lightsail Domain Entry using the id attribute. For example:
|
|
31
31
|
*
|
|
32
32
|
* ```sh
|
|
33
|
-
* $ pulumi import aws:lightsail/domainEntry:DomainEntry example www,
|
|
33
|
+
* $ pulumi import aws:lightsail/domainEntry:DomainEntry example www,example.com,A,127.0.0.1
|
|
34
34
|
* ```
|
|
35
35
|
*/
|
|
36
36
|
class DomainEntry extends pulumi.CustomResource {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"domainEntry.js","sourceRoot":"","sources":["../../lightsail/domainEntry.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwB,EAAE,IAAmC;QACtH,OAAO,IAAI,WAAW,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAClE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,WAAW,CAAC,YAAY,CAAC;IAC5D,CAAC;
|
|
1
|
+
{"version":3,"file":"domainEntry.js","sourceRoot":"","sources":["../../lightsail/domainEntry.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwB,EAAE,IAAmC;QACtH,OAAO,IAAI,WAAW,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAClE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,WAAW,CAAC,YAAY,CAAC;IAC5D,CAAC;IAiCD,YAAY,IAAY,EAAE,WAAgD,EAAE,IAAmC;QAC3G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA2C,CAAC;YAC1D,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;SAC3D;aAAM;YACH,MAAM,IAAI,GAAG,WAA0C,CAAC;YACxD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACvD,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;aAC7D;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACnD,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;aACzD;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACjD,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;aACvD;YACD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;SACzD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;;AAxFL,kCAyFC;AA3EG,gBAAgB;AACO,wBAAY,GAAG,uCAAuC,CAAC"}
|
package/lightsail/instance.d.ts
CHANGED
|
@@ -2,9 +2,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
import * as inputs from "../types/input";
|
|
3
3
|
import * as outputs from "../types/output";
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
* with custom software already setup. See [What is Amazon Lightsail?](https://lightsail.aws.amazon.com/ls/docs/getting-started/article/what-is-amazon-lightsail)
|
|
7
|
-
* for more information.
|
|
5
|
+
* Manages a Lightsail Instance. Use this resource to create easy virtual private servers with custom software already setup.
|
|
8
6
|
*
|
|
9
7
|
* > **Note:** Lightsail is currently only supported in a limited number of AWS Regions, please see ["Regions and Availability Zones in Amazon Lightsail"](https://lightsail.aws.amazon.com/ls/docs/overview/article/understanding-regions-and-availability-zones-in-amazon-lightsail) for more details
|
|
10
8
|
*
|
|
@@ -16,9 +14,8 @@ import * as outputs from "../types/output";
|
|
|
16
14
|
* import * as pulumi from "@pulumi/pulumi";
|
|
17
15
|
* import * as aws from "@pulumi/aws";
|
|
18
16
|
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* name: "custom_gitlab",
|
|
17
|
+
* const example = new aws.lightsail.Instance("example", {
|
|
18
|
+
* name: "example",
|
|
22
19
|
* availabilityZone: "us-east-1b",
|
|
23
20
|
* blueprintId: "amazon_linux_2",
|
|
24
21
|
* bundleId: "nano_3_0",
|
|
@@ -31,14 +28,14 @@ import * as outputs from "../types/output";
|
|
|
31
28
|
*
|
|
32
29
|
* ### Example With User Data
|
|
33
30
|
*
|
|
34
|
-
* Lightsail user data is handled differently than
|
|
31
|
+
* Lightsail user data is handled differently than EC2 user data. Lightsail user data only accepts a single lined string. The below example shows installing apache and creating the index page.
|
|
35
32
|
*
|
|
36
33
|
* ```typescript
|
|
37
34
|
* import * as pulumi from "@pulumi/pulumi";
|
|
38
35
|
* import * as aws from "@pulumi/aws";
|
|
39
36
|
*
|
|
40
|
-
* const
|
|
41
|
-
* name: "
|
|
37
|
+
* const example = new aws.lightsail.Instance("example", {
|
|
38
|
+
* name: "example",
|
|
42
39
|
* availabilityZone: "us-east-1b",
|
|
43
40
|
* blueprintId: "amazon_linux_2",
|
|
44
41
|
* bundleId: "nano_3_0",
|
|
@@ -52,8 +49,8 @@ import * as outputs from "../types/output";
|
|
|
52
49
|
* import * as pulumi from "@pulumi/pulumi";
|
|
53
50
|
* import * as aws from "@pulumi/aws";
|
|
54
51
|
*
|
|
55
|
-
* const
|
|
56
|
-
* name: "
|
|
52
|
+
* const example = new aws.lightsail.Instance("example", {
|
|
53
|
+
* name: "example",
|
|
57
54
|
* availabilityZone: "us-east-1b",
|
|
58
55
|
* blueprintId: "amazon_linux_2",
|
|
59
56
|
* bundleId: "nano_3_0",
|
|
@@ -73,7 +70,7 @@ import * as outputs from "../types/output";
|
|
|
73
70
|
* Using `pulumi import`, import Lightsail Instances using their name. For example:
|
|
74
71
|
*
|
|
75
72
|
* ```sh
|
|
76
|
-
* $ pulumi import aws:lightsail/instance:Instance
|
|
73
|
+
* $ pulumi import aws:lightsail/instance:Instance example 'example'
|
|
77
74
|
* ```
|
|
78
75
|
*/
|
|
79
76
|
export declare class Instance extends pulumi.CustomResource {
|
|
@@ -93,41 +90,35 @@ export declare class Instance extends pulumi.CustomResource {
|
|
|
93
90
|
*/
|
|
94
91
|
static isInstance(obj: any): obj is Instance;
|
|
95
92
|
/**
|
|
96
|
-
*
|
|
93
|
+
* Add-on configuration for the instance. See below.
|
|
97
94
|
*/
|
|
98
95
|
readonly addOn: pulumi.Output<outputs.lightsail.InstanceAddOn | undefined>;
|
|
99
96
|
/**
|
|
100
|
-
*
|
|
97
|
+
* ARN of the Lightsail instance (matches `id`).
|
|
101
98
|
*/
|
|
102
99
|
readonly arn: pulumi.Output<string>;
|
|
103
100
|
/**
|
|
104
|
-
*
|
|
105
|
-
* list of available zones can be obtained using the AWS CLI command:
|
|
106
|
-
* [`aws lightsail get-regions --include-availability-zones`](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/lightsail/get-regions.html).
|
|
101
|
+
* 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).
|
|
107
102
|
*/
|
|
108
103
|
readonly availabilityZone: pulumi.Output<string>;
|
|
109
104
|
/**
|
|
110
|
-
*
|
|
111
|
-
* blueprint IDs can be obtained using the AWS CLI command:
|
|
112
|
-
* [`aws lightsail get-blueprints`](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/lightsail/get-blueprints.html).
|
|
105
|
+
* 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).
|
|
113
106
|
*/
|
|
114
107
|
readonly blueprintId: pulumi.Output<string>;
|
|
115
108
|
/**
|
|
116
|
-
*
|
|
117
|
-
* bundle IDs can be obtained using the AWS CLI command:
|
|
118
|
-
* [`aws lightsail get-bundles`](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/lightsail/get-bundles.html).
|
|
109
|
+
* 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).
|
|
119
110
|
*/
|
|
120
111
|
readonly bundleId: pulumi.Output<string>;
|
|
121
112
|
/**
|
|
122
|
-
*
|
|
113
|
+
* Number of vCPUs the instance has.
|
|
123
114
|
*/
|
|
124
115
|
readonly cpuCount: pulumi.Output<number>;
|
|
125
116
|
/**
|
|
126
|
-
*
|
|
117
|
+
* Timestamp when the instance was created.
|
|
127
118
|
*/
|
|
128
119
|
readonly createdAt: pulumi.Output<string>;
|
|
129
120
|
/**
|
|
130
|
-
*
|
|
121
|
+
* IP address type of the Lightsail Instance. Valid values: `dualstack`, `ipv4`, `ipv6`. Default: `dualstack`.
|
|
131
122
|
*/
|
|
132
123
|
readonly ipAddressType: pulumi.Output<string | undefined>;
|
|
133
124
|
/**
|
|
@@ -135,38 +126,39 @@ export declare class Instance extends pulumi.CustomResource {
|
|
|
135
126
|
*/
|
|
136
127
|
readonly ipv6Addresses: pulumi.Output<string[]>;
|
|
137
128
|
/**
|
|
138
|
-
*
|
|
129
|
+
* Whether this instance has a static IP assigned to it.
|
|
139
130
|
*/
|
|
140
131
|
readonly isStaticIp: pulumi.Output<boolean>;
|
|
141
132
|
/**
|
|
142
|
-
*
|
|
143
|
-
* Lightsail console (cannot use `aws.ec2.KeyPair` at this time)
|
|
133
|
+
* Name of your key pair. Created in the Lightsail console (cannot use `aws.ec2.KeyPair` at this time).
|
|
144
134
|
*/
|
|
145
135
|
readonly keyPairName: pulumi.Output<string | undefined>;
|
|
146
136
|
/**
|
|
147
|
-
*
|
|
137
|
+
* Name of the Lightsail Instance. Names must be unique within each AWS Region in your Lightsail account.
|
|
138
|
+
*
|
|
139
|
+
* The following arguments are optional:
|
|
148
140
|
*/
|
|
149
141
|
readonly name: pulumi.Output<string>;
|
|
150
142
|
/**
|
|
151
|
-
*
|
|
143
|
+
* Private IP address of the instance.
|
|
152
144
|
*/
|
|
153
145
|
readonly privateIpAddress: pulumi.Output<string>;
|
|
154
146
|
/**
|
|
155
|
-
*
|
|
147
|
+
* Public IP address of the instance.
|
|
156
148
|
*/
|
|
157
149
|
readonly publicIpAddress: pulumi.Output<string>;
|
|
158
150
|
/**
|
|
159
|
-
*
|
|
151
|
+
* Amount of RAM in GB on the instance (e.g., 1.0).
|
|
160
152
|
*/
|
|
161
153
|
readonly ramSize: pulumi.Output<number>;
|
|
162
154
|
/**
|
|
163
|
-
*
|
|
155
|
+
* 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 `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
|
|
164
156
|
*/
|
|
165
157
|
readonly tags: pulumi.Output<{
|
|
166
158
|
[key: string]: string;
|
|
167
159
|
} | undefined>;
|
|
168
160
|
/**
|
|
169
|
-
*
|
|
161
|
+
* Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
|
|
170
162
|
*
|
|
171
163
|
* @deprecated Please use `tags` instead.
|
|
172
164
|
*/
|
|
@@ -174,11 +166,11 @@ export declare class Instance extends pulumi.CustomResource {
|
|
|
174
166
|
[key: string]: string;
|
|
175
167
|
}>;
|
|
176
168
|
/**
|
|
177
|
-
* Single lined launch script as a string to configure server with additional user data
|
|
169
|
+
* Single lined launch script as a string to configure server with additional user data.
|
|
178
170
|
*/
|
|
179
171
|
readonly userData: pulumi.Output<string | undefined>;
|
|
180
172
|
/**
|
|
181
|
-
*
|
|
173
|
+
* User name for connecting to the instance (e.g., ec2-user).
|
|
182
174
|
*/
|
|
183
175
|
readonly username: pulumi.Output<string>;
|
|
184
176
|
/**
|
|
@@ -195,41 +187,35 @@ export declare class Instance extends pulumi.CustomResource {
|
|
|
195
187
|
*/
|
|
196
188
|
export interface InstanceState {
|
|
197
189
|
/**
|
|
198
|
-
*
|
|
190
|
+
* Add-on configuration for the instance. See below.
|
|
199
191
|
*/
|
|
200
192
|
addOn?: pulumi.Input<inputs.lightsail.InstanceAddOn>;
|
|
201
193
|
/**
|
|
202
|
-
*
|
|
194
|
+
* ARN of the Lightsail instance (matches `id`).
|
|
203
195
|
*/
|
|
204
196
|
arn?: pulumi.Input<string>;
|
|
205
197
|
/**
|
|
206
|
-
*
|
|
207
|
-
* list of available zones can be obtained using the AWS CLI command:
|
|
208
|
-
* [`aws lightsail get-regions --include-availability-zones`](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/lightsail/get-regions.html).
|
|
198
|
+
* 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).
|
|
209
199
|
*/
|
|
210
200
|
availabilityZone?: pulumi.Input<string>;
|
|
211
201
|
/**
|
|
212
|
-
*
|
|
213
|
-
* blueprint IDs can be obtained using the AWS CLI command:
|
|
214
|
-
* [`aws lightsail get-blueprints`](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/lightsail/get-blueprints.html).
|
|
202
|
+
* 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).
|
|
215
203
|
*/
|
|
216
204
|
blueprintId?: pulumi.Input<string>;
|
|
217
205
|
/**
|
|
218
|
-
*
|
|
219
|
-
* bundle IDs can be obtained using the AWS CLI command:
|
|
220
|
-
* [`aws lightsail get-bundles`](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/lightsail/get-bundles.html).
|
|
206
|
+
* 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).
|
|
221
207
|
*/
|
|
222
208
|
bundleId?: pulumi.Input<string>;
|
|
223
209
|
/**
|
|
224
|
-
*
|
|
210
|
+
* Number of vCPUs the instance has.
|
|
225
211
|
*/
|
|
226
212
|
cpuCount?: pulumi.Input<number>;
|
|
227
213
|
/**
|
|
228
|
-
*
|
|
214
|
+
* Timestamp when the instance was created.
|
|
229
215
|
*/
|
|
230
216
|
createdAt?: pulumi.Input<string>;
|
|
231
217
|
/**
|
|
232
|
-
*
|
|
218
|
+
* IP address type of the Lightsail Instance. Valid values: `dualstack`, `ipv4`, `ipv6`. Default: `dualstack`.
|
|
233
219
|
*/
|
|
234
220
|
ipAddressType?: pulumi.Input<string>;
|
|
235
221
|
/**
|
|
@@ -237,38 +223,39 @@ export interface InstanceState {
|
|
|
237
223
|
*/
|
|
238
224
|
ipv6Addresses?: pulumi.Input<pulumi.Input<string>[]>;
|
|
239
225
|
/**
|
|
240
|
-
*
|
|
226
|
+
* Whether this instance has a static IP assigned to it.
|
|
241
227
|
*/
|
|
242
228
|
isStaticIp?: pulumi.Input<boolean>;
|
|
243
229
|
/**
|
|
244
|
-
*
|
|
245
|
-
* Lightsail console (cannot use `aws.ec2.KeyPair` at this time)
|
|
230
|
+
* Name of your key pair. Created in the Lightsail console (cannot use `aws.ec2.KeyPair` at this time).
|
|
246
231
|
*/
|
|
247
232
|
keyPairName?: pulumi.Input<string>;
|
|
248
233
|
/**
|
|
249
|
-
*
|
|
234
|
+
* Name of the Lightsail Instance. Names must be unique within each AWS Region in your Lightsail account.
|
|
235
|
+
*
|
|
236
|
+
* The following arguments are optional:
|
|
250
237
|
*/
|
|
251
238
|
name?: pulumi.Input<string>;
|
|
252
239
|
/**
|
|
253
|
-
*
|
|
240
|
+
* Private IP address of the instance.
|
|
254
241
|
*/
|
|
255
242
|
privateIpAddress?: pulumi.Input<string>;
|
|
256
243
|
/**
|
|
257
|
-
*
|
|
244
|
+
* Public IP address of the instance.
|
|
258
245
|
*/
|
|
259
246
|
publicIpAddress?: pulumi.Input<string>;
|
|
260
247
|
/**
|
|
261
|
-
*
|
|
248
|
+
* Amount of RAM in GB on the instance (e.g., 1.0).
|
|
262
249
|
*/
|
|
263
250
|
ramSize?: pulumi.Input<number>;
|
|
264
251
|
/**
|
|
265
|
-
*
|
|
252
|
+
* 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 `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
|
|
266
253
|
*/
|
|
267
254
|
tags?: pulumi.Input<{
|
|
268
255
|
[key: string]: pulumi.Input<string>;
|
|
269
256
|
}>;
|
|
270
257
|
/**
|
|
271
|
-
*
|
|
258
|
+
* Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
|
|
272
259
|
*
|
|
273
260
|
* @deprecated Please use `tags` instead.
|
|
274
261
|
*/
|
|
@@ -276,11 +263,11 @@ export interface InstanceState {
|
|
|
276
263
|
[key: string]: pulumi.Input<string>;
|
|
277
264
|
}>;
|
|
278
265
|
/**
|
|
279
|
-
* Single lined launch script as a string to configure server with additional user data
|
|
266
|
+
* Single lined launch script as a string to configure server with additional user data.
|
|
280
267
|
*/
|
|
281
268
|
userData?: pulumi.Input<string>;
|
|
282
269
|
/**
|
|
283
|
-
*
|
|
270
|
+
* User name for connecting to the instance (e.g., ec2-user).
|
|
284
271
|
*/
|
|
285
272
|
username?: pulumi.Input<string>;
|
|
286
273
|
}
|
|
@@ -289,48 +276,43 @@ export interface InstanceState {
|
|
|
289
276
|
*/
|
|
290
277
|
export interface InstanceArgs {
|
|
291
278
|
/**
|
|
292
|
-
*
|
|
279
|
+
* Add-on configuration for the instance. See below.
|
|
293
280
|
*/
|
|
294
281
|
addOn?: pulumi.Input<inputs.lightsail.InstanceAddOn>;
|
|
295
282
|
/**
|
|
296
|
-
*
|
|
297
|
-
* list of available zones can be obtained using the AWS CLI command:
|
|
298
|
-
* [`aws lightsail get-regions --include-availability-zones`](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/lightsail/get-regions.html).
|
|
283
|
+
* 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).
|
|
299
284
|
*/
|
|
300
285
|
availabilityZone: pulumi.Input<string>;
|
|
301
286
|
/**
|
|
302
|
-
*
|
|
303
|
-
* blueprint IDs can be obtained using the AWS CLI command:
|
|
304
|
-
* [`aws lightsail get-blueprints`](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/lightsail/get-blueprints.html).
|
|
287
|
+
* 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).
|
|
305
288
|
*/
|
|
306
289
|
blueprintId: pulumi.Input<string>;
|
|
307
290
|
/**
|
|
308
|
-
*
|
|
309
|
-
* bundle IDs can be obtained using the AWS CLI command:
|
|
310
|
-
* [`aws lightsail get-bundles`](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/lightsail/get-bundles.html).
|
|
291
|
+
* 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).
|
|
311
292
|
*/
|
|
312
293
|
bundleId: pulumi.Input<string>;
|
|
313
294
|
/**
|
|
314
|
-
*
|
|
295
|
+
* IP address type of the Lightsail Instance. Valid values: `dualstack`, `ipv4`, `ipv6`. Default: `dualstack`.
|
|
315
296
|
*/
|
|
316
297
|
ipAddressType?: pulumi.Input<string>;
|
|
317
298
|
/**
|
|
318
|
-
*
|
|
319
|
-
* Lightsail console (cannot use `aws.ec2.KeyPair` at this time)
|
|
299
|
+
* Name of your key pair. Created in the Lightsail console (cannot use `aws.ec2.KeyPair` at this time).
|
|
320
300
|
*/
|
|
321
301
|
keyPairName?: pulumi.Input<string>;
|
|
322
302
|
/**
|
|
323
|
-
*
|
|
303
|
+
* Name of the Lightsail Instance. Names must be unique within each AWS Region in your Lightsail account.
|
|
304
|
+
*
|
|
305
|
+
* The following arguments are optional:
|
|
324
306
|
*/
|
|
325
307
|
name?: pulumi.Input<string>;
|
|
326
308
|
/**
|
|
327
|
-
*
|
|
309
|
+
* 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 `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
|
|
328
310
|
*/
|
|
329
311
|
tags?: pulumi.Input<{
|
|
330
312
|
[key: string]: pulumi.Input<string>;
|
|
331
313
|
}>;
|
|
332
314
|
/**
|
|
333
|
-
* Single lined launch script as a string to configure server with additional user data
|
|
315
|
+
* Single lined launch script as a string to configure server with additional user data.
|
|
334
316
|
*/
|
|
335
317
|
userData?: pulumi.Input<string>;
|
|
336
318
|
}
|
package/lightsail/instance.js
CHANGED
|
@@ -6,9 +6,7 @@ exports.Instance = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
* with custom software already setup. See [What is Amazon Lightsail?](https://lightsail.aws.amazon.com/ls/docs/getting-started/article/what-is-amazon-lightsail)
|
|
11
|
-
* for more information.
|
|
9
|
+
* Manages a Lightsail Instance. Use this resource to create easy virtual private servers with custom software already setup.
|
|
12
10
|
*
|
|
13
11
|
* > **Note:** Lightsail is currently only supported in a limited number of AWS Regions, please see ["Regions and Availability Zones in Amazon Lightsail"](https://lightsail.aws.amazon.com/ls/docs/overview/article/understanding-regions-and-availability-zones-in-amazon-lightsail) for more details
|
|
14
12
|
*
|
|
@@ -20,9 +18,8 @@ const utilities = require("../utilities");
|
|
|
20
18
|
* import * as pulumi from "@pulumi/pulumi";
|
|
21
19
|
* import * as aws from "@pulumi/aws";
|
|
22
20
|
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* name: "custom_gitlab",
|
|
21
|
+
* const example = new aws.lightsail.Instance("example", {
|
|
22
|
+
* name: "example",
|
|
26
23
|
* availabilityZone: "us-east-1b",
|
|
27
24
|
* blueprintId: "amazon_linux_2",
|
|
28
25
|
* bundleId: "nano_3_0",
|
|
@@ -35,14 +32,14 @@ const utilities = require("../utilities");
|
|
|
35
32
|
*
|
|
36
33
|
* ### Example With User Data
|
|
37
34
|
*
|
|
38
|
-
* Lightsail user data is handled differently than
|
|
35
|
+
* Lightsail user data is handled differently than EC2 user data. Lightsail user data only accepts a single lined string. The below example shows installing apache and creating the index page.
|
|
39
36
|
*
|
|
40
37
|
* ```typescript
|
|
41
38
|
* import * as pulumi from "@pulumi/pulumi";
|
|
42
39
|
* import * as aws from "@pulumi/aws";
|
|
43
40
|
*
|
|
44
|
-
* const
|
|
45
|
-
* name: "
|
|
41
|
+
* const example = new aws.lightsail.Instance("example", {
|
|
42
|
+
* name: "example",
|
|
46
43
|
* availabilityZone: "us-east-1b",
|
|
47
44
|
* blueprintId: "amazon_linux_2",
|
|
48
45
|
* bundleId: "nano_3_0",
|
|
@@ -56,8 +53,8 @@ const utilities = require("../utilities");
|
|
|
56
53
|
* import * as pulumi from "@pulumi/pulumi";
|
|
57
54
|
* import * as aws from "@pulumi/aws";
|
|
58
55
|
*
|
|
59
|
-
* const
|
|
60
|
-
* name: "
|
|
56
|
+
* const example = new aws.lightsail.Instance("example", {
|
|
57
|
+
* name: "example",
|
|
61
58
|
* availabilityZone: "us-east-1b",
|
|
62
59
|
* blueprintId: "amazon_linux_2",
|
|
63
60
|
* bundleId: "nano_3_0",
|
|
@@ -77,7 +74,7 @@ const utilities = require("../utilities");
|
|
|
77
74
|
* Using `pulumi import`, import Lightsail Instances using their name. For example:
|
|
78
75
|
*
|
|
79
76
|
* ```sh
|
|
80
|
-
* $ pulumi import aws:lightsail/instance:Instance
|
|
77
|
+
* $ pulumi import aws:lightsail/instance:Instance example 'example'
|
|
81
78
|
* ```
|
|
82
79
|
*/
|
|
83
80
|
class Instance extends pulumi.CustomResource {
|