We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi all I am trying to create a credential with terraform to awx. I really don't know what I need to put in inputs field. Here is my code:
resource "awx_credential" "add_cred" { credential_type_id = 29 inputs = "username" name = "${var.hostname}" organization_id = 1 }
I also tried:
inputs = [ password = "${var.password}" username = "userneme" ]
Does someone have a sample code or a solution?
The text was updated successfully, but these errors were encountered:
Here is what working for me, prob there is other way to do define the inputs but I have been sticking to this since.
resource "awx_credential" "ssh_user_test" { name = "SSH User" credential_type_id = 1 description = "SSH user with KeyPair" organization_id = 1 inputs = jsonencode( { "ssh_key_data" : "", "username" : "local_user" } ) }
Sorry, something went wrong.
I really don't know what I need to put in inputs field
You can use AWX API to see which input fields are expected and required by each credential type:
https://<your awx domain.example.com>/api
https://<your awx domain.example.com>/api/v2/credential_types/
required
No branches or pull requests
Hi all I am trying to create a credential with terraform to awx. I really don't know what I need to put in inputs field. Here is my code:
resource "awx_credential" "add_cred" {
credential_type_id = 29
inputs = "username"
name = "${var.hostname}"
organization_id = 1
}
I also tried:
inputs = [
password = "${var.password}"
username = "userneme"
]
Does someone have a sample code or a solution?
The text was updated successfully, but these errors were encountered: