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!
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:
Outputs
All input properties are implicitly available as output properties. Additionally, the Bastion resource produces the following output properties:
- Private_
key_ stringpem - Public_
ip string
- Private_
key_ stringpem - Public_
ip string
- private_
key_ Stringpem - public_
ip String
- private_
key_ stringpem - public_
ip string
- private_
key_ strpem - public_
ip str
- private_
key_ Stringpem - public_
ip String
Package Details
- Repository
- nuage
- License
- Apache-2.0