Giter Club home page Giter Club logo

Comments (6)

LaurenSpiegel avatar LaurenSpiegel commented on August 10, 2024

list-group-policies lists inline policies. You need list-attached-group-policies for the policies you created. You need to detach the policy from the group before deleting.

from arsenal.

dkilcy avatar dkilcy commented on August 10, 2024

Thanks, I was able to detach and remove the policy, but still can't delete the group...

[devops@ws2 ~]$ aws --endpoint-url http://app1.lab.local:8600 iam list-attached-group-policies --group-name DirAccess 
{
    "AttachedPolicies": [
        {
            "PolicyName": "homedir", 
            "PolicyArn": "arn:aws:iam::060034739872:policy/homedir"
        }
    ]
}
[devops@ws2 ~]$  aws --endpoint-url http://app1.lab.local:8600 iam detach-group-policy --group-name DirAccess --policy-arn arn:aws:iam::060034739872:policy/homedir
[devops@ws2 ~]$  aws --endpoint-url http://app1.lab.local:8600 iam list-attached-group-policies --group-name DirAccess 
{
    "AttachedPolicies": []
}
[devops@ws2 ~]$  aws --endpoint-url http://app1.lab.local:8600 iam delete-group --group-name DirAccess

An error occurred (DeleteConflict) when calling the DeleteGroup operation: The request was rejected because it attempted to delete a resource that has attached subordinate entities. The error message describes these entities.
[devops@ws2 ~]$ 

from arsenal.

LaurenSpiegel avatar LaurenSpiegel commented on August 10, 2024

Will you please try: aws iam get-group --group-name DirAccess

from arsenal.

dkilcy avatar dkilcy commented on August 10, 2024

Le sigh...

[devops@ws2 ~]$ aws --endpoint-url http://app1.lab.local:8600 iam  get-group --group-name DirAccess

An error occurred (NoSuchEntity) when calling the GetGroup operation: The request was rejected because it referenced an entity that does not exist. The error message describes the entity.
[devops@ws2 ~]$ aws --endpoint-url http://app1.lab.local:8600 iam list-groups
{
    "Groups": [
        {
            "Path": "/", 
            "CreateDate": "2016-08-25T22:13:09Z", 
            "GroupId": "EHJCYAYXDUG02QSWM6BCCJ1RN20QTK0G", 
            "Arn": "arn:aws:iam::060034739872:group/DirAccess", 
            "GroupName": "DirAccess"
        }
    ]
}
[devops@ws2 ~]$

from arsenal.

rahulreddy avatar rahulreddy commented on August 10, 2024

@dkilcy Do you mind re-opening this issue in Vault?

from arsenal.

dkilcy avatar dkilcy commented on August 10, 2024

Closing. Reopening in Vault
https://github.com/scality/Vault/issues/564

from arsenal.

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.