Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions provider/cmd/pulumi-resource-stackit/bridge-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
}
}
},
"stackit_authorization_folder_role_assignment": {
"current": "stackit:index/authorizationFolderRoleAssignment:AuthorizationFolderRoleAssignment"
},
"stackit_authorization_organization_role_assignment": {
"current": "stackit:index/authorizationOrganizationRoleAssignment:AuthorizationOrganizationRoleAssignment"
},
Expand Down
75 changes: 67 additions & 8 deletions provider/cmd/pulumi-resource-stackit/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -6041,16 +6041,75 @@
"type": "object"
}
},
"stackit:index/authorizationFolderRoleAssignment:AuthorizationFolderRoleAssignment": {
"description": "Folder Role Assignment resource schema.\n\n\u003e This resource is part of the iam experiment and is likely going to undergo significant changes or be removed in the future. Use it at your own discretion.\n\n## Example Usage\n\n```terraform\nresource \"stackit_resourcemanager_folder\" \"example\" {\n name = \"example_folder\"\n owner_email = \"[email protected]\"\n # in this case a org-id\n parent_container_id = \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\"\n}\n\nresource \"stackit_authorization_folder_role_assignment\" \"fra\" {\n resource_id = stackit_resourcemanager_folder.example.folder_id\n role = \"reader\"\n subject = \"[email protected]\"\n}\n\n# Only use the import statement, if you want to import an existing folder role assignment\nimport {\n to = stackit_authorization_folder_role_assignment.import-example\n id = \"${var.folder_id},${var.folder_role_assignment},${var.folder_role_assignment_subject}\"\n}\n```\n",
"properties": {
"resourceId": {
"type": "string",
"description": "folder Resource to assign the role to.\n"
},
"role": {
"type": "string",
"description": "Role to be assigned. Available roles can be queried using stackit-cli: `stackit curl https://authorization.api.stackit.cloud/v2/permissions`\n"
},
"subject": {
"type": "string",
"description": "Identifier of user, service account or client. Usually email address or name in case of clients\n"
}
},
"required": [
"resourceId",
"role",
"subject"
],
"inputProperties": {
"resourceId": {
"type": "string",
"description": "folder Resource to assign the role to.\n"
},
"role": {
"type": "string",
"description": "Role to be assigned. Available roles can be queried using stackit-cli: `stackit curl https://authorization.api.stackit.cloud/v2/permissions`\n"
},
"subject": {
"type": "string",
"description": "Identifier of user, service account or client. Usually email address or name in case of clients\n"
}
},
"requiredInputs": [
"resourceId",
"role",
"subject"
],
"stateInputs": {
"description": "Input properties used for looking up and filtering AuthorizationFolderRoleAssignment resources.\n",
"properties": {
"resourceId": {
"type": "string",
"description": "folder Resource to assign the role to.\n"
},
"role": {
"type": "string",
"description": "Role to be assigned. Available roles can be queried using stackit-cli: `stackit curl https://authorization.api.stackit.cloud/v2/permissions`\n"
},
"subject": {
"type": "string",
"description": "Identifier of user, service account or client. Usually email address or name in case of clients\n"
}
},
"type": "object"
}
},
"stackit:index/authorizationOrganizationRoleAssignment:AuthorizationOrganizationRoleAssignment": {
"description": "organization Role Assignment resource schema.\n\n\u003e This resource is part of the iam experiment and is likely going to undergo significant changes or be removed in the future. Use it at your own discretion.\n\n## Example Usage\n\n```terraform\nresource \"stackit_authorization_organization_role_assignment\" \"example\" {\n resource_id = \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\"\n role = \"owner\"\n subject = \"[email protected]\"\n}\n\n# Only use the import statement, if you want to import an existing organization role assignment\nimport {\n to = stackit_authorization_organization_role_assignment.import-example\n id = \"${var.organization_id},${var.org_role_assignment_role},${var.org_role_assignment_subject}\"\n}\n```\n",
"description": "Organization Role Assignment resource schema.\n\n\u003e This resource is part of the iam experiment and is likely going to undergo significant changes or be removed in the future. Use it at your own discretion.\n\n## Example Usage\n\n```terraform\nresource \"stackit_authorization_organization_role_assignment\" \"example\" {\n resource_id = \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\"\n role = \"owner\"\n subject = \"[email protected]\"\n}\n\n# Only use the import statement, if you want to import an existing organization role assignment\nimport {\n to = stackit_authorization_organization_role_assignment.import-example\n id = \"${var.organization_id},${var.org_role_assignment_role},${var.org_role_assignment_subject}\"\n}\n```\n",
"properties": {
"resourceId": {
"type": "string",
"description": "organization Resource to assign the role to.\n"
},
"role": {
"type": "string",
"description": "Role to be assigned\n"
"description": "Role to be assigned. Available roles can be queried using stackit-cli: `stackit curl https://authorization.api.stackit.cloud/v2/permissions`\n"
},
"subject": {
"type": "string",
Expand All @@ -6069,7 +6128,7 @@
},
"role": {
"type": "string",
"description": "Role to be assigned\n"
"description": "Role to be assigned. Available roles can be queried using stackit-cli: `stackit curl https://authorization.api.stackit.cloud/v2/permissions`\n"
},
"subject": {
"type": "string",
Expand All @@ -6090,7 +6149,7 @@
},
"role": {
"type": "string",
"description": "Role to be assigned\n"
"description": "Role to be assigned. Available roles can be queried using stackit-cli: `stackit curl https://authorization.api.stackit.cloud/v2/permissions`\n"
},
"subject": {
"type": "string",
Expand All @@ -6101,15 +6160,15 @@
}
},
"stackit:index/authorizationProjectRoleAssignment:AuthorizationProjectRoleAssignment": {
"description": "project Role Assignment resource schema.\n\n\u003e This resource is part of the iam experiment and is likely going to undergo significant changes or be removed in the future. Use it at your own discretion.\n\n## Example Usage\n\n```terraform\nresource \"stackit_authorization_project_role_assignment\" \"example\" {\n resource_id = \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\"\n role = \"owner\"\n subject = \"john.doe@stackit.cloud\"\n}\n\n# Only use the import statement, if you want to import an existing project role assignment\nimport {\n to = stackit_authorization_project_role_assignment.import-example\n id = \"${var.project_id},${var.project_role_assignment_role},${var.project_role_assignment_subject}\"\n}\n```\n",
"description": "Project Role Assignment resource schema.\n\n\u003e This resource is part of the iam experiment and is likely going to undergo significant changes or be removed in the future. Use it at your own discretion.\n\n## Example Usage\n\n```terraform\nresource \"stackit_resourcemanager_project\" \"example\" {\n name = \"example_project\"\n owner_email = \"[email protected]\"\n # in this case a folder or a org-id\n parent_container_id = \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\"\n}\n\nresource \"stackit_authorization_project_role_assignment\" \"pra\" {\n resource_id = stackit_resourcemanager_project.example.folder_id\n role = \"reader\"\n subject = \"foo.bar@stackit.cloud\"\n}\n\n# Only use the import statement, if you want to import an existing project role assignment\nimport {\n to = stackit_authorization_project_role_assignment.import-example\n id = \"${var.project_id},${var.project_role_assignment_role},${var.project_role_assignment_subject}\"\n}\n```\n",
"properties": {
"resourceId": {
"type": "string",
"description": "project Resource to assign the role to.\n"
},
"role": {
"type": "string",
"description": "Role to be assigned\n"
"description": "Role to be assigned. Available roles can be queried using stackit-cli: `stackit curl https://authorization.api.stackit.cloud/v2/permissions`\n"
},
"subject": {
"type": "string",
Expand All @@ -6128,7 +6187,7 @@
},
"role": {
"type": "string",
"description": "Role to be assigned\n"
"description": "Role to be assigned. Available roles can be queried using stackit-cli: `stackit curl https://authorization.api.stackit.cloud/v2/permissions`\n"
},
"subject": {
"type": "string",
Expand All @@ -6149,7 +6208,7 @@
},
"role": {
"type": "string",
"description": "Role to be assigned\n"
"description": "Role to be assigned. Available roles can be queried using stackit-cli: `stackit curl https://authorization.api.stackit.cloud/v2/permissions`\n"
},
"subject": {
"type": "string",
Expand Down
12 changes: 6 additions & 6 deletions provider/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -152,15 +152,15 @@ require (
github.com/spf13/cast v1.5.0 // indirect
github.com/spf13/cobra v1.10.1 // indirect
github.com/spf13/pflag v1.0.10 // indirect
github.com/stackitcloud/stackit-sdk-go/core v0.20.1 // indirect
github.com/stackitcloud/stackit-sdk-go/services/authorization v0.11.0 // indirect
github.com/stackitcloud/stackit-sdk-go/core v0.21.0 // indirect
github.com/stackitcloud/stackit-sdk-go/services/authorization v0.11.1 // indirect
github.com/stackitcloud/stackit-sdk-go/services/cdn v1.9.1 // indirect
github.com/stackitcloud/stackit-sdk-go/services/dns v0.17.3 // indirect
github.com/stackitcloud/stackit-sdk-go/services/edge v0.4.0 // indirect
github.com/stackitcloud/stackit-sdk-go/services/git v0.10.1 // indirect
github.com/stackitcloud/stackit-sdk-go/services/iaas v1.3.0 // indirect
github.com/stackitcloud/stackit-sdk-go/services/kms v1.2.0 // indirect
github.com/stackitcloud/stackit-sdk-go/services/loadbalancer v1.7.0 // indirect
github.com/stackitcloud/stackit-sdk-go/services/loadbalancer v1.7.1 // indirect
github.com/stackitcloud/stackit-sdk-go/services/logme v0.25.3 // indirect
github.com/stackitcloud/stackit-sdk-go/services/logs v0.4.0 // indirect
github.com/stackitcloud/stackit-sdk-go/services/mariadb v0.25.3 // indirect
Expand All @@ -175,14 +175,14 @@ require (
github.com/stackitcloud/stackit-sdk-go/services/resourcemanager v0.18.2 // indirect
github.com/stackitcloud/stackit-sdk-go/services/scf v0.4.0 // indirect
github.com/stackitcloud/stackit-sdk-go/services/secretsmanager v0.14.0 // indirect
github.com/stackitcloud/stackit-sdk-go/services/serverbackup v1.3.5 // indirect
github.com/stackitcloud/stackit-sdk-go/services/serverbackup v1.3.6 // indirect
github.com/stackitcloud/stackit-sdk-go/services/serverupdate v1.2.3 // indirect
github.com/stackitcloud/stackit-sdk-go/services/serviceaccount v0.11.3 // indirect
github.com/stackitcloud/stackit-sdk-go/services/serviceenablement v1.2.4 // indirect
github.com/stackitcloud/stackit-sdk-go/services/sfs v0.2.0 // indirect
github.com/stackitcloud/stackit-sdk-go/services/ske v1.6.0 // indirect
github.com/stackitcloud/stackit-sdk-go/services/sqlserverflex v1.4.0 // indirect
github.com/stackitcloud/terraform-provider-stackit v0.79.0 // indirect
github.com/stackitcloud/stackit-sdk-go/services/sqlserverflex v1.4.1 // indirect
github.com/stackitcloud/terraform-provider-stackit v0.79.1 // indirect
github.com/stretchr/objx v0.5.2 // indirect
github.com/teambition/rrule-go v1.8.2 // indirect
github.com/teekennedy/goldmark-markdown v0.3.0 // indirect
Expand Down
24 changes: 12 additions & 12 deletions provider/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1340,10 +1340,10 @@ github.com/stackitcloud/pulumi-stackit/provider/pkg/version v0.0.3 h1:aB0mIxvFvZ
github.com/stackitcloud/pulumi-stackit/provider/pkg/version v0.0.3/go.mod h1:AYaRzbN02xCp5DnA2tbc/5pnFxHvY12bp3KftVkZhOE=
github.com/stackitcloud/pulumi-stackit/provider/shim v0.0.3 h1:aoZCTIAaJkW7Cmks6L/ftrE/J1bCIrVoXruTzdC0ixs=
github.com/stackitcloud/pulumi-stackit/provider/shim v0.0.3/go.mod h1:F4bSBR3AuonR/lLPO4EuZY7wmd1AVxOP+hvfI7Jdqs0=
github.com/stackitcloud/stackit-sdk-go/core v0.20.1 h1:odiuhhRXmxvEvnVTeZSN9u98edvw2Cd3DcnkepncP3M=
github.com/stackitcloud/stackit-sdk-go/core v0.20.1/go.mod h1:fqto7M82ynGhEnpZU6VkQKYWYoFG5goC076JWXTUPRQ=
github.com/stackitcloud/stackit-sdk-go/services/authorization v0.11.0 h1:4YFY5PG4vP/NiEP1uxCwh+kQHEU7iHG6syuFD7NPqcw=
github.com/stackitcloud/stackit-sdk-go/services/authorization v0.11.0/go.mod h1:v4xdRA5P8Vr+zLdHh+ODgspN0WJG04wLImIJoYjrPK4=
github.com/stackitcloud/stackit-sdk-go/core v0.21.0 h1:QXZqiaO7U/4IpTkJfzt4dt6QxJzG2uUS12mBnHpYNik=
github.com/stackitcloud/stackit-sdk-go/core v0.21.0/go.mod h1:fqto7M82ynGhEnpZU6VkQKYWYoFG5goC076JWXTUPRQ=
github.com/stackitcloud/stackit-sdk-go/services/authorization v0.11.1 h1:gMAZURshmPGIIkLbZQYq+wvr+tAGa5Jdd2xyTpFtGUo=
github.com/stackitcloud/stackit-sdk-go/services/authorization v0.11.1/go.mod h1:/gj9PeF6294awSPeYokbHfZbcWK+6Dr4DQO2Z37eYQU=
github.com/stackitcloud/stackit-sdk-go/services/cdn v1.9.1 h1:PiNC8VmLqi1WUnBSPefjDXThD43Fvb87p+Y6H8onGA0=
github.com/stackitcloud/stackit-sdk-go/services/cdn v1.9.1/go.mod h1:Nnfe/Zv4Z8F56Ljw/MfXjL0/2Ajia4bGuL/CZuvIXk8=
github.com/stackitcloud/stackit-sdk-go/services/dns v0.17.3 h1:KD/FxU/cJIzfyMvwiOvTlSWq87ISENpHNmw/quznGnw=
Expand All @@ -1356,8 +1356,8 @@ github.com/stackitcloud/stackit-sdk-go/services/iaas v1.3.0 h1:U/x0tc487X9msMS5y
github.com/stackitcloud/stackit-sdk-go/services/iaas v1.3.0/go.mod h1:6+5+RCDfU7eQN3+/SGdOtx7Bq9dEa2FrHz/jflgY1M4=
github.com/stackitcloud/stackit-sdk-go/services/kms v1.2.0 h1:Ar2n9GKmrTN80G/Ta1R+fL5aX5nEoxL6ODVJl3emzho=
github.com/stackitcloud/stackit-sdk-go/services/kms v1.2.0/go.mod h1:sHMFoYvVrkRZcH13DkLvp48nW+ssRVVVuwqJHDGpa5M=
github.com/stackitcloud/stackit-sdk-go/services/loadbalancer v1.7.0 h1:ZyaB4jL71p+FWI/cXgP+p6t4iw1oAeGbLLOz4cs3dmI=
github.com/stackitcloud/stackit-sdk-go/services/loadbalancer v1.7.0/go.mod h1:dYmNdSNDKUG+E0SwuFWu+c8CuMBF/l6w1bdzAHxQao0=
github.com/stackitcloud/stackit-sdk-go/services/loadbalancer v1.7.1 h1:2UKKtBg+E5IFUcZAkRyKz1Km+tsA//zGjFQjVWwaXss=
github.com/stackitcloud/stackit-sdk-go/services/loadbalancer v1.7.1/go.mod h1:3/7s4cDhMBY7u84XjD9aUm649aoPhsBsjfPG/WDUujY=
github.com/stackitcloud/stackit-sdk-go/services/logme v0.25.3 h1:fUQLWs2WsXFh+FtFDYOm1kv/gJrGBZLjhVOXJOuYfFY=
github.com/stackitcloud/stackit-sdk-go/services/logme v0.25.3/go.mod h1:305j9bvzJ+3c4csOw4SUfLSSxRbkpL0osbvqMI89FeM=
github.com/stackitcloud/stackit-sdk-go/services/logs v0.4.0 h1:EOUVSKvu/m5N+psxeB69IIpANev/jw6HIw2yfh/HO7w=
Expand Down Expand Up @@ -1386,8 +1386,8 @@ github.com/stackitcloud/stackit-sdk-go/services/scf v0.4.0 h1:yw6UnfDlUq6//jdOW8
github.com/stackitcloud/stackit-sdk-go/services/scf v0.4.0/go.mod h1:eVylZQs1NCNgfQl4Cb+pJoN6bGUg/tOpC5UZiAN36pU=
github.com/stackitcloud/stackit-sdk-go/services/secretsmanager v0.14.0 h1:8cFo0UG2r9kWwUAHRBTAG5wEt4G80+wkWdjQW6DhU6Y=
github.com/stackitcloud/stackit-sdk-go/services/secretsmanager v0.14.0/go.mod h1:dMBt/b/LXfXTDLQTCW6PRhBlbl41q7XS+5mAyBezSJk=
github.com/stackitcloud/stackit-sdk-go/services/serverbackup v1.3.5 h1:pAoqz4K17ZWcLusu7Dxkx3HGQAIYCk7SmZeAu9HHUrQ=
github.com/stackitcloud/stackit-sdk-go/services/serverbackup v1.3.5/go.mod h1:MBlzqmewliF1LKeOBdOuT+aQrtc3y7p1Kd1fWkjecKQ=
github.com/stackitcloud/stackit-sdk-go/services/serverbackup v1.3.6 h1:9idmXyZVnshvF03lpftpvRhzfiaIS4gQMLIFqU5kRr0=
github.com/stackitcloud/stackit-sdk-go/services/serverbackup v1.3.6/go.mod h1:I4j+7qq2zJjN1yoPTJCNmfK1JJJnB+uOTwvHUX7+Xp0=
github.com/stackitcloud/stackit-sdk-go/services/serverupdate v1.2.3 h1:1gLKXD91qOYUpackMuu0PdRwrm2Z8vFK+k8H7SF0xbg=
github.com/stackitcloud/stackit-sdk-go/services/serverupdate v1.2.3/go.mod h1:V34YusCRsq/3bJ/HxUk0wslLjVWWE/QVe70AZ+XrDPE=
github.com/stackitcloud/stackit-sdk-go/services/serviceaccount v0.11.3 h1:XV3pPXpdvQjR5Z90FFutU4iqCHfejDYQAL840Y4ztLM=
Expand All @@ -1398,10 +1398,10 @@ github.com/stackitcloud/stackit-sdk-go/services/sfs v0.2.0 h1:DRp1p0Gb1YZSnFXgki
github.com/stackitcloud/stackit-sdk-go/services/sfs v0.2.0/go.mod h1:XHOtGgBwwCqPSoQt2ojIRb/BeOd4kICwb9RuMXXFGt8=
github.com/stackitcloud/stackit-sdk-go/services/ske v1.6.0 h1:Dab1jzN0u9c67lvELoWf1RuagjO3eUBRytoX8SYL8Zs=
github.com/stackitcloud/stackit-sdk-go/services/ske v1.6.0/go.mod h1:NzcTU5GGlUF6Lys3Ra7ylRj4ZKxJr3f/29/yoE5tjPI=
github.com/stackitcloud/stackit-sdk-go/services/sqlserverflex v1.4.0 h1:KgIRTw4gpxx8qoiaLGLbXPVDcBgCxPl60gigw+tizYc=
github.com/stackitcloud/stackit-sdk-go/services/sqlserverflex v1.4.0/go.mod h1:fd13ANCU/Pye8uDd/6E0I605+6PYfHuVIQpPEK2Ph6c=
github.com/stackitcloud/terraform-provider-stackit v0.79.0 h1:h2hn+M6ARQR3GRHz3S2YatV2foknbuf3BAtybJ8/a58=
github.com/stackitcloud/terraform-provider-stackit v0.79.0/go.mod h1:cn501lAiwMFdVic3FfLzHyORFndwioloi8BeWNrWYYw=
github.com/stackitcloud/stackit-sdk-go/services/sqlserverflex v1.4.1 h1:6MJdy1xmdE+uOo/F8mR5HSldjPSHpdhwuqS3u9m2EWQ=
github.com/stackitcloud/stackit-sdk-go/services/sqlserverflex v1.4.1/go.mod h1:XLr3ZfrT1g8ZZMm7A6RXOPBuhBkikdUN2o/+/Y+Hu+g=
github.com/stackitcloud/terraform-provider-stackit v0.79.1 h1:xAzqWIyqNYMJo/ilL6wUTLnyLqfRF3nqN5lxVWGAPnE=
github.com/stackitcloud/terraform-provider-stackit v0.79.1/go.mod h1:38qCrxpvHerojyzdZ0PndETEr8VwgXiZXqPsk6VphQk=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
Expand Down
Loading
Loading