Comments (2)
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"
}
)
}
from terraform-provider-awx.
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:
- Access AWX API
https://<your awx domain.example.com>/api
- List all the credential types to find the one you want to create a credential
https://<your awx domain.example.com>/api/v2/credential_types/
- Then make sure on your terraform code you are providing at least the input fields listed under
required
and you should be fine
![image](https://private-user-images.githubusercontent.com/74900920/265443498-e0e72e95-e567-4a85-9b22-0bf64123c3df.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTY3NDc0NjQsIm5iZiI6MTcxNjc0NzE2NCwicGF0aCI6Ii83NDkwMDkyMC8yNjU0NDM0OTgtZTBlNzJlOTUtZTU2Ny00YTg1LTliMjItMGJmNjQxMjNjM2RmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA1MjYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNTI2VDE4MTI0NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQ2ZTlmN2JhZDhjYTBlMjY4ZTNlNTE5MTgxZjdlYTc0OWM3YWFhZGZiOWZjNTVlNTc4NGJiMmEzYjM0MzQ5N2MmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.GTUQ7473h2NdYkvLs5FQYPva3Qb4MnzWkdyoapkpc7w)
from terraform-provider-awx.
Related Issues (20)
- Error creating schedule for job template HOT 4
- data_awx_workflow_job_template_node
- Related Groups in Inventories groups
- Any example on how to terraform AWX constructed inventories?
- awx_job_template not wait for the first scm update of the awx_project to completed prior to it creation HOT 1
- unified_job_template_id only allow a single id with awx_workflow_job_template_node_success resource / failure / always
- Addition - Create AWX Instance and AWX Instance Group
- Job template surveys
- No documentation for resource job_template_launch HOT 1
- Add support param to job_template_launch HOT 1
- Awx Schedule updating fails After using Awx schedule Create HOT 2
- Data source aws_credentials doesn't work properly HOT 2
- Stack trace when printing an error message. HOT 2
- Add support to `ask_scm_branch_on_launch` for `awx_job_template` HOT 1
- Provider crashes with Go error HOT 1
- Add support to associate `instance_groups` to an `awx_inventory`
- awx_settings resouce not working
- Unable to create Schedule HOT 1
- Plugin Crash when creating awx_organization HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-provider-awx.