Giter Club home page Giter Club logo

Comments (7)

fciava avatar fciava commented on August 11, 2024

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.

denouche avatar denouche commented on August 11, 2024

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.

Tioborto avatar Tioborto commented on August 11, 2024

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.

fciava avatar fciava commented on August 11, 2024

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.

spacex avatar spacex commented on August 11, 2024

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.

spacex avatar spacex commented on August 11, 2024

I created a new pull request to the same branch with the fix for source_project_id. (#29)

from terraform-provider-awx.

cwilloughby-bw avatar cwilloughby-bw commented on August 11, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.