1. Packages
  2. Pulumi Nuage
  3. API Docs
  4. aws
  5. Bastion
nuage v0.1.1 published on Friday, Mar 17, 2023 by Nuage-Studio

nuage.aws.Bastion

Explore with Pulumi AI

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!

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]
)
Copy

Coming soon!

Create Bastion Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new Bastion(name: string, args: BastionArgs, opts?: ComponentResourceOptions);
@overload
def Bastion(resource_name: str,
            args: BastionArgs,
            opts: Optional[ResourceOptions] = None)

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

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. BastionArgs
The arguments to resource properties.
opts ComponentResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. BastionArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. BastionArgs
The arguments to resource properties.
opts ComponentResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. BastionArgs
The arguments to resource properties.
options ComponentResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var bastionResource = new Nuage.Aws.Bastion("bastionResource", new()
{
    SubnetId = "string",
    VpcId = "string",
    SshPort = 0,
});
Copy
example, err := aws.NewBastion(ctx, "bastionResource", &aws.BastionArgs{
	SubnetId: pulumi.String("string"),
	VpcId:    pulumi.String("string"),
	SshPort:  pulumi.Float64(0),
})
Copy
var bastionResource = new Bastion("bastionResource", BastionArgs.builder()
    .subnetId("string")
    .vpcId("string")
    .sshPort(0)
    .build());
Copy
bastion_resource = nuage.aws.Bastion("bastionResource",
    subnet_id="string",
    vpc_id="string",
    ssh_port=0)
Copy
const bastionResource = new nuage.aws.Bastion("bastionResource", {
    subnetId: "string",
    vpcId: "string",
    sshPort: 0,
});
Copy
type: nuage:aws:Bastion
properties:
    sshPort: 0
    subnetId: string
    vpcId: string
Copy

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

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The Bastion resource accepts the following input properties:

SubnetId This property is required. string
Public subnet id of the Vpc.
VpcId This property is required. string
Vpc id.
SshPort double
Ssh port for bastion host. Defaults to 22
SubnetId This property is required. string
Public subnet id of the Vpc.
VpcId This property is required. string
Vpc id.
SshPort float64
Ssh port for bastion host. Defaults to 22
subnetId This property is required. String
Public subnet id of the Vpc.
vpcId This property is required. String
Vpc id.
sshPort Double
Ssh port for bastion host. Defaults to 22
subnetId This property is required. string
Public subnet id of the Vpc.
vpcId This property is required. string
Vpc id.
sshPort number
Ssh port for bastion host. Defaults to 22
subnet_id This property is required. str
Public subnet id of the Vpc.
vpc_id This property is required. str
Vpc id.
ssh_port float
Ssh port for bastion host. Defaults to 22
subnetId This property is required. String
Public subnet id of the Vpc.
vpcId This property is required. 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