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

Unauthorized error creating sysdig terraform resources on IBM Cloud but we are able to create them from UI #563

Open
luiof opened this issue Oct 28, 2024 · 4 comments

Comments

@luiof
Copy link

luiof commented Oct 28, 2024

We are using sysdig in IBM Cloud and we have sysdig teams with Editor permission on each user per sysdig team.
We are able to create alerts, notification channels and dashboard from the UI but the users are not able to provision the same resources using TF code.

I attach the terraform code to the issue.

image

sysdig-provisioning-ticket-github.zip

@jaimeyh
Copy link
Collaborator

jaimeyh commented Oct 29, 2024

Hi! Could you please add the same output, but with debug level activated? Maybe that way we can retrieve more information about that Unauthorized error.

i.e. TF_LOG=debug terraform apply

@luiof
Copy link
Author

luiof commented Oct 29, 2024

@jaimeyh I attach the logs (I removed the tokens before attaching it)
logs.txt

@jaimeyh
Copy link
Collaborator

jaimeyh commented Oct 29, 2024

Thanks for the logs, could you please send also the TF files you use for this installation? All the resources you configure in order to create those alerts and dashboards. (removing the tokens values as you did before). Thanks

@luiof
Copy link
Author

luiof commented Oct 29, 2024

@jaimeyh I am using the FT files I attached in the #563 (comment) comment

The only file that is missing from the archive is the tfvars:

ibm_monitor_api_key = "xxx"
ibm_monitor_iam_url = "https://iam.cloud.ibm.com"
ibm_monitor_instance_id = "yyyy"
sysdig_monitor_url = "https://eu-gb.monitoring.cloud.ibm.com"
sysdig_monitor_team_name = "team_sre"
slackwebhookname = "channel-test"
environment      = "dev-test"

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

2 participants