Skip to content

bug: describe-snapshot-attribute does not return expected output #12374

@didimelli

Description

@didimelli

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When I try to describe the attributes of a snapshot I get a weird response, in which the SnapshotId does not match the provided one (this happens for any existing snapshot):

aws ec2 describe-snapshot-attribute --region=us-east-1 --no-cli-pager --snapshot-id snap-95bfb22bd7d2b318a --attribute createVolumePermission
{
    "SnapshotId": "snap-a0332ee0",
    "CreateVolumePermissions": []
}

or

aws ec2 describe-snapshot-attribute --region=us-east-1 --no-cli-pager --snapshot-id snap-e4235fbc41de5d892 --attribute createVolumePermission
{
    "SnapshotId": "snap-a0332ee0",
    "CreateVolumePermissions": []
}

This is happening both using awscli and also using awslocal from within the container

root@e41da89b7bfe:/opt/code/localstack# awslocal ec2 describe-snapshot-attribute --region=us-east-1 --snapshot-id snap-e4235fbc41de5d892 --attribute createVolumePermission

{
    "SnapshotId": "snap-a0332ee0",
    "CreateVolumePermissions": []
}

Expected Behavior

I expect to get the response for the correct SnapshotId.

How are you starting LocalStack?

Custom (please describe below)

Steps To Reproduce

How are you starting localstack (e.g., bin/localstack command, arguments, or docker-compose.yml)

with `testcontainers-go`

Client commands (e.g., AWS SDK code snippet, or sequence of "awslocal" commands)

awslocal ec2 describe-snapshot-attribute --region=us-east-1 --snapshot-id snap-e4235fbc41de5d892 -
-attribute createVolumePermission

Environment

- OS: Linux docker container
- LocalStack:
  LocalStack version: LocalStack CLI 4.2.0
  LocalStack Docker image sha: ca0685948310
  LocalStack build date:
  LocalStack build git hash:

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions