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

[Feature Request] btp_subaccount_role with role template "CustomRoleTemplate" and attributes #896

Open
1 task done
olfolfolf opened this issue Aug 28, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@olfolfolf
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

What version of the Terraform provider are you using?

1.6.0

What version of the Terraform CLI are you using?

1.9.5

What type of issue are you facing

bug report

Describe the bug

I want to create a custom role for SAP Integration Suite. Based on the documentation, I could create the custom role in the BTP cockpit.
You need to set a custom attribute, see here:
Screenshot 2024-08-28 105909

No I wanted to do the same in Terraform - I did not find a hint in the documentation, how to set the attribute custom_role in Terraform:

resource "btp_subaccount_role" "testrole" {
subaccount_id      = btp_subaccount.subaccount.id  
  name               = "testrole"  
  role_template_name = "CustomRoleTemplate"  
  app_id             = "it!b182722"  
}

Without setting the attribute custom_role, I get the following error at deployment:

btp_subaccount_role.testrole: Creating...
╷
│ Error: API Error Creating Resource Role (Subaccount)
│
│   with btp_subaccount_role.testrole,
│   on roles_access_policies.tf line 4, in resource "btp_subaccount_role" "testrole":
│    4: resource "btp_subaccount_role" "testrole" {
│
│ Cannot add role without values for all attributes of RoleTemplate

Did I miss something or it isn't supported yet?

Br,
Florian

Expected Behavior

No response

Steps To Reproduce

No response

User's Role Collections

No response

Add screenshots to help explain your problem

No response

Additional context

No response

@olfolfolf olfolfolf added bug Something isn't working needs-triage For new issues labels Aug 28, 2024
@lechnerc77
Copy link
Member

lechnerc77 commented Aug 28, 2024

This seems to be a gap between the interface offered by the corresponding BTP CLI activity and the underlying API

Parameters for attributes is missing. Clarification with BTP CLI team needed

@lechnerc77 lechnerc77 changed the title [BUG] btp_subaccount_role with role template "CustomRoleTemplate" and attributes [Feature Request] btp_subaccount_role with role template "CustomRoleTemplate" and attributes Aug 28, 2024
@lechnerc77 lechnerc77 added enhancement New feature or request and removed bug Something isn't working needs-triage For new issues labels Aug 28, 2024
@lechnerc77
Copy link
Member

Update: Known gap in BTP CLI implementation

For SAP Internal reference: https://jira.tools.sap/browse/XSUAA-2993

Next step: evaluate if the implementation is already planned and if yes what is the planned ETA

@lechnerc77
Copy link
Member

The feature request including the enhancement of the BTP CLI is under evaluation. ETA is not yet available. I will update this issue once known.

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

No branches or pull requests

2 participants