bastion

claranet/bastion/azurerm

Terraform Module HCL AZURERM

Terraform module for Azure Bastion (Managed Jump Host)

Install
module "bastion" {
source = "claranet/bastion/azurerm"
version = "8.0.2"
}
plain text: /constructs/tfmod-claranet-bastion-azurerm/install.txt
⭐ Source on GitHub 📦 Registry page
README

Azure Bastion ![Changelog](CHANGELOG.md) ![Notice](NOTICE) ![Apache V2 License](LICENSE) ![OpenTofu Registry](https://search.opentofu.org/module/claranet/bastion/azurerm/) Azure terraform module to create an Azure Bastion (managed jump host) with optional dedicated subnet. Naming Resource naming is based on the Microsoft CAF naming convention best practices. Legacy naming is available by setting the parameter use_caf_naming to false. We rely on the official Terraform Azure CAF naming provider to generate resource names. Global versioning rule for Claranet Azure modules | Module version | Terraform version | OpenTofu version | AzureRM version | | -------------- | ----------------- | ---------------- | --------------- | | >= 8.x.x | Unverified | 1.8.x | >= 4.0 | | >= 7.x.x | 1.3.x | | >= 3.0

Inputs (29)
NameTypeDescriptionDefault
locationstringAzure region to use. required
client_namestringClient name/account used in naming. required
environmentstringProject environment. required
logs_destinations_idslist(string)List of destination resources IDs for logs diagnostic destination. Can be `Stora required
location_shortstringShort string for Azure location. required
virtual_network_namestringVirtual Network Name where the dedicated Subnet and Bastion will be created. required
subnet_bastion_cidrstringCIDR range for the dedicated Bastion subnet. Must be a range available in the VN required
resource_group_namestringName of the resource group. required
stackstringProject stack name. required
shareable_link_enabledboolIs Shareable Link feature enabled for the Bastion Host.false
file_copy_enabledboolIs File Copy feature enabled for the Bastion Host.true
logs_categorieslist(string)Log categories to send to destinations.null
logs_metrics_categorieslist(string)Metrics categories to send to destinations.null
custom_namestringCustom Bastion name, generated if not set.""
custom_ipconfig_namestringBastion IP Config custom name.""
default_outbound_access_enabledboolEnable or Disable default_outbound_access. See [documentation](https://learn.micfalse
name_prefixstringOptional prefix for the generated name.""
custom_public_ip_namestringBastion IP Config resource custom name.""
extra_tagsmap(string)Additional tags to associate with resources.{}
skustringThe SKU of the Bastion Host. Accepted values are `Basic` and `Standard`."Standard"
scale_unitsnumberThe number of scale units which to provision the Bastion Host. Possible values a2
network_resource_group_namestringVNet and subnet Resource group name. To use only if you need to have a dedicated""
public_ip_zoneslist(number)Zones for public IP attached to the Bastion Host. Can be `null` if no zone distp[ 1, 2, 3 ]
diagnostic_settings_custom_namestringCustom name of the diagnostics settings, name will be `default` if not set."default"
name_suffixstringOptional suffix for the generated name.""
tunneling_enabledboolIs Tunneling feature enabled for the Bastion Host.true
ip_connect_enabledboolIs IP Connect feature enabled for the Bastion Host.true
copy_paste_enabledboolIs Copy/Paste feature enabled for the Bastion Host.true
default_tags_enabledboolOption to enable or disable default tags.true
Outputs (11)
resource_public_ip — Azure Bastion public resource object.
resource — Azure Bastion resource object.
id — Azure Bastion ID.
name — Azure Bastion name.
fqdn — Azure Bastion FQDN / generated DNS name.
subnet_id — Dedicated subnet id for the Bastion.
public_ip_name — Azure Bastion public IP resource name.
module_subnet — Module subnet bastion object outputs.
module_diagnostics — Diagnostics settings module outputs.
subnet_cidr — Dedicated subnet CIDR for the Bastion.
public_ip_address — Azure Bastion public IP address.
Resources (2)
azurerm_bastion_hostazurerm_public_ip
Details
FrameworkTerraform Module
LanguageHCL
Version8.0.2
Cloud AZURERM
★ Stars0
Forks4
Total downloads13.7k
Inputs29
Outputs11
Resources2
Examples1
LicenseApache-2.0
Namespaceclaranet
Updated