alicloud.bastionhost.Host
Explore with Pulumi AI
Provides a Bastion Host Host resource.
For information about Bastion Host Host and how to use it, see What is Host.
NOTE: Available since v1.135.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "tf_example";
const default = alicloud.getZones({
availableResourceCreation: "VSwitch",
});
const defaultGetNetworks = alicloud.vpc.getNetworks({
nameRegex: "^default-NODELETING$",
cidrBlock: "10.4.0.0/16",
});
const defaultGetSwitches = Promise.all([defaultGetNetworks, _default]).then(([defaultGetNetworks, _default]) => alicloud.vpc.getSwitches({
cidrBlock: "10.4.0.0/24",
vpcId: defaultGetNetworks.ids?.[0],
zoneId: _default.zones?.[0]?.id,
}));
const defaultSecurityGroup = new alicloud.ecs.SecurityGroup("default", {vpcId: defaultGetNetworks.then(defaultGetNetworks => defaultGetNetworks.ids?.[0])});
const defaultInstance = new alicloud.bastionhost.Instance("default", {
description: name,
licenseCode: "bhah_ent_50_asset",
planCode: "cloudbastion",
storage: "5",
bandwidth: "5",
period: 1,
vswitchId: defaultGetSwitches.then(defaultGetSwitches => defaultGetSwitches.ids?.[0]),
securityGroupIds: [defaultSecurityGroup.id],
});
const defaultHost = new alicloud.bastionhost.Host("default", {
instanceId: defaultInstance.id,
hostName: name,
activeAddressType: "Private",
hostPrivateAddress: "172.16.0.10",
osType: "Linux",
source: "Local",
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "tf_example"
default = alicloud.get_zones(available_resource_creation="VSwitch")
default_get_networks = alicloud.vpc.get_networks(name_regex="^default-NODELETING$",
cidr_block="10.4.0.0/16")
default_get_switches = alicloud.vpc.get_switches(cidr_block="10.4.0.0/24",
vpc_id=default_get_networks.ids[0],
zone_id=default.zones[0].id)
default_security_group = alicloud.ecs.SecurityGroup("default", vpc_id=default_get_networks.ids[0])
default_instance = alicloud.bastionhost.Instance("default",
description=name,
license_code="bhah_ent_50_asset",
plan_code="cloudbastion",
storage="5",
bandwidth="5",
period=1,
vswitch_id=default_get_switches.ids[0],
security_group_ids=[default_security_group.id])
default_host = alicloud.bastionhost.Host("default",
instance_id=default_instance.id,
host_name=name,
active_address_type="Private",
host_private_address="172.16.0.10",
os_type="Linux",
source="Local")
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/bastionhost"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "tf_example"
if param := cfg.Get("name"); param != "" {
name = param
}
_default, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
AvailableResourceCreation: pulumi.StringRef("VSwitch"),
}, nil)
if err != nil {
return err
}
defaultGetNetworks, err := vpc.GetNetworks(ctx, &vpc.GetNetworksArgs{
NameRegex: pulumi.StringRef("^default-NODELETING$"),
CidrBlock: pulumi.StringRef("10.4.0.0/16"),
}, nil)
if err != nil {
return err
}
defaultGetSwitches, err := vpc.GetSwitches(ctx, &vpc.GetSwitchesArgs{
CidrBlock: pulumi.StringRef("10.4.0.0/24"),
VpcId: pulumi.StringRef(defaultGetNetworks.Ids[0]),
ZoneId: pulumi.StringRef(_default.Zones[0].Id),
}, nil)
if err != nil {
return err
}
defaultSecurityGroup, err := ecs.NewSecurityGroup(ctx, "default", &ecs.SecurityGroupArgs{
VpcId: pulumi.String(defaultGetNetworks.Ids[0]),
})
if err != nil {
return err
}
defaultInstance, err := bastionhost.NewInstance(ctx, "default", &bastionhost.InstanceArgs{
Description: pulumi.String(name),
LicenseCode: pulumi.String("bhah_ent_50_asset"),
PlanCode: pulumi.String("cloudbastion"),
Storage: pulumi.String("5"),
Bandwidth: pulumi.String("5"),
Period: pulumi.Int(1),
VswitchId: pulumi.String(defaultGetSwitches.Ids[0]),
SecurityGroupIds: pulumi.StringArray{
defaultSecurityGroup.ID(),
},
})
if err != nil {
return err
}
_, err = bastionhost.NewHost(ctx, "default", &bastionhost.HostArgs{
InstanceId: defaultInstance.ID(),
HostName: pulumi.String(name),
ActiveAddressType: pulumi.String("Private"),
HostPrivateAddress: pulumi.String("172.16.0.10"),
OsType: pulumi.String("Linux"),
Source: pulumi.String("Local"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "tf_example";
var @default = AliCloud.GetZones.Invoke(new()
{
AvailableResourceCreation = "VSwitch",
});
var defaultGetNetworks = AliCloud.Vpc.GetNetworks.Invoke(new()
{
NameRegex = "^default-NODELETING$",
CidrBlock = "10.4.0.0/16",
});
var defaultGetSwitches = AliCloud.Vpc.GetSwitches.Invoke(new()
{
CidrBlock = "10.4.0.0/24",
VpcId = defaultGetNetworks.Apply(getNetworksResult => getNetworksResult.Ids[0]),
ZoneId = @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
});
var defaultSecurityGroup = new AliCloud.Ecs.SecurityGroup("default", new()
{
VpcId = defaultGetNetworks.Apply(getNetworksResult => getNetworksResult.Ids[0]),
});
var defaultInstance = new AliCloud.BastionHost.Instance("default", new()
{
Description = name,
LicenseCode = "bhah_ent_50_asset",
PlanCode = "cloudbastion",
Storage = "5",
Bandwidth = "5",
Period = 1,
VswitchId = defaultGetSwitches.Apply(getSwitchesResult => getSwitchesResult.Ids[0]),
SecurityGroupIds = new[]
{
defaultSecurityGroup.Id,
},
});
var defaultHost = new AliCloud.BastionHost.Host("default", new()
{
InstanceId = defaultInstance.Id,
HostName = name,
ActiveAddressType = "Private",
HostPrivateAddress = "172.16.0.10",
OsType = "Linux",
Source = "Local",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.AlicloudFunctions;
import com.pulumi.alicloud.inputs.GetZonesArgs;
import com.pulumi.alicloud.vpc.VpcFunctions;
import com.pulumi.alicloud.vpc.inputs.GetNetworksArgs;
import com.pulumi.alicloud.vpc.inputs.GetSwitchesArgs;
import com.pulumi.alicloud.ecs.SecurityGroup;
import com.pulumi.alicloud.ecs.SecurityGroupArgs;
import com.pulumi.alicloud.bastionhost.Instance;
import com.pulumi.alicloud.bastionhost.InstanceArgs;
import com.pulumi.alicloud.bastionhost.Host;
import com.pulumi.alicloud.bastionhost.HostArgs;
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) {
final var config = ctx.config();
final var name = config.get("name").orElse("tf_example");
final var default = AlicloudFunctions.getZones(GetZonesArgs.builder()
.availableResourceCreation("VSwitch")
.build());
final var defaultGetNetworks = VpcFunctions.getNetworks(GetNetworksArgs.builder()
.nameRegex("^default-NODELETING$")
.cidrBlock("10.4.0.0/16")
.build());
final var defaultGetSwitches = VpcFunctions.getSwitches(GetSwitchesArgs.builder()
.cidrBlock("10.4.0.0/24")
.vpcId(defaultGetNetworks.applyValue(getNetworksResult -> getNetworksResult.ids()[0]))
.zoneId(default_.zones()[0].id())
.build());
var defaultSecurityGroup = new SecurityGroup("defaultSecurityGroup", SecurityGroupArgs.builder()
.vpcId(defaultGetNetworks.applyValue(getNetworksResult -> getNetworksResult.ids()[0]))
.build());
var defaultInstance = new Instance("defaultInstance", InstanceArgs.builder()
.description(name)
.licenseCode("bhah_ent_50_asset")
.planCode("cloudbastion")
.storage("5")
.bandwidth("5")
.period("1")
.vswitchId(defaultGetSwitches.applyValue(getSwitchesResult -> getSwitchesResult.ids()[0]))
.securityGroupIds(defaultSecurityGroup.id())
.build());
var defaultHost = new Host("defaultHost", HostArgs.builder()
.instanceId(defaultInstance.id())
.hostName(name)
.activeAddressType("Private")
.hostPrivateAddress("172.16.0.10")
.osType("Linux")
.source("Local")
.build());
}
}
configuration:
name:
type: string
default: tf_example
resources:
defaultSecurityGroup:
type: alicloud:ecs:SecurityGroup
name: default
properties:
vpcId: ${defaultGetNetworks.ids[0]}
defaultInstance:
type: alicloud:bastionhost:Instance
name: default
properties:
description: ${name}
licenseCode: bhah_ent_50_asset
planCode: cloudbastion
storage: '5'
bandwidth: '5'
period: '1'
vswitchId: ${defaultGetSwitches.ids[0]}
securityGroupIds:
- ${defaultSecurityGroup.id}
defaultHost:
type: alicloud:bastionhost:Host
name: default
properties:
instanceId: ${defaultInstance.id}
hostName: ${name}
activeAddressType: Private
hostPrivateAddress: 172.16.0.10
osType: Linux
source: Local
variables:
default:
fn::invoke:
Function: alicloud:getZones
Arguments:
availableResourceCreation: VSwitch
defaultGetNetworks:
fn::invoke:
Function: alicloud:vpc:getNetworks
Arguments:
nameRegex: ^default-NODELETING$
cidrBlock: 10.4.0.0/16
defaultGetSwitches:
fn::invoke:
Function: alicloud:vpc:getSwitches
Arguments:
cidrBlock: 10.4.0.0/24
vpcId: ${defaultGetNetworks.ids[0]}
zoneId: ${default.zones[0].id}
Create Host Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Host(name: string, args: HostArgs, opts?: CustomResourceOptions);
@overload
def Host(resource_name: str,
args: HostArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Host(resource_name: str,
opts: Optional[ResourceOptions] = None,
active_address_type: Optional[str] = None,
host_name: Optional[str] = None,
instance_id: Optional[str] = None,
os_type: Optional[str] = None,
source: Optional[str] = None,
comment: Optional[str] = None,
host_private_address: Optional[str] = None,
host_public_address: Optional[str] = None,
instance_region_id: Optional[str] = None,
source_instance_id: Optional[str] = None)
func NewHost(ctx *Context, name string, args HostArgs, opts ...ResourceOption) (*Host, error)
public Host(string name, HostArgs args, CustomResourceOptions? opts = null)
type: alicloud:bastionhost:Host
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args HostArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args HostArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args HostArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args HostArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args HostArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var hostResource = new AliCloud.BastionHost.Host("hostResource", new()
{
ActiveAddressType = "string",
HostName = "string",
InstanceId = "string",
OsType = "string",
Source = "string",
Comment = "string",
HostPrivateAddress = "string",
HostPublicAddress = "string",
InstanceRegionId = "string",
SourceInstanceId = "string",
});
example, err := bastionhost.NewHost(ctx, "hostResource", &bastionhost.HostArgs{
ActiveAddressType: pulumi.String("string"),
HostName: pulumi.String("string"),
InstanceId: pulumi.String("string"),
OsType: pulumi.String("string"),
Source: pulumi.String("string"),
Comment: pulumi.String("string"),
HostPrivateAddress: pulumi.String("string"),
HostPublicAddress: pulumi.String("string"),
InstanceRegionId: pulumi.String("string"),
SourceInstanceId: pulumi.String("string"),
})
var hostResource = new Host("hostResource", HostArgs.builder()
.activeAddressType("string")
.hostName("string")
.instanceId("string")
.osType("string")
.source("string")
.comment("string")
.hostPrivateAddress("string")
.hostPublicAddress("string")
.instanceRegionId("string")
.sourceInstanceId("string")
.build());
host_resource = alicloud.bastionhost.Host("hostResource",
active_address_type="string",
host_name="string",
instance_id="string",
os_type="string",
source="string",
comment="string",
host_private_address="string",
host_public_address="string",
instance_region_id="string",
source_instance_id="string")
const hostResource = new alicloud.bastionhost.Host("hostResource", {
activeAddressType: "string",
hostName: "string",
instanceId: "string",
osType: "string",
source: "string",
comment: "string",
hostPrivateAddress: "string",
hostPublicAddress: "string",
instanceRegionId: "string",
sourceInstanceId: "string",
});
type: alicloud:bastionhost:Host
properties:
activeAddressType: string
comment: string
hostName: string
hostPrivateAddress: string
hostPublicAddress: string
instanceId: string
instanceRegionId: string
osType: string
source: string
sourceInstanceId: string
Host Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Host resource accepts the following input properties:
- Active
Address stringType - Specify the new create a host of address types. Valid values:
Public
: the IP address of a Public network.Private
: Private network address. - Host
Name string - Specify the new create a host name of the supports up to 128 characters.
- Instance
Id string - Specify the new create a host where the Bastion host ID of.
- Os
Type string - Specify the new create the host's operating system. Valid values:
Linux
,Windows
. - Source string
- Specify the new create a host of source. Valid values:
Local
: localhostEcs
:ECS instanceRds
:RDS exclusive cluster host.
- Comment string
- Specify a host of notes, supports up to 500 characters.
- Host
Private stringAddress - Specify the new create a host of the private network address, it is possible to use the domain name or IP ADDRESS. NOTE: This parameter is required if the
active_address_type
parameter is set toPrivate
. - Host
Public stringAddress - Specify the new create a host of the IP address of a public network, it is possible to use the domain name or IP ADDRESS.
- Instance
Region stringId - The instance region id.
- Source
Instance stringId - Specify the newly created ECS instance ID or dedicated cluster host ID. NOTE: This parameter is required if the
source
parameter is set toEcs
orRds
.
- Active
Address stringType - Specify the new create a host of address types. Valid values:
Public
: the IP address of a Public network.Private
: Private network address. - Host
Name string - Specify the new create a host name of the supports up to 128 characters.
- Instance
Id string - Specify the new create a host where the Bastion host ID of.
- Os
Type string - Specify the new create the host's operating system. Valid values:
Linux
,Windows
. - Source string
- Specify the new create a host of source. Valid values:
Local
: localhostEcs
:ECS instanceRds
:RDS exclusive cluster host.
- Comment string
- Specify a host of notes, supports up to 500 characters.
- Host
Private stringAddress - Specify the new create a host of the private network address, it is possible to use the domain name or IP ADDRESS. NOTE: This parameter is required if the
active_address_type
parameter is set toPrivate
. - Host
Public stringAddress - Specify the new create a host of the IP address of a public network, it is possible to use the domain name or IP ADDRESS.
- Instance
Region stringId - The instance region id.
- Source
Instance stringId - Specify the newly created ECS instance ID or dedicated cluster host ID. NOTE: This parameter is required if the
source
parameter is set toEcs
orRds
.
- active
Address StringType - Specify the new create a host of address types. Valid values:
Public
: the IP address of a Public network.Private
: Private network address. - host
Name String - Specify the new create a host name of the supports up to 128 characters.
- instance
Id String - Specify the new create a host where the Bastion host ID of.
- os
Type String - Specify the new create the host's operating system. Valid values:
Linux
,Windows
. - source String
- Specify the new create a host of source. Valid values:
Local
: localhostEcs
:ECS instanceRds
:RDS exclusive cluster host.
- comment String
- Specify a host of notes, supports up to 500 characters.
- host
Private StringAddress - Specify the new create a host of the private network address, it is possible to use the domain name or IP ADDRESS. NOTE: This parameter is required if the
active_address_type
parameter is set toPrivate
. - host
Public StringAddress - Specify the new create a host of the IP address of a public network, it is possible to use the domain name or IP ADDRESS.
- instance
Region StringId - The instance region id.
- source
Instance StringId - Specify the newly created ECS instance ID or dedicated cluster host ID. NOTE: This parameter is required if the
source
parameter is set toEcs
orRds
.
- active
Address stringType - Specify the new create a host of address types. Valid values:
Public
: the IP address of a Public network.Private
: Private network address. - host
Name string - Specify the new create a host name of the supports up to 128 characters.
- instance
Id string - Specify the new create a host where the Bastion host ID of.
- os
Type string - Specify the new create the host's operating system. Valid values:
Linux
,Windows
. - source string
- Specify the new create a host of source. Valid values:
Local
: localhostEcs
:ECS instanceRds
:RDS exclusive cluster host.
- comment string
- Specify a host of notes, supports up to 500 characters.
- host
Private stringAddress - Specify the new create a host of the private network address, it is possible to use the domain name or IP ADDRESS. NOTE: This parameter is required if the
active_address_type
parameter is set toPrivate
. - host
Public stringAddress - Specify the new create a host of the IP address of a public network, it is possible to use the domain name or IP ADDRESS.
- instance
Region stringId - The instance region id.
- source
Instance stringId - Specify the newly created ECS instance ID or dedicated cluster host ID. NOTE: This parameter is required if the
source
parameter is set toEcs
orRds
.
- active_
address_ strtype - Specify the new create a host of address types. Valid values:
Public
: the IP address of a Public network.Private
: Private network address. - host_
name str - Specify the new create a host name of the supports up to 128 characters.
- instance_
id str - Specify the new create a host where the Bastion host ID of.
- os_
type str - Specify the new create the host's operating system. Valid values:
Linux
,Windows
. - source str
- Specify the new create a host of source. Valid values:
Local
: localhostEcs
:ECS instanceRds
:RDS exclusive cluster host.
- comment str
- Specify a host of notes, supports up to 500 characters.
- host_
private_ straddress - Specify the new create a host of the private network address, it is possible to use the domain name or IP ADDRESS. NOTE: This parameter is required if the
active_address_type
parameter is set toPrivate
. - host_
public_ straddress - Specify the new create a host of the IP address of a public network, it is possible to use the domain name or IP ADDRESS.
- instance_
region_ strid - The instance region id.
- source_
instance_ strid - Specify the newly created ECS instance ID or dedicated cluster host ID. NOTE: This parameter is required if the
source
parameter is set toEcs
orRds
.
- active
Address StringType - Specify the new create a host of address types. Valid values:
Public
: the IP address of a Public network.Private
: Private network address. - host
Name String - Specify the new create a host name of the supports up to 128 characters.
- instance
Id String - Specify the new create a host where the Bastion host ID of.
- os
Type String - Specify the new create the host's operating system. Valid values:
Linux
,Windows
. - source String
- Specify the new create a host of source. Valid values:
Local
: localhostEcs
:ECS instanceRds
:RDS exclusive cluster host.
- comment String
- Specify a host of notes, supports up to 500 characters.
- host
Private StringAddress - Specify the new create a host of the private network address, it is possible to use the domain name or IP ADDRESS. NOTE: This parameter is required if the
active_address_type
parameter is set toPrivate
. - host
Public StringAddress - Specify the new create a host of the IP address of a public network, it is possible to use the domain name or IP ADDRESS.
- instance
Region StringId - The instance region id.
- source
Instance StringId - Specify the newly created ECS instance ID or dedicated cluster host ID. NOTE: This parameter is required if the
source
parameter is set toEcs
orRds
.
Outputs
All input properties are implicitly available as output properties. Additionally, the Host resource produces the following output properties:
Look up Existing Host Resource
Get an existing Host resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: HostState, opts?: CustomResourceOptions): Host
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
active_address_type: Optional[str] = None,
comment: Optional[str] = None,
host_id: Optional[str] = None,
host_name: Optional[str] = None,
host_private_address: Optional[str] = None,
host_public_address: Optional[str] = None,
instance_id: Optional[str] = None,
instance_region_id: Optional[str] = None,
os_type: Optional[str] = None,
source: Optional[str] = None,
source_instance_id: Optional[str] = None) -> Host
func GetHost(ctx *Context, name string, id IDInput, state *HostState, opts ...ResourceOption) (*Host, error)
public static Host Get(string name, Input<string> id, HostState? state, CustomResourceOptions? opts = null)
public static Host get(String name, Output<String> id, HostState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Active
Address stringType - Specify the new create a host of address types. Valid values:
Public
: the IP address of a Public network.Private
: Private network address. - Comment string
- Specify a host of notes, supports up to 500 characters.
- Host
Id string - The host ID.
- Host
Name string - Specify the new create a host name of the supports up to 128 characters.
- Host
Private stringAddress - Specify the new create a host of the private network address, it is possible to use the domain name or IP ADDRESS. NOTE: This parameter is required if the
active_address_type
parameter is set toPrivate
. - Host
Public stringAddress - Specify the new create a host of the IP address of a public network, it is possible to use the domain name or IP ADDRESS.
- Instance
Id string - Specify the new create a host where the Bastion host ID of.
- Instance
Region stringId - The instance region id.
- Os
Type string - Specify the new create the host's operating system. Valid values:
Linux
,Windows
. - Source string
- Specify the new create a host of source. Valid values:
Local
: localhostEcs
:ECS instanceRds
:RDS exclusive cluster host.
- Source
Instance stringId - Specify the newly created ECS instance ID or dedicated cluster host ID. NOTE: This parameter is required if the
source
parameter is set toEcs
orRds
.
- Active
Address stringType - Specify the new create a host of address types. Valid values:
Public
: the IP address of a Public network.Private
: Private network address. - Comment string
- Specify a host of notes, supports up to 500 characters.
- Host
Id string - The host ID.
- Host
Name string - Specify the new create a host name of the supports up to 128 characters.
- Host
Private stringAddress - Specify the new create a host of the private network address, it is possible to use the domain name or IP ADDRESS. NOTE: This parameter is required if the
active_address_type
parameter is set toPrivate
. - Host
Public stringAddress - Specify the new create a host of the IP address of a public network, it is possible to use the domain name or IP ADDRESS.
- Instance
Id string - Specify the new create a host where the Bastion host ID of.
- Instance
Region stringId - The instance region id.
- Os
Type string - Specify the new create the host's operating system. Valid values:
Linux
,Windows
. - Source string
- Specify the new create a host of source. Valid values:
Local
: localhostEcs
:ECS instanceRds
:RDS exclusive cluster host.
- Source
Instance stringId - Specify the newly created ECS instance ID or dedicated cluster host ID. NOTE: This parameter is required if the
source
parameter is set toEcs
orRds
.
- active
Address StringType - Specify the new create a host of address types. Valid values:
Public
: the IP address of a Public network.Private
: Private network address. - comment String
- Specify a host of notes, supports up to 500 characters.
- host
Id String - The host ID.
- host
Name String - Specify the new create a host name of the supports up to 128 characters.
- host
Private StringAddress - Specify the new create a host of the private network address, it is possible to use the domain name or IP ADDRESS. NOTE: This parameter is required if the
active_address_type
parameter is set toPrivate
. - host
Public StringAddress - Specify the new create a host of the IP address of a public network, it is possible to use the domain name or IP ADDRESS.
- instance
Id String - Specify the new create a host where the Bastion host ID of.
- instance
Region StringId - The instance region id.
- os
Type String - Specify the new create the host's operating system. Valid values:
Linux
,Windows
. - source String
- Specify the new create a host of source. Valid values:
Local
: localhostEcs
:ECS instanceRds
:RDS exclusive cluster host.
- source
Instance StringId - Specify the newly created ECS instance ID or dedicated cluster host ID. NOTE: This parameter is required if the
source
parameter is set toEcs
orRds
.
- active
Address stringType - Specify the new create a host of address types. Valid values:
Public
: the IP address of a Public network.Private
: Private network address. - comment string
- Specify a host of notes, supports up to 500 characters.
- host
Id string - The host ID.
- host
Name string - Specify the new create a host name of the supports up to 128 characters.
- host
Private stringAddress - Specify the new create a host of the private network address, it is possible to use the domain name or IP ADDRESS. NOTE: This parameter is required if the
active_address_type
parameter is set toPrivate
. - host
Public stringAddress - Specify the new create a host of the IP address of a public network, it is possible to use the domain name or IP ADDRESS.
- instance
Id string - Specify the new create a host where the Bastion host ID of.
- instance
Region stringId - The instance region id.
- os
Type string - Specify the new create the host's operating system. Valid values:
Linux
,Windows
. - source string
- Specify the new create a host of source. Valid values:
Local
: localhostEcs
:ECS instanceRds
:RDS exclusive cluster host.
- source
Instance stringId - Specify the newly created ECS instance ID or dedicated cluster host ID. NOTE: This parameter is required if the
source
parameter is set toEcs
orRds
.
- active_
address_ strtype - Specify the new create a host of address types. Valid values:
Public
: the IP address of a Public network.Private
: Private network address. - comment str
- Specify a host of notes, supports up to 500 characters.
- host_
id str - The host ID.
- host_
name str - Specify the new create a host name of the supports up to 128 characters.
- host_
private_ straddress - Specify the new create a host of the private network address, it is possible to use the domain name or IP ADDRESS. NOTE: This parameter is required if the
active_address_type
parameter is set toPrivate
. - host_
public_ straddress - Specify the new create a host of the IP address of a public network, it is possible to use the domain name or IP ADDRESS.
- instance_
id str - Specify the new create a host where the Bastion host ID of.
- instance_
region_ strid - The instance region id.
- os_
type str - Specify the new create the host's operating system. Valid values:
Linux
,Windows
. - source str
- Specify the new create a host of source. Valid values:
Local
: localhostEcs
:ECS instanceRds
:RDS exclusive cluster host.
- source_
instance_ strid - Specify the newly created ECS instance ID or dedicated cluster host ID. NOTE: This parameter is required if the
source
parameter is set toEcs
orRds
.
- active
Address StringType - Specify the new create a host of address types. Valid values:
Public
: the IP address of a Public network.Private
: Private network address. - comment String
- Specify a host of notes, supports up to 500 characters.
- host
Id String - The host ID.
- host
Name String - Specify the new create a host name of the supports up to 128 characters.
- host
Private StringAddress - Specify the new create a host of the private network address, it is possible to use the domain name or IP ADDRESS. NOTE: This parameter is required if the
active_address_type
parameter is set toPrivate
. - host
Public StringAddress - Specify the new create a host of the IP address of a public network, it is possible to use the domain name or IP ADDRESS.
- instance
Id String - Specify the new create a host where the Bastion host ID of.
- instance
Region StringId - The instance region id.
- os
Type String - Specify the new create the host's operating system. Valid values:
Linux
,Windows
. - source String
- Specify the new create a host of source. Valid values:
Local
: localhostEcs
:ECS instanceRds
:RDS exclusive cluster host.
- source
Instance StringId - Specify the newly created ECS instance ID or dedicated cluster host ID. NOTE: This parameter is required if the
source
parameter is set toEcs
orRds
.
Import
Bastion Host Host can be imported using the id, e.g.
$ pulumi import alicloud:bastionhost/host:Host example <instance_id>:<host_id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.