terraform-provider-ibm
terraform-provider-ibm copied to clipboard
IBM Cloud Provider docs are out of date
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