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

AWS: UnsupportedOperationException #37

Closed
hitesh50 opened this issue Jan 17, 2021 · 4 comments
Closed

AWS: UnsupportedOperationException #37

hitesh50 opened this issue Jan 17, 2021 · 4 comments

Comments

@hitesh50
Copy link

Looks like another exception need to be handled, for continued processing

UnsupportedOperationException: arn:aws:kms:us-east-2:XXXXXX:key/xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx origin is EXTERNAL which is not valid for this operation.

@yevgenypats
Copy link
Member

@hitesh50 can you please share your config.yml and the command you are running? I'll try to reproduce it

@hitesh50
Copy link
Author

hitesh50 commented Jan 17, 2021

I am running "./cloudquery fetch" command

Here is the config.yml file....
providers:
' - name: aws
accounts: # Optional. if you want to assume role to multiple account and fetch data from them
- role_arn: arn:aws:iam::111111111000:role/AWS_Role
max_retries: 5
resources: # You can comment resources your are not interested in for faster fetching.
- name: autoscaling.launch_configurations
- name: cloudtrail.trails
- name: directconnect.gateways
- name: ec2.customer_gateways
- name: ec2.flow_logs
- name: ec2.images
- name: ec2.instances
- name: ec2.internet_gateways
- name: ec2.nat_gateways
- name: ec2.network_acls
- name: ec2.route_tables
- name: ec2.security_groups
- name: ec2.subnets
- name: ec2.vpc_peering_connections
- name: ec2.vpcs
- name: ecs.clusters
- name: ecr.images
- name: efs.filesystems
- name: elasticbeanstalk.environments
- name: elbv2.load_balancers
- name: emr.clusters
- name: fsx.backups
- name: iam.groups
- name: iam.password_policies
- name: iam.policies
- name: iam.roles
- name: iam.users
- name: kms.keys
- name: rds.certificates
- name: rds.clusters
- name: rds.db_subnet_groups
- name: redshift.clusters
- name: redshift.cluster_subnet_groups
- name: s3.buckets

ghost pushed a commit that referenced this issue Jan 17, 2021
ghost pushed a commit that referenced this issue Jan 17, 2021
@yevgenypats
Copy link
Member

@hitesh50 Good catch. This is related to some nuances in AWS SDK, we now check if it is an EXTERNAL key before calling the unsupported API. This should be fixed in v0.8.7 (it is currently building)

@hitesh50
Copy link
Author

@yevgenypats - Thanks for your help resolving this

erezrokah pushed a commit that referenced this issue Aug 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants