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

the docs of huaweicloud FunctionGraph is Inaccurate #6182

Open
455hlj opened this issue Jan 11, 2025 · 0 comments
Open

the docs of huaweicloud FunctionGraph is Inaccurate #6182

455hlj opened this issue Jan 11, 2025 · 0 comments

Comments

@455hlj
Copy link

455hlj commented Jan 11, 2025

Terraform Version

Terraform v1.9.8

Terraform Configuration Files

huaweicloud v1.70.0

Debug Output

Crash Output

ReferenceTransformer: "huaweicloud_fgs_function.create_by_swr_image" references: []
2025-01-10T11:49:10.940+0800 [DEBUG] refresh: huaweicloud_fgs_function.create_by_swr_image: no state, so not refreshing
2025-01-10T11:49:10.942+0800 [ERROR] provider.terraform-provider-huaweicloud_v1.70.0: Response contains error diagnostic: diagnostic_detail=""custom_image": conflicts with code_type" diagnostic_severity=ERROR tf_provider_addr=provider tf_req_id=b5173a5f-7334-e9c6-ca60-9bf55c3640e3 tf_resource_type=huaweicloud_fgs_function diagnostic_attribute="AttributeName("custom_image")" diagnostic_summary="Conflicting configuration arguments" tf_rpc=ValidateResourceTypeConfig @caller=github.com/hashicorp/[email protected]/tfprotov5/internal/diag/diagnostics.go:55 @module=sdk.proto tf_proto_version=5.3 timestamp="2025-01-10T11:49:10.942+0800"
2025-01-10T11:49:10.943+0800 [ERROR] vertex "huaweicloud_fgs_function.create_by_swr_image" error: Conflicting configuration arguments
2025-01-10T11:49:10.943+0800 [ERROR] vertex "huaweicloud_fgs_function.create_by_swr_image (expand)" error: Conflicting configuration arguments
2025-01-10T11:49:10.943+0800 [WARN] Planning encountered errors, so plan is not applyable

Expected Behavior

according to the docs of functiongraph
https://registry.terraform.io/providers/huaweicloud/huaweicloud/latest/docs/resources/fgs_function

at the Create function using SWR

resource "huaweicloud_fgs_function" "by_swr_image" {
  name        = var.function_name
  agency      = var.agency_name
  handler     = "-"
  app         = "default"
  runtime     = "Custom Image"
  code_type   = "Custom-Image-Swr"
  memory_size = 128
  timeout     = 3

  custom_image {
    url = var.image_url
  }
}

actually the parameter code_type and the custom_image are conflict

Actual Behavior

should plan succeed

Steps to Reproduce

Additional Context

after I remove the code_type, just keep the custom_image, it works fine

References

https://registry.terraform.io/providers/huaweicloud/huaweicloud/latest/docs/resources/fgs_function

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

No branches or pull requests

1 participant