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

Issue with Access group creation #3476

Closed
rahulsin26 opened this issue Jan 5, 2022 · 0 comments · Fixed by #3481
Closed

Issue with Access group creation #3476

rahulsin26 opened this issue Jan 5, 2022 · 0 comments · Fixed by #3481
Labels
service/IAM Issues related to IAM

Comments

@rahulsin26
Copy link

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform CLI and Terraform IBM Provider Version

Terraform v1.0.11
on linux_amd64

Affected Resource(s)

ibm_iam_access_group

  • ibm_XXXXX

Terraform Configuration Files

Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.

resource "ibm_iam_access_group" "simp_access_group" {
name = "${var.boundary_env}-${var.service}-access-group"
description = "IAM Access Group for SOS SIMPlatform (Commercial Develop)"
}

resource "ibm_iam_service_id" "simp_srvid" {
name = "${var.boundary_env}-${var.service}-srvid"
description = "Service ID for SOS SIMPlatform (Commercial Develop)"
}

resource "ibm_iam_access_group_members" "simp_group_members" {
access_group_id = ibm_iam_access_group.simp_access_group.id
ibm_ids = var.sim_grp_members
iam_service_ids = [ibm_iam_service_id.simp_srvid.id]
}
resource "ibm_iam_access_group_policy" "iam_ck_policy" {

access_group_id = ibm_iam_access_group.simp_access_group.id
roles = ["Administrator", "Manager"]

resources {
service = "containers-kubernetes"
resource_group_id = ibm_resource_group.rg.id
}

depends_on = [ibm_iam_access_group.simp_access_group]
}

variable:-
provider_region = "us-south"
region = "dl"
boundary_env = "ct"
service = "sim"

# Copy-paste your Terraform configurations here - for large Terraform configs,
# please share a link to the ZIP file.

Debug Output

Panic Output

Expected Behavior

Errors in creating IBM Access group

Actual Behavior

I am getting error while creating access group.
Error: Error deleting access group: Failed to find the specified access group: AccessGroupId-5ecf9069-f44b-424d-acd3-3be21798f246., API Response: {
│ may not be fully updated. Run the following command to verify that no other
│ changes are pending:
│ terraform plan

│ Note that the -target option is not suitable for routine use, and is
│ "StatusCode": 404,
│ "Headers": {
│ "Cache-Control": [
│ "no-cache,no-store"
│ ],
│ "Connection": [
│ "keep-alive"
│ ],
│ provided only for exceptional situations such as recovering from errors or
│ mistakes, or when Terraform specifically suggests to use it as part of an
│ "Content-Length": [
│ error message.

│ "213"
│ ],
│ "Content-Type": [
│ "application/json; charset=utf-8"
│ ],
│ "Date": [
│ "Wed, 05 Jan 2022 07:36:37 GMT"
│ ],
│ "Expires": [
│ "Thursday, 1 January 1970 00:00:00 GMT"
│ ],
│ "Pragma": [
│ "no-cache"
│ ],
│ "Strict-Transport-Security": [
│ "max-age=31536000; includeSubDomains"
│ ],
│ "Transaction-Id": [
│ "77ad8925-55a3-45e8-a51d-a09623c211e0"
│ ],
│ "X-Proxy-Upstream-Service-Time": [
│ "30"
│ ],
│ "X-Ratelimit-Limit": [
│ "5"
│ ],
│ "X-Ratelimit-Remaining": [
│ "4"
│ ],
│ "X-Ratelimit-Reset": [
│ "1641368198"
│ ]
│ },
│ "Result": {
│ "errors": [
│ {
│ "code": "group_not_found",
│ "message": "Failed to find the specified access group: AccessGroupId-5ecf9069-f44b-424d-acd3-3be21798f246."
│ }
│ ],
│ "status_code": 404,
│ "trace": "77ad8925-55a3-45e8-a51d-a09623c211e0"
│ },
│ "RawResult": null
│ }



there is no access group present with this id(5ecf9069-f44b-424d-acd3-3be21798f246), I created yesterday but I deleted afterwards.

Steps to Reproduce

  1. terraform apply

Important Factoids

References

  • #0000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
service/IAM Issues related to IAM
Projects
None yet
1 participant