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

nuage logo
nuage v0.1.1 published on Friday, Mar 17, 2023 by Nuage-Studio

    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

    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 string
    The unique name of the resource.
    args BastionArgs
    The arguments to resource properties.
    opts ComponentResourceOptions
    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 ComponentResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args 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,
    });
    
    example, err := aws.NewBastion(ctx, "bastionResource", &aws.BastionArgs{
    	SubnetId: pulumi.String("string"),
    	VpcId:    pulumi.String("string"),
    	SshPort:  pulumi.Float64(0),
    })
    
    var bastionResource = new Bastion("bastionResource", BastionArgs.builder()
        .subnetId("string")
        .vpcId("string")
        .sshPort(0)
        .build());
    
    bastion_resource = nuage.aws.Bastion("bastionResource",
        subnet_id="string",
        vpc_id="string",
        ssh_port=0)
    
    const bastionResource = new nuage.aws.Bastion("bastionResource", {
        subnetId: "string",
        vpcId: "string",
        sshPort: 0,
    });
    
    type: nuage:aws:Bastion
    properties:
        sshPort: 0
        subnetId: string
        vpcId: string
    

    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 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
    nuage logo
    nuage v0.1.1 published on Friday, Mar 17, 2023 by Nuage-Studio