Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API endpoints for SCC are wrong and cannot be changed #3524

Closed
data-henrik opened this issue Jan 26, 2022 · 4 comments · Fixed by #3526
Closed

API endpoints for SCC are wrong and cannot be changed #3524

data-henrik opened this issue Jan 26, 2022 · 4 comments · Fixed by #3526
Labels
service/SCC Issues related to SCC

Comments

@data-henrik
Copy link
Contributor

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform CLI and Terraform IBM Provider Version

terraform {
  required_version = ">= 1.0.0"
  required_providers {
    ibm = {
      source  = "ibm-cloud/ibm"
      version = "~>1.38"
    }
  }
}

Affected Resource(s)

  • data ibm_scc_account_settings
Error: ListLocationsWithContext failed Get "https://admin-service-api.cloud.ibm.com/admin/v1/locations": dial tcp: lookup admin-service-api.cloud.ibm.com on 9.0.0.1:53: no such host
│ null
│ 
│ 
│   with data.ibm_scc_account_locations.scc_account_locations,
│   on main.tf line 7, in data "ibm_scc_account_locations" "scc_account_locations":
│    7: data "ibm_scc_account_locations" "scc_account_locations" {
│ 

I tried to overwrite the endpoint via environment variable, but it does not work at all.

Terraform Configuration Files

Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.

# Copy-paste your Terraform configurations here - for large Terraform configs,
# please share a link to the ZIP file.
@tyao117
Copy link
Contributor

tyao117 commented Jan 26, 2022

I believe that the current deployed terraform provider for the scc admin settings was using a previous API version of scc-go-sdk. A new version is currently in the works.

@data-henrik
Copy link
Contributor Author

my tests

data "ibm_scc_account_locations" "scc_account_locations" {
}

data "ibm_scc_account_settings" "scc_account_location_settings" {
}


data "ibm_scc_account_location" "scc_account_location" {
  location_id = "eu"
}

@data-henrik
Copy link
Contributor Author

I believe that the current deployed terraform provider for the scc admin settings was using a previous API version of scc-go-sdk. A new version is currently in the works.

What's the ETA? What are the tests to catch such issues in the future?

@hardt-rmt
Copy link
Contributor

I believe that the current deployed terraform provider for the scc admin settings was using a previous API version of scc-go-sdk. A new version is currently in the works.

What's the ETA? What are the tests to catch such issues in the future?

There's a PR open for this #3526

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
service/SCC Issues related to SCC
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants