Git Product home page Git Product logo

terraform-provider-clc's People

Contributors

ack avatar aicarmic avatar apparentlymart avatar cgriggs01 avatar gechr avatar grubernaut avatar katbyte avatar nicolai86 avatar phinze avatar radeksimko avatar randomcamel avatar sethvargo avatar stack72 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

terraform-provider-clc's Issues

This provider is scheduled to be archived on September 27th, 2018.

This Terraform provider is scheduled to be archived on September 27th, 2018. HashiCorp may archive providers when they have insufficient activity to maintain them at a level consistent with our open source guidelines and community expectations.

What does archiving mean?

  1. The code repository and all commit, issue, and PR history will still be available.
  2. Existing released binaries will remain available on the releases site and available to terraform init.
  3. Documentation for the provider will remain on the Terraform website.
  4. Issues and pull requests are not being monitored, merged, or added.
  5. No new releases will be published.
  6. Nightly acceptance tests may not be run.

If anyone from the community is willing to maintain this provider, please reach out to the Terraform Provider Development Program at [email protected].

Terraform | CLC provider | Get name of a clc_group searching with ID.

This issue was originally opened by @sgreco2002 as hashicorp/terraform#9014. It was migrated here as part of the provider split. The original body of the issue is below.


Hi
i'm new to terraform, and i'm about to become mad to understand how to achieve my scope :)
let me explain you the scenario.
I'm using terraform version v0.7.3 using the CLC provider (Centurylink cloud).
i've declared a variable file with all the group folder that i need:

variable "VTYPEFOLDER" {
type = "map"
description = "Folder that contain the VM"
default = {
GlobParent = "Mainfolder"
GlobFolder1 = "SubFolder1"
GlobFolder2 = "SubFolder2"
GlobFolder3 = "SubFolder3"
}
}

Then, i've created all the resource on cloud in a "loop" using the word 'count' and getting the name using the count.index to retreive the folder name.

resource "clc_group" "RAPPTYPEAVS" {
count = "${length(var.VTYPEFOLDER)}"
location_id = "${var.VAPPFOLDER.["GlobLocationID"]}"
parent = "${var.VTYPEFOLDER.["GlobParent"]}"
name = "${element (values(var.VTYPEFOLDER), count.index)}"
}

Now, i'm about to create the VM, that require the group_id value, that is only reliable using the statement clc_group.RAPPTYPEAVS.*.id.
But how can i get the id based on folder name within this resource "clc_group"?
This is an example of what i want to do (sorry for using a 'sql' example, but is the best way to explain what i want to do):
...
group_id = select clc_group.folder.id where clc_group.folder.name = "Subfolder1"
...

Please let me know if there is some feature that can help me.
thanks,
s.

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.