Git Product home page Git Product logo

Comments (9)

lechnerc77 avatar lechnerc77 commented on September 17, 2024 1

@RCarvalhoSiemens Did another retest with the following configuration using the provider state of main = upcoming release:

resource "btp_directory" "dir_with_features" {
  name        = "my-feat-directory"
  description = "This is a directory with features."
  features    = ["DEFAULT", "ENTITLEMENTS"]
}

resource "btp_directory_entitlement" "alert_notification_service" {
  directory_id = btp_directory.dir_with_features.id
  service_name  = "alert-notification"
  plan_name     = "free"
}

resource "btp_subaccount" "my_project" {
  parent_id = btp_directory.dir_with_features.id
  name      = "Retest entitlement Issue"
  subdomain = "retest-issue-6690"
  region    = var.region
}

The user executing the script is globalaccount and subaccount admin.

No error appears when assigning the entitlement to the directory.

from terraform-provider-btp.

lechnerc77 avatar lechnerc77 commented on September 17, 2024

To be checked if related to #537. Potentially a duplicate.

from terraform-provider-btp.

lechnerc77 avatar lechnerc77 commented on September 17, 2024

@RCarvalhoSiemens Can you please provide the role collections assigned to the user for:

  1. the setup that works
  2. the setup that raises the error

from terraform-provider-btp.

RCarvalhoSiemens avatar RCarvalhoSiemens commented on September 17, 2024

Hello @lechnerc77, the role collection assigned was the same on both setups, Subaccount Administrator

from terraform-provider-btp.

lechnerc77 avatar lechnerc77 commented on September 17, 2024

@RCarvalhoSiemens:
so no global account admin was assigned to the user?
In case of user management on directory level. no directory admin role collection was assigned to the user that executed the script?

from terraform-provider-btp.

lechnerc77 avatar lechnerc77 commented on September 17, 2024

Fixed with #537 - available with release 1.0.0

from terraform-provider-btp.

RCarvalhoSiemens avatar RCarvalhoSiemens commented on September 17, 2024

Hello @lechnerc77,

@RCarvalhoSiemens: so no global account admin was assigned to the user? In case of user management on directory level. no directory admin role collection was assigned to the user that executed the script?

Global account admin was assigned to the user.
image

I believe it is not the same problem as in #537 because I the entitlements are added by terraform although I have the error message mentioned above

from terraform-provider-btp.

lechnerc77 avatar lechnerc77 commented on September 17, 2024

@RCarvalhoSiemens : I could not reproduce the issue with what is currently available in the main branch.
Can you share the Terraform configuration you are using for the overall setup, so that we can give that a try?

Addition: the fix of #537 changed how authentications are propagated to the endpoints behind the scenes. I assume the error appears due to RC2 not yet propagating the information correctly after an implementation change in the APIs we use.

from terraform-provider-btp.

RCarvalhoSiemens avatar RCarvalhoSiemens commented on September 17, 2024

Sure, here you can find attached the file with the provider configuration as well as the directory entitlement part
TF config & directory entitlements.txt

from terraform-provider-btp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.