Comments (7)
Changing the type inside the resource to "TypeString" (and the casts as well) I get the following error:
resource "awx_inventory_source" "dynamic_inventory_source" {
│
│ Unable to create Inventory Source got Errors:
│ - credential: [A valid integer is required.]
So I think there's work to do inside the https://github.com/denouche/goawx.git repository as well @denouche
from terraform-provider-awx.
Hello @fciava , I just pushed a PR trying to fix this bug.
Can you test if this branch of the provider resolve the issue on your side?
from terraform-provider-awx.
Hello @fciava
Requirements : go >= 1.14
You can clone the repo in your local directory and next install the terraform provider locally :
git clone ...
git checkout fix-inventory-source-no-credential
make install
And next point your terraform requirements to this repo:
terraform {
required_providers {
awx = {
source = "~/.terraform.d/plugins/github.com/denouche/awx/0.1/linux_amd64"
version = "0.1"
}
}
}
from terraform-provider-awx.
Hello @denouche and @Tioborto,
thank you very much for your help.
I can confirm you that's working with both no credentials, with credential id set to 0 and to "0".
e.g.:
resource "awx_inventory_source" "dynamic_inventory_source" {
name = "dynamic_inventory_source"
inventory_id = awx_inventory.dynamic_inventory.id
credential_id = "0"
overwrite = true
source = "scm"
source_project_id = awx_project.dynamic_inventory_project.id
source_path = "inventories/aws/all_running_hosts.aws_ec2.yml"
}
from terraform-provider-awx.
I am seeing the same problem with source_project_id
, not allowing a 0 value when not necessary, such as for ec2 sources.
from terraform-provider-awx.
I created a new pull request to the same branch with the fix for source_project_id. (#29)
from terraform-provider-awx.
Hey @denouche! I've tested the PR locally as well, and confirmed it worked. Is there anything pending that PR being merged? I'd love to be able to point at the "official" release rather than a local build.
from terraform-provider-awx.
Related Issues (20)
- Migration to different go client HOT 1
- FEATURE: awx_team_role, awx_organization_role, awx_job_template_role, awx_credential_role HOT 1
- Question about source_project_id HOT 11
- Provider unable to create AWX client HOT 2
- Support for Amazon Web Services Credentials HOT 1
- Approval Node
- terraform-provider-awx_v0.19.0 plugin crashed! HOT 2
- Getting errors on create awx_inventory_source HOT 4
- 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
- Awx create credential HOT 2
- 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
- Add application resource HOT 1
- Credential resources cause constant diffs
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.