-
Notifications
You must be signed in to change notification settings - Fork 165
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
to filter one role out of all #410
Comments
I am also facing the same issue, the tag filter does not seem to work. It returns all the resources, despite passing the tag. I have double checked the tag key name and its value. Here is my output:
If I try to include a certain resource type along with the tags, it says importing 31 resources but gives an empty state file like so:
|
I think it works as intended, just the output is misleading, eg. for lambda, where only one of 32 functions has tag
|
General information:
As per requirement, I just want to import one role out of all the role present in aws account
I have build terracognita from source
Describe the bug:
sh-4.2$ terracognita aws --module devops --tfstate terraform.tfstate --aws-default-region us-east-1 -i aws_iam_role --tags 'Name:bnr-common-lambda-dynamic-runner-deploy-stack,Product:plt'
We are about to remove all content from "devops", are you sure? Yes/No (Y/N):
Y
Starting Terracognita with version v0.8.4
Importing with filters:
Tags: [{Name bnr-common-lambda-dynamic-runner-deploy-stack} {Product plt}],
Include: [aws_iam_role],
Exclude: [],
Targets: [],
Importing aws_iam_role [5/1540]^C
A clear and concise description of what the bug is.
why it is importing all the roles present in the account. Since I only want to filter on basis of tag attached in it?
The text was updated successfully, but these errors were encountered: