Add support for kinesisanalyticsv2
See original GitHub issueIs your feature request related to a problem? Please describe. When trying to scan a Flink 1.8 kinesis data analytics app created in the console I was getting this error
botocore.errorfactory.UnsupportedOperationException: An error occurred (UnsupportedOperationException) when calling the DescribeApplication operation: test2 was created/updated by kinesisanalyticsv2 SDK. Please use kinesisanalyticsv2 SDK to make changes to test2.
It seems that these apps are getting created with the v2 SDK so need the added support to scan them
Describe the solution you’d like
Add a resource type for kinesis-analytics-v2
to allow scanning and action on these resources
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (1 by maintainers)
Top Results From Across the Web
kinesisanalyticsv2 - Amazon Web Services - Go SDK
The service enables you to quickly author and run Java, SQL, or Scala code against streaming sources to perform time series analytics, feed...
Read more >kinesisanalyticsv2 — AWS CLI 2.9.6 Command Reference
The service enables you to quickly author and run Java, SQL, or Scala code against streaming sources to perform time series analytics, feed...
Read more >AWS.Tools.KinesisAnalyticsV2 4.1.209 - PowerShell Gallery
In order to manage each AWS service, install the corresponding module (e.g. AWS.Tools.EC2, AWS.Tools.S3...). The module AWS.Tools.
Read more >KinesisAnalyticsV2 - Soto
Reference documentation for KinesisAnalyticsV2 Soto service object. ... Adds a streaming source to your SQL-based Kinesis Data Analytics application.
Read more >aws.kinesisanalyticsv2.Application - Pulumi
Documentation for the aws.kinesisanalyticsv2.Application resource with examples, input properties, output properties, lookup functions, and supporting ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
KinesisAnalyticsV2 resource type was merged
Hi, I looked into this a little bit, mostly regarding the possible mapping of v1 and v2 resources.
Using
kinesisanalytics
boto client to calllist_applications
will retrieve all Kinesis Analytics resources, with no way to distinguish between version 1 and version 2. Usingkinesisanalyticsv2
boto client to calllist_applications
will retrieve all of the same resources, but will also include each resource’s runtime, which we could use to manually filter out between v1 and v2 kinesis analytics resources. Boto docs here: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/kinesisanalyticsv2.html#KinesisAnalyticsV2.Client.list_applicationsSo, when we want to do anything with kinesis analytics, we’d need to first make a boto client using
kinesisanalyticsv2
, calllist_applications
, then assign new clients to the resource objects running older runtime envs (i.e. SQL 1.0, Flink 1.6) to usekinesisanalytics
boto clients vs. newer runtime envs (i.e. Flink 1.8) to usekinesisanalyticsv2
boto clients, and then the API calls will use the correct version.It’s mostly manual mapping that gets messy pretty quickly. I was playing around with it a bit here , though I’m currently still running into some errors. If we needed to, we could make it work, but it wouldn’t be ideal.
All-in-all, I think an AWS request for the enumeration api to retrieve version-specific resources based on the API used (kinesisanalytics vs. kinesisanalyticsv2) would be the most straightforward approach.