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

SCC module is missing s2s auth policy for event notifications #197

Open
ocofaigh opened this issue Nov 25, 2024 · 1 comment
Open

SCC module is missing s2s auth policy for event notifications #197

ocofaigh opened this issue Nov 25, 2024 · 1 comment
Assignees

Comments

@ocofaigh
Copy link
Member

ocofaigh commented Nov 25, 2024

The auth policy doesn't seem to be needed to configure the event notifications integration, however I suspect without it, events won't flow to the instance.

The policy would look something like this:

resource "ibm_iam_authorization_policy" "en_policy" {
  source_service_name         = "compliance"
  source_resource_group_id    = var.resource_group_id
  target_service_name         = "event-notifications"
  target_resource_instance_id = local.en_guid
  roles                       = ["Event Source Manager"]
}

As always we should provide a skip boolean variable to optionally skip creation of the auth policy. And there should be a count around auth policy so it only occurs if:

  • not using existing SCC instance
  • not setting the skip boolean to true
  • user is passing an event notifications instance to configure the integration\

Ensure this gets exposed in the DA too

@kierramarie
Copy link

PR failing because of provider issue: IBM-Cloud/terraform-provider-ibm#5890

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

No branches or pull requests

3 participants