nuage.aws.Bastion

Pulumi Nuage’s Bastion resource enables the creation of a bastion host through the submission of provided VPC information. The resource creates a private key, security group, and an AWS EC2 t4g.nano instance that can serve as the bastion host. This allows secure connectivity to sensitive resources within the VPC, while maintaining isolation from the public internet. You can leverage the outputted private key to establish a connection to the bastion host.

Example Usage

Basic Example

Coming soon!

Coming soon!

Coming soon!

import pulumi_nuage as nuage

db = nuage.aws.Bastion(
    "foo",
    name="bastion-host",
    vpc_id=vpc.id,
    subnet_id=vpc.public_subnet_ids[0]
)

Coming soon!

Coming soon!

Create Bastion Resource

new Bastion(name: string, args: BastionArgs, opts?: CustomResourceOptions);
@overload
def Bastion(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            ssh_port: Optional[float] = None,
            subnet_id: Optional[str] = None,
            vpc_id: Optional[str] = None)
@overload
def Bastion(resource_name: str,
            args: BastionArgs,
            opts: Optional[ResourceOptions] = None)
func NewBastion(ctx *Context, name string, args BastionArgs, opts ...ResourceOption) (*Bastion, error)
public Bastion(string name, BastionArgs args, CustomResourceOptions? opts = null)
public Bastion(String name, BastionArgs args)
public Bastion(String name, BastionArgs args, CustomResourceOptions options)
type: nuage:aws:Bastion
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args BastionArgs
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 BastionArgs
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 BastionArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args BastionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args BastionArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Bastion 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 Bastion resource accepts the following input properties:

SubnetId string

Public subnet id of the Vpc.

VpcId string

Vpc id.

SshPort double

Ssh port for bastion host. Defaults to 22

SubnetId string

Public subnet id of the Vpc.

VpcId string

Vpc id.

SshPort float64

Ssh port for bastion host. Defaults to 22

subnetId String

Public subnet id of the Vpc.

vpcId String

Vpc id.

sshPort Double

Ssh port for bastion host. Defaults to 22

subnetId string

Public subnet id of the Vpc.

vpcId string

Vpc id.

sshPort number

Ssh port for bastion host. Defaults to 22

subnet_id str

Public subnet id of the Vpc.

vpc_id str

Vpc id.

ssh_port float

Ssh port for bastion host. Defaults to 22

subnetId String

Public subnet id of the Vpc.

vpcId String

Vpc id.

sshPort Number

Ssh port for bastion host. Defaults to 22

Outputs

All input properties are implicitly available as output properties. Additionally, the Bastion resource produces the following output properties:

Package Details

Repository
nuage
License
Apache-2.0