vaultkey

jtcarnes/vaultkey/awx

Terraform Module HCL AWX

Terraform module to create ssh key for Ansible AWX using Hashicorp Vaults ssh cert backend

Install
module "vaultkey" {
source = "jtcarnes/vaultkey/awx"
version = "1.0.4"
}
plain text: /constructs/tfmod-jtcarnes-vaultkey-awx/install.txt
⭐ Source on GitHub 📦 Registry page
README

Terraform AWX Vault Key Module Terraform module to create ssh key for Ansible AWX using Hashicorp Vaults ssh cert backend. Requirements | Name | Version | |------|---------| | terraform | >= 1.1.0 | | awx | >= 0.15.0 | | local | >= 1.0 | | tls | >= 3.0.0 | Providers | Name | Version | |------|---------| | awx | >= 0.15.0 | | tls | >= 3.0.0 | Modules No modules. Resources | Name | Type | |------|------| | awx_credential.this | resource | | awx_credential_input_source.this | resource | | awx_credential_machine.this | resource | | tls_private_key.generated_key | resource | Inputs | Name | Description | Type | Default | Required | |------|-------------|------|---------|:--------:| | awx\_machine\_credential\_key | The SSH key that will be SIGNED by Hashicorp vault. If not provided one will be

Inputs (11)
NameTypeDescriptionDefault
vault_vaild_principalslist(string)List of either usernames or hostnames that the certificate should be signed for. required
awx_organization_idnumberID of the AWX organization. required
vault_backend_role_namestringName of the Vault role used to sign the ssh key. required
vault_urlstringURL of the Vault instance from the perspective of the AWX instance. required
vault_authentication_configmap(string)Authentication configuration for AWX to authenticate to Vault. Valid options are required
awx_machine_credential_namestringName for the machine credential. required
awx_machine_credential_usernamestringUsername for the AWX credential. required
awx_machine_credential_keyobject({ public_key = strThe SSH key that will be SIGNED by Hashicorp vault. If not provided one will be required
vault_credential_namestringName for the Vault credential in AWX. required
vault_auth_pathstringPath to authentication method on Vault backend.""
vault_secret_pathstringPath to the SSH signing backend in Vault."ssh"
Outputs (4)
awx_ssh_key_pair — Keypair for the machine credential, either generated or passed in.
awx_machine_credential_id — ID of the created machine credential.
vault_credential_id — ID of the vault credential created.
vault_credential_input_source_id — ID of the credential input source. Generally unneeded.
Resources (4)
awx_credentialawx_credential_input_sourceawx_credential_machinetls_private_key
Details
FrameworkTerraform Module
LanguageHCL
Version1.0.4
Cloud AWX
Total downloads180
Inputs11
Outputs4
Resources4
Examples1
Namespacejtcarnes
Updated