Commit Graph

310 Commits (383ae5d0c9a904b948543eba4833bf13a00011fa)

Author SHA1 Message Date
Louis TOUSSAINT 48289c35f7 Issue 165: Delete hidden dependency for iam_role_policy_supplier 2021-06-07 11:05:21 +02:00
Louis TOUSSAINT 551f958ea1 Issue 165: Delete hidden dependency for iam_role_supplier 2021-06-07 11:05:21 +02:00
Louis TOUSSAINT b35eac7bc6 Issue 165: Delete hidden dependency for iam_user_policy_attachment_supplier 2021-06-07 11:05:21 +02:00
Louis TOUSSAINT 82ed1c2c71 Issue 165: Delete hidden dependency for iam_user_policy_supplier 2021-06-07 11:05:21 +02:00
Louis TOUSSAINT 832304c8f9 Issue 165: Delete hidden dependency for iam_user_supplier 2021-06-07 11:05:21 +02:00
Louis TOUSSAINT 414fecb9d1 Issue 165: Delete hidden dependency for iam_policy_supplier 2021-06-07 11:05:20 +02:00
Louis TOUSSAINT f81cfb9eaf Issue 165: Delete hidden dependency for iam_access_key_supplier 2021-06-07 11:05:20 +02:00
Louis TOUSSAINT a0ecd28498 Issue 165: Add iam_repository 2021-06-07 11:05:20 +02:00
Louis TOUSSAINT def99b065d Issue 165: Add security_group/_rule tests to ec2_repository 2021-06-07 11:05:20 +02:00
Louis TOUSSAINT 2329c840d2 Issue 165: Add security_group_rule_supplier to ec2_repository 2021-06-07 11:05:20 +02:00
Louis TOUSSAINT 18e3a76d90 Issue 165: Add security_group_supplier to ec2_repository 2021-06-07 11:05:20 +02:00
Louis TOUSSAINT b4a3458cc3 Issue 165: Add vpc_supplier to ec2_repository 2021-06-07 11:05:20 +02:00
Louis TOUSSAINT b9fb4f9343 Issue 165: Add route_table_association_supplier to ec2_repository 2021-06-07 11:05:20 +02:00
Louis TOUSSAINT 1a45b6cdf2 Issue 165: Add route_table_supplier to ec2_repository 2021-06-07 11:05:20 +02:00
Louis TOUSSAINT 3f2fe6d90c Issue 165: Add route_supplier to ec2_repository 2021-06-07 11:05:20 +02:00
Louis TOUSSAINT 86b7f52d60 Issue 165: Add nat_gateway_supplier to ec2_repository 2021-06-07 11:05:20 +02:00
Louis TOUSSAINT 6fc4478114 Issue 165: Add subnet_supplier to ec2_repository 2021-06-07 11:05:20 +02:00
Louis TOUSSAINT 9f89dac6f2 Issue 165: Revert goldenfiles for internet_gateway_multiple 2021-06-07 11:05:20 +02:00
Louis TOUSSAINT abe938b0cd Issue 165: Add internet_gateway_supplier to ec2_repository 2021-06-07 11:05:20 +02:00
Elie fcb06cd782
Allow to specify a terraform provider version 2021-06-04 16:58:54 +02:00
sundowndev dfda3df3c6 test: improve testing for ec2 repository 2021-06-04 12:25:32 +02:00
sundowndev d737d9eb2a chore: fix conflicts with main branch 2021-06-03 12:39:33 +02:00
sundowndev e8d2b2bf70 refactor: build repositories once 2021-06-03 12:12:43 +02:00
sundowndev 4f151f35d2 refactor: aws cache capacity 2021-06-03 11:20:41 +02:00
sundowndev 44a6707523 refactor: use a global cache for all repositories 2021-06-03 11:20:41 +02:00
sundowndev e9a021b95f refactor: implement LRU cache 2021-06-03 11:00:59 +02:00
sundowndev 6b5766144c refactor: cache interface 2021-06-03 11:00:59 +02:00
sundowndev 2bf75aaa29 feat: implement resources enumeration cache 2021-06-03 11:00:59 +02:00
Martin Guibert 3a544133e2 remove useless file. prevent getter in attribute from copiying slice and
map. remove useless exported function from resource
2021-06-02 12:02:36 +02:00
Elie b5c48dbbfc
Finished refacto 2021-05-31 18:46:20 +02:00
Elie 550f5e84ae
Refacto IAM resources and aws_key_pair 2021-05-11 16:04:59 +02:00
Elie 623ff3dc8e Move all AWS mocks to test/aws 2021-05-10 15:02:42 +02:00
Martin Guibert 80687e5029
Add hybrid resource behavior 2021-04-23 17:07:35 +02:00
sundowndev 925decb2ba Merge branch 'fix/filterS3' of github.com:cloudskiff/driftctl into fix/filterS3 2021-03-18 13:49:32 +01:00
sundowndev 9d09280ec7 test: cleanup mocks 2021-03-18 13:49:25 +01:00
sundowndev 8acdf14cd6 test: cleanup mocks 2021-03-18 12:37:27 +01:00
sundowndev 4736958777 test: cleanup mocks 2021-03-18 12:34:43 +01:00
sundowndev 58bd84c438 test: cleanup mocks 2021-03-18 12:28:50 +01:00
sundowndev 357005ed7b test: cleanup mocks 2021-03-18 12:26:34 +01:00
Raphaël 93337c3280
Merge branch 'main' into fix/filterS3 2021-03-18 12:14:05 +01:00
sundowndev ca3cabe7e8 fix(remote): aws s3 bucket notification supplier
Add filter on resources based on region
2021-03-18 12:12:34 +01:00
sundowndev 1bebec138d fix(remote): aws s3 bucket analytic supplier
Add filter on resources based on region
2021-03-18 12:10:46 +01:00
sundowndev 038116e7bf fix(remote): aws s3 bucket metrics supplier
Add filter on resources based on region
2021-03-18 12:08:21 +01:00
sundowndev 7e52ef5c76 fix(remote): aws s3 bucket inventory supplier
Add filter on resources based on region
2021-03-18 12:04:58 +01:00
sundowndev 95bc5220fb fix(remote): aws s3 bucket policy supplier
Add filter on resources based on region
2021-03-18 11:59:52 +01:00
Elie 7928a4902d
Fix missing mock on golden file update 2021-03-18 11:20:14 +01:00
sundowndev a113ab5032 Merge branch 'fix/filterS3' of github.com:cloudskiff/driftctl into fix/filterS3 2021-03-18 11:09:51 +01:00
sundowndev 2d469ca5d9 test: aws s3 bucket supplier 2021-03-18 11:09:36 +01:00
Raphaël b4bd18fd5d
Merge branch 'main' into fix/filterS3 2021-03-17 19:53:50 +01:00
sundowndev 2c2a9281d9 test: update s3 bucket golden result 2021-03-17 19:52:04 +01:00
sundowndev 59118f5100 refactor: filter buckets before reading resource 2021-03-17 19:38:58 +01:00
sundowndev 23d739f75a refactor: revert ordering imports 2021-03-17 18:18:34 +01:00
Martin Guibert 53103f667c when sns subscitpion is pending prevent crash and show an alert 2021-03-17 17:59:02 +01:00
sundowndev 460ac9f767 fix: filter out s3 buckets from different regions 2021-03-17 17:23:36 +01:00
Elie 2ed311e10d
Fix race conditions when using multiples runners in a single supplier 2021-03-17 16:55:34 +01:00
Martin Guibert 28d3a6df7e Add progress service that display a spinner until stopped or timeouted 2021-03-16 16:35:20 +01:00
Martin Guibert f31a8a8395 Use printer to not break output isolation
added pinter interface to print info
json output use void printer is the path output it stdout
2021-03-15 12:03:35 +01:00
Louis TOUSSAINT 36ffed55c9 Issue 151: Rename ListAllRepositories 2021-03-02 15:25:03 +01:00
Louis TOUSSAINT 11437d03da Issue 151: Add ecr_repository resource tests 2021-03-02 15:25:03 +01:00
Louis TOUSSAINT cf634bfd54 Issue 151: Add ecr_repository resource 2021-03-02 15:25:01 +01:00
Martin Guibert 0933a6a642 add support for aws_lambda_source_event_mapping 2021-03-02 14:44:51 +01:00
William Beuil 839ae746e7
Add kms_alias 2021-02-25 14:19:49 +01:00
Elie e76a8e432b
Merge branch 'main' into res/kms_key 2021-02-25 10:54:51 +01:00
William Beuil 30a9d5cc2d
Add kms_key 2021-02-25 10:44:37 +01:00
Elie a1d84e1f7d
Merge branch 'main' into fea/refacto_rds_repository 2021-02-25 10:34:07 +01:00
Martin Guibert 922626c77c refacto rds supplier and test to use mock and repository 2021-02-24 17:29:57 +01:00
Martin Guibert 984b8feee7 refacto lambda supplier and test to use mock and repository 2021-02-24 16:31:23 +01:00
Martin Guibert 700879714a refacto ec2 to use repository 2021-02-23 18:47:42 +01:00
Martin Guibert c46096018e refacto route53 to use repository everywhere 2021-02-22 14:14:47 +01:00
Elie 76d98ed8e7
Remove custom mock and add repository for S3 2021-02-18 17:56:48 +01:00
Elie 2f0cc304ae
Fix bucket location returns EU for buckets in eu-west-1 2021-02-18 17:29:31 +01:00
William Beuil 476c6c62db
Add cloudfront_distribution resource 2021-02-17 15:52:09 +01:00
Martin Guibert f18ce79086 add support for route53 health check 2021-02-16 18:54:04 +01:00
Elie e137537596
Add a name to terraform provider 2021-02-16 10:56:29 +01:00
Elie 8e72b0fc7a
Remove useless provider add in test 2021-02-12 17:05:42 +01:00
Elie 59c061d2f6
Fix aws suppliers and tests to use new provider 2021-02-12 16:29:39 +01:00
Elie cf5d3d1f6d
use generic AZ attribute in suppliers 2021-02-12 16:18:27 +01:00
Elie 0749c72024
Create generic terraform provider 2021-02-12 16:18:26 +01:00
Martin Guibert 73ffe8280f add support for dynamodb_table 2021-02-11 18:18:08 +01:00
Elie 792d09cd0b
Make provider install and download independent from aws 2021-02-08 16:42:35 +01:00
Martin Guibert 18f7ad6bb8 add support for aws_sns_topic_subscription 2021-02-08 12:09:38 +01:00
Martin Guibert 7041cf12e5 add support for sns_topic_policy
modify sns_topic support so that we create sns_topic_policy for inline
policy
2021-02-05 14:08:28 +01:00
Elie f87d3e4691
Merge branch 'main' into handle_invalid_routes_in_table 2021-02-05 13:42:18 +01:00
Elie 5b9b70c525
Remove reference used in loops 2021-02-04 22:45:10 +01:00
Martin Guibert dad6bbff73 fix doc, add aws permissions for sns topics 2021-02-04 09:37:33 +01:00
Martin Guibert 740b872e01 update test, stringer for sns topic, refacto client into repository 2021-02-04 09:36:42 +01:00
Martin Guibert 7351511dd1 add support for sns_topic 2021-02-04 09:36:42 +01:00
William Beuil 0d738f9dc4
Update SQS suppliers and tests 2021-02-03 21:08:57 +01:00
William Beuil d3c542c004
Add aws_sqs_queue_policy 2021-02-03 20:52:52 +01:00
William Beuil ad5ad4cc76
Add aws_sqs_queue 2021-02-03 20:52:51 +01:00
Elie a8f0300405
Handle invalid route crash in middlewares 2021-02-03 16:24:55 +01:00
Elie 5daec82ecc
Remove singleton to fix issues when chain multiples cmd run
We have some issue when running acceptance test, more generally
when we use to execute scan cmd multiples times.
We were using global singletons for provider and resources suppliers
managment which lead us to improper state in the second scan run.
We should avoid this in the future and make proper initialization of our
dependencies maybe using a dependency injection container.
2021-02-01 11:49:50 +01:00
Martin Guibert bebf5c887c alert and ignore when listing resources is forbidden 2021-01-29 10:19:52 +01:00
William Beuil 734adf5cea
Add aws_internet_gateway resource 2021-01-21 16:00:16 +01:00
Elie 4faab489d2
Add aws_nat_gateway 2021-01-21 09:53:04 +01:00
Elie 211cd53f8d
Add route_table_association 2021-01-20 13:50:32 +01:00
Elie 81c608973b
Add support for multiples IaC sources 2021-01-18 17:56:21 +01:00
William Beuil ddfb22263f
Refactor isDefaultSecurityGroup function 2021-01-15 17:03:16 +01:00
William Beuil bd233350a9
Add aws_default_security_group 2021-01-15 17:03:16 +01:00
Elie 3eb84e0500
Add aws_route, aws_route_table, aws_default_route_table support 2021-01-14 18:23:59 +01:00
Elie 7662214f95
Merge branch 'main' into fix_useless_exported_fields 2021-01-11 19:58:40 +01:00
Elie c457f125e2
Remove useless exports in VPC supplier 2021-01-11 18:18:55 +01:00
Elie 06abff67ba
Add support for aws_subnet and aws_default_subnet 2021-01-11 18:16:16 +01:00
William Beuil 8e5b6de9b2
Add alerting 2021-01-11 17:34:04 +01:00
Elie 8a06eaa318
Fix crash for buckets in us-east-1 2021-01-07 10:06:08 +01:00
William Beuil 563f1a9ed3
Fix records that has the same FQDN 2021-01-06 14:44:09 +01:00
Elie e77a5b390a
Remove invalid chars in filenames (for windows) 2021-01-05 17:42:34 +01:00
William Beuil 98d1021505
Rely on the FQDN to compare two route53 records 2021-01-04 13:47:02 +01:00
Elie bbe91ffef0
Add aws vpc support 2020-12-17 18:26:37 +01:00
Elie ff72de8e77
🍾 Initial release
Co-authored-by: William BEUIL <william.beuil@cloudskiff.com>
Co-authored-by: Martin GUIBERT <martin@cloudskiff.com>
2020-12-09 16:35:26 +01:00