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

mongodbatlas_org_invitation is missing ORG_BILLING_READ_ONLY role support #1280

Closed
smokedlinq opened this issue Jun 29, 2023 · 2 comments
Closed
Assignees
Labels

Comments

@smokedlinq
Copy link

Terraform CLI and Terraform MongoDB Atlas Provider Version

Terraform v1.5.1
on windows_amd64

Terraform Configuration File

terraform {
  required_version = ">=1.5"

  required_providers {
    mongodbatlas = {
      source  = "mongodb/mongodbatlas"
      version = "1.10.0"
    }
  }
}

variable "org_id" {
  type = string
}

variable "username" {
  type = string
}

resource "mongodbatlas_org_invitation" "billing_read_only" {
  username = var.username
  org_id   = var.org_id
  roles    = ["ORG_BILLING_READ_ONLY"]
}

Steps to Reproduce

  1. terraform init
  2. terraform apply

Expected Behavior

The role ORG_BILLING_READ_ONLY is allowed.

Actual Behavior

Error: expected roles.0 to be one of [ORG_OWNER ORG_GROUP_CREATOR ORG_BILLING_ADMIN ORG_READ_ONLY ORG_MEMBER], got ORG_BILLING_READ_ONLY.

Additional Context

This is needed before July 15, 2023 per the notice on the cloud console:

To enhance privacy and restrict access to billing information for users within an organization, we are introducing a new role called “Organization Billing Viewer”.
Effective 7/15/2023, access to billing details will be exclusively reserved for users assigned the Organization Owner, Billing Admin, or Organization Billing Viewer roles. Consequently, any other roles currently able to view billing information will no longer possess this capability.
This added layer of security ensures that only authorized personnel can access sensitive billing information, enhancing privacy and preventing unauthorized access.

@github-actions
Copy link
Contributor

Thanks for opening this issue. The ticket INTMDB-904 was created for internal tracking.

@andreaangiolillo
Copy link
Collaborator

Hello 👋
Thanks for opening the issue. The fix will be available in the next release v1.10.1 scheduled for this week. Have a lovely day!

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

No branches or pull requests

2 participants