Git Product home page Git Product logo

terraform-import-github-organization's People

Contributors

chadasapp avatar chrisanthropic avatar hartzell avatar joschi avatar kimpepper avatar tsupertramp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

terraform-import-github-organization's Issues

Giving Error

Hello, I'm trying to run the script, but I'm getting below error.

$ ./terraform-import-github-org.sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0    83    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
jq: error (at <stdin>:0): Cannot index string with string "name"
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0    83    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
jq: error (at <stdin>:0): Cannot index string with string "name"
jq: error (at <stdin>:0): Cannot index string with string "login"
jq: error (at <stdin>:0): Cannot index string with string "name"
jq: error (at <stdin>:0): Cannot index string with string "name"
parse error: Invalid numeric literal at line 1, column 5
jq: error (at <stdin>:0): Cannot index string with string "name"

Pagination breaks with no Link header

If you have less than 100 public repos, there is no Link header in the response for get_public_pagination and the seq call breaks as a result:

./terraform-import-github-org.sh 
seq: missing operand
Try 'seq --help' for more information.

This might be breaking for other pagination calls as well.

import fail on jbangdev org

Trying to use this on jbangdev which is quite simple org but it eventually fails:

Warning: Interpolation-only expressions are deprecated

  on github-team-memberships-jbang-catalog.tf line 3, in resource "github_team_membership" "jbang-catalog-maxandersen":
   3:   team_id     = "${github_team.jbang-catalog.id}"

Terraform 0.11 and earlier required all non-constant expressions to be
provided via interpolation syntax, but this pattern is now deprecated. To
silence this warning, remove the "${ sequence from the start and the }"
sequence from the end of this expression, leaving just the inner expression.

Template interpolation syntax is still used to construct strings from
expressions when the template includes multiple interpolation sequences or a
mixture of literal strings and interpolations. This deprecation applies only
to templates that consist entirely of a single interpolation sequence.

(and 3 more similar warnings elsewhere)

parse error: Invalid numeric literal at line 1, column 5
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0 55957    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0

Warning: Interpolation-only expressions are deprecated

  on github-team-memberships-jbang-catalog.tf line 3, in resource "github_team_membership" "jbang-catalog-maxandersen":
   3:   team_id     = "${github_team.jbang-catalog.id}"

Terraform 0.11 and earlier required all non-constant expressions to be
provided via interpolation syntax, but this pattern is now deprecated. To
silence this warning, remove the "${ sequence from the start and the }"
sequence from the end of this expression, leaving just the inner expression.

Template interpolation syntax is still used to construct strings from
expressions when the template includes multiple interpolation sequences or a
mixture of literal strings and interpolations. This deprecation applies only
to templates that consist entirely of a single interpolation sequence.

(and one more similar warning elsewhere)

Error: resource address "github_team_repository.jbang-catalog-jbang-catalog" does not exist in the configuration.

Before importing this resource, please create its configuration in the root module. For example:

resource "github_team_repository" "jbang-catalog-jbang-catalog" {
  # (resource arguments)
}

any idea on what to go look for ?

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.