Skip to content

feature request: Support IoT ListPolicyVersions function #12337

@jacobverdesi

Description

@jacobverdesi

Is there an existing issue for this?

  • I have searched the existing issues

Feature description

Functionality for IoT ListPolicyVersions function is currently not supported in latest localstack version 3.4.1.dev20240425063645

Current Response:

//Show that policy does exist
aws --endpoint-url=http://localhost:4566/ iot get-policy --policy-name deviceShadowTestId_policy
{
    "policyName": "deviceShadowTestId_policy",
    "policyArn": "arn:aws:iot:us-east-1:000000000000:policy/deviceShadowTestId_policy",
...
}

aws --endpoint-url=http://localhost:4566/ iot list-policy-versions --policy-name deviceShadowTestId_policy

An error occurred (ResourceNotFoundException) when calling the ListPolicyVersions operation: The specified resource does not exist

Expected Response:

{
    "policyVersions": [
        {
            "versionId": "1",
            "isDefaultVersion": true,
            "createDate": 1739888292.349
        }
    ]
}

🧑‍💻 Implementation

No response

Anything else?

Boto3 Doc
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/iot/client/list_policy_versions.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    aws:iotAWS IoT Corestatus: backlogTriaged but not yet being worked onstatus: staleTo be closed soon due to stalenesstype: featureNew feature, or improvement to an existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions