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

IBM Cloud Provider docs are out of date #5040

Open
powellquiring opened this issue Jan 10, 2024 · 0 comments
Open

IBM Cloud Provider docs are out of date #5040

powellquiring opened this issue Jan 10, 2024 · 0 comments
Labels
documentation service/Functions Issues related to Functions service/VPC Infrastructure Issues related to the VPC Infrastructure

Comments

@powellquiring
Copy link

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

New or Affected Resource(s) or Datasource(s)

  • ibm_is_vpc
  • ibm_function_action

Description

https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs

The example includes ibm functions that have been deprecated. This should be removed.
Release notes: https://cloud.ibm.com/docs/openwhisk?topic=openwhisk-openwhisk-relnotes

# Create a Cloud Functions action
resource "ibm_function_action" "nodehello" {
  name      = "action-name"
  namespace = "function-namespace-name"
  exec {
    kind = "nodejs:10"
    code = file("hellonode.js")
  }
}

After a little editing got this error:

ibm_is_instance.testacc_instance: Creating...
╷
│ Error: image not found
│
│   with ibm_is_instance.testacc_instance,
│   on ibm.tf line 49, in resource "ibm_is_instance" "testacc_instance":
│   49: resource "ibm_is_instance" "testacc_instance" {
│

Using a data for the image would be nice:

Then the profile no longer supported:

│ Error: profile b-2x8 has generation 'gc', must specify a profile with generation 'gt'
│
│   with ibm_is_instance.testacc_instance,
│   on ibm.tf line 54, in resource "ibm_is_instance" "testacc_instance":
│   54: resource "ibm_is_instance" "testacc_instance" {
│

Here is the instance with both of the changes:

data "ibm_is_image" "ubuntu" {
  name = "ibm-ubuntu-22-04-1-minimal-amd64-3"
}

resource "ibm_is_instance" "testacc_instance" {
  name    = "testinstance1"
  image   = data.ibm_is_image.ubuntu.id
  # cli: ibmcloud is instance-profiles
  profile = "bx2-2x8"

References

  • #0000
@github-actions github-actions bot added service/Functions Issues related to Functions service/VPC Infrastructure Issues related to the VPC Infrastructure labels Jan 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation service/Functions Issues related to Functions service/VPC Infrastructure Issues related to the VPC Infrastructure
Projects
None yet
Development

No branches or pull requests

1 participant