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

Tags cannot be fetched for aws_ecs_service table #2388

Open
thomasklemm opened this issue Jan 30, 2025 · 1 comment
Open

Tags cannot be fetched for aws_ecs_service table #2388

thomasklemm opened this issue Jan 30, 2025 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@thomasklemm
Copy link

thomasklemm commented Jan 30, 2025

Describe the bug

ERROR: rpc error: code = Unknown desc = my_aws_account: operation error ECS: ListTagsForResource, https response error StatusCode: 400, RequestID: c5b155da-7eb3-42d7-a94b-d7f3cf2e32d7, InvalidParameterException: Long arn format must be used for tagging operations

ERROR: rpc error: code = Unknown desc = my_aws_account: table 'aws_ecs_service' column 'tags' requires hydrate data from getEcsServiceTags, which failed with error operation error ECS: ListTagsForResource, https response error StatusCode: 400, RequestID: 076ed52f-8f0e-43b9-af89-3728995bb52b, InvalidParameterException: Long arn format must be used for tagging operations.

Steampipe version (steampipe -v)
Steampipe v1.0.2

Plugin version (steampipe plugin list)
hub.steampipe.io/plugins/turbot/aws@latest | 1.5.0

To reproduce

select 
  account_id,
  region,
  arn,
  tags -- Fetching tags causes the issue
from
  aws_ecs_service;

Expected behavior
Tags for aws_ecs_service should get returned like for other tables.

Additional context
None

@thomasklemm thomasklemm added the bug Something isn't working label Jan 30, 2025
@ParthaI ParthaI self-assigned this Jan 30, 2025
@ParthaI
Copy link
Contributor

ParthaI commented Feb 7, 2025

Hello @thomasklemm,

I attempted to replicate the issue in our environment but was unable to reproduce the error. Every time I ran the query, I successfully retrieved the expected results.

Query Output:

> select service_name, tags_src, tags from aws_ecs_service;
+-----------------+-------------------------------------------------------------+-----------------------------+
| service_name    | tags_src                                                    | tags                        |
+-----------------+-------------------------------------------------------------+-----------------------------+
| test-53-service | [{"Key":"help","Value":"me"},{"Key":"foo1","Value":"bar1"}] | {"foo1":"bar1","help":"me"} |
+-----------------+-------------------------------------------------------------+-----------------------------+

Time: 2.0s. Rows returned: 0. Rows fetched: 1. Hydrate calls: 1.

Scans:
  1) aws_ecs_service.aws: Time: 0.9s. Fetched: 1. Hydrates: 1.

Could you please provide more details on the reproduction steps so I can better investigate the issue?

  • Does this occur for a specific cluster type/service (e.g., AWS Fargate (serverless) or Amazon EC2 instances)?
  • Are there any specific conditions under which the issue occurs?

Looking forward to your insights! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants