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

Add validation to ibm_logs_router_tenant for target name #5970

Open
ocofaigh opened this issue Feb 6, 2025 · 0 comments
Open

Add validation to ibm_logs_router_tenant for target name #5970

ocofaigh opened this issue Feb 6, 2025 · 0 comments
Labels
service/Cloud Logs Issues related to Cloud Logs

Comments

@ocofaigh
Copy link
Contributor

ocofaigh commented Feb 6, 2025

As per the Cloud Logs team:

The value for 'targets.name' is not valid. The value must be between 1 and 35 characters in length and can only contain these characters: ^[a-zA-Z][a-zA-Z0-9-]*$."

If you enter a value that does not comply with this, the provider does not fail. Instead the api returns with an error that is pretty useless:
'CreateTenantWithContext failed: Bad Request'

I already have an issue to improve that error message from the api, however regex validation should be added to the provider to ensure a better user experience and to also fail faster.

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

Affected Resource(s)

  • ibm_logs_router_tenant

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.

Debug Output

Panic Output

Expected Behavior

Actual Behavior

Steps to Reproduce

  1. terraform apply

Important Factoids

References

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

No branches or pull requests

1 participant