Commit Graph

1145 Commits (d256d98a1c246003a11898ace27706dc8f95a0d8)

Author SHA1 Message Date
Martin Guibert 70ddf3c042
add scanner tests 2021-11-18 08:59:43 +01:00
Martin Guibert c4406b3648
add state reader test for cname 2021-11-18 08:59:43 +01:00
Martin Guibert 6dd4b17e66
add repository tests for cname 2021-11-18 08:59:42 +01:00
Martin Guibert ed405dfbcd
add metadata test and acc test 2021-11-18 08:59:42 +01:00
Martin Guibert d498ee9973
add support for azurerm_private_dns_cname_record_enumerator 2021-11-18 08:59:42 +01:00
William Beuil 6a6ead3bd3
Add aws_api_gateway_integration_response resource 2021-11-17 10:32:09 +01:00
Elie af8afc77df
Force azure provider registration to false.
Azure provider registration allow terraform provider to automatically
register azure resource providers.
In our context we are running read only so we do not want to try to
enable them during the scan.
Without this, a driftctl scan will try to register resource providers
since it is done in the gRPC configure call.
2021-11-16 14:46:47 +01:00
Elie 0bf122f7ee
Merge pull request #1216 from cbowman0/tfe
Support passing in the Terraform API URL to support Terraform Enterprise installations.
2021-11-15 17:40:32 +01:00
Christopher Bowman 9591633e8a Set the TFCloudEndpoint parameter that would be set via default in cmd options 2021-11-15 10:08:23 -05:00
Christopher Bowman 03464d89bc Change TFCloudAPI to TFCloudEndpoint 2021-11-15 09:24:07 -05:00
Christopher Bowman 8ba05f995b Address remarks 2021-11-15 09:07:22 -05:00
Christopher Bowman 6c2f9653e1 Support passing in the Terraform API URL to support Terraform Enterprise installations.
Look for the correct domain in from credentials.tfrc.json
2021-11-12 17:46:32 -05:00
sundowndev 4a9cc26a77 refactor: add docs for ShouldPrint function 2021-11-12 17:05:05 +01:00
sundowndev d5f930e2f1 fix: display progress bar in stdout 2021-11-12 17:05:05 +01:00
Martin Guibert e1bcd185ef
fix private record acc tests 2021-11-10 17:38:33 +01:00
William BEUIL ab5ae0c4ab
Merge branch 'main' into fix/unbuffered-chan 2021-11-10 16:00:38 +01:00
William BEUIL e98c9f9e68
Merge branch 'main' into fix/unbuffered-chan 2021-11-10 15:53:44 +01:00
Elie 5399ade164
Add google_cloudrun_service 2021-11-10 15:45:33 +01:00
Elie ec69da1afc
Merge pull request #1208 from craigfurman/gen-driftignore-ux
gen-driftignore input/output UX
2021-11-10 10:20:46 +01:00
Craig Furman 612118d646 gen-driftignore defaults to writing to a file
Users can still print to stdout by passing `-o -`.
2021-11-08 10:43:18 +00:00
Craig Furman 4466a0430e gen-driftignore defaults to reading from stdin
Allow the input file to be specified as "-", which traditionally many
programs interpret as standard input. Make this value the default too,
as piping `driftctl scan | driftctl gen-driftignore` appears to be a
documented idiom.
2021-11-08 10:43:16 +00:00
Martin Guibert f2a84a145c
fix tests 2021-11-05 10:26:36 +01:00
Martin Guibert 0a8a885aaa
add test for repo and some fix 2021-11-05 10:26:36 +01:00
Martin Guibert 8247f2a41f
add support for azurerm_private_dns_a_record & azurerm_private_dns_aaaa_record 2021-11-05 10:26:19 +01:00
William Beuil 0d0457ac92
Fix unbuffered channel 2021-11-04 13:07:31 +01:00
William Beuil 568c474574
Middleware should handle YAML body document now 2021-11-04 11:55:19 +01:00
Elie 33b655509f
Merge pull request #1202 from cloudskiff/fix_flacky_acc_tests
Fix flacky ACC tests
2021-10-29 16:31:17 +02:00
William Beuil 240e20d6e4
Renaming AWS scanner tests 2021-10-29 14:55:38 +02:00
Elie 0ed20f20d2
Fix flacky ACC tests 2021-10-29 14:17:49 +02:00
Elie fe2587e383
Add google_compute_global_address 2021-10-29 10:33:59 +02:00
Raphaël a2491a07ac
Merge branch 'main' into feat/add_google_compute_health_check 2021-10-28 16:18:37 +02:00
sundowndev e5b55aad94 fix: use name instead of display_name 2021-10-28 15:55:29 +02:00
sundowndev 2e6977c2c6 refactor: use name instead of display_name 2021-10-28 15:34:46 +02:00
sundowndev 6f117efdb2 feat: add google_compute_health_check 2021-10-28 15:34:46 +02:00
Elie 05c16831b8
Merge pull request #1191 from cloudskiff/chore/state-reader-test
Fix fake provider configuration in state reader tests
2021-10-28 14:20:30 +02:00
William Beuil 0f7db93e9b
Add aws_api_gateway_integration resource 2021-10-28 13:05:19 +02:00
Elie 9d7acdf102
Merge pull request #1171 from cloudskiff/res/api_gtw_method_settings
Add aws_api_gateway_method_settings resource
2021-10-28 12:00:21 +02:00
sundowndev 6e0ff306da chore: add temp directory to fake provider 2021-10-27 17:12:01 +02:00
William Beuil d544e622fa
Add aws_api_gateway_method_settings resource 2021-10-27 17:03:38 +02:00
Elie f6589bb765
Add google_compute_image 2021-10-27 16:36:21 +02:00
Elie ef150c20f4
Merge pull request #1175 from cloudskiff/add_google_sql_database_instance
Add google_sql_database_instance
2021-10-27 16:00:22 +02:00
Elie 791be3553c
Merge pull request #1188 from cloudskiff/retry-policy-comment
Add missing comment for retry policy in ACC tests
2021-10-27 15:59:53 +02:00
Elie 7225d4c0a8
Merge pull request #1186 from cloudskiff/fix/sort-scanner
Create a SortableScanner for specific use case
2021-10-27 15:59:17 +02:00
sundowndev 331fbe6b89 chore(acc): add comment for retry policy 2021-10-27 15:55:09 +02:00
Martin Guibert dfe35f9082 fix google_project_iam_member acc test
remove assertion on infra in synch as we scan other iam from qa infra
2021-10-27 15:06:45 +02:00
Elie 999d4379ff
Merge pull request #1184 from cloudskiff/fix_acc_test
Fix ACC test issues
2021-10-27 14:50:21 +02:00
William Beuil 9c51730528
Create a SortableScanner for specific use case 2021-10-27 13:22:30 +02:00
Elie eca1b184ac
Merge pull request #1185 from cloudskiff/fix/make-init
Fix resources slice make init
2021-10-27 11:38:09 +02:00
William Beuil 643e496e6e
Fix resources slice make init 2021-10-27 11:30:47 +02:00
Elie 33c55d4920
Fix ACC test issues 2021-10-27 11:19:21 +02:00
sundowndev 11cd054cca test(acc): google_compute_subnetwork
add missing region argument to subnetwork resource
2021-10-27 10:49:51 +02:00
Elie 3a7c8db0e2
Merge branch 'v0.16' 2021-10-26 17:44:50 +02:00
Elie 0394cfeb19
Fix crash for google_bigquery_table 2021-10-26 17:44:02 +02:00
Elie 4e626101bc
Merge branch 'v0.16' 2021-10-26 17:18:53 +02:00
Elie fa70206080
Fixz bigquery dataset crash 2021-10-26 17:18:34 +02:00
sundowndev 1aba4a2632 test(acc): azurerm_ssh_public_key 2021-10-26 15:09:15 +02:00
sundowndev 610767df58 feat: add azurerm_ssh_public_key 2021-10-26 15:09:15 +02:00
Elie 382088487b
Merge pull request #1174 from cloudskiff/fix_lock_read_log_error
Fix lock file read log error
2021-10-26 14:38:44 +02:00
Elie 1370ed6f4b
Fix lock file read log error 2021-10-26 14:05:26 +02:00
Elie 6a2e45558c
Add google_sql_database_instance 2021-10-26 11:46:11 +02:00
William Beuil 9efa64200b
Add aws_api_gateway_gateway_response resource 2021-10-25 18:02:27 +02:00
Elie d583cef284
Add google_bigtable_table 2021-10-25 17:22:30 +02:00
Elie 208f9ce897
Add google_bigtable_instance 2021-10-25 17:07:17 +02:00
Elie ceb7da829f
Add google_compute_disk 2021-10-25 16:52:50 +02:00
Elie 03f52e0c7d
Merge pull request #1154 from cloudskiff/feat/add_google_compute_subnetwork
Add google_compute_subnetwork resource
2021-10-25 16:44:44 +02:00
sundowndev a113176b67 feat: add google_compute_subnetwork 2021-10-25 16:35:45 +02:00
sundowndev 1bbc3c7b56 feat: add azurerm_image resource 2021-10-25 15:46:03 +02:00
Martin Guibert 4ad4b76725 add support for azurerm_private_dns_zone 2021-10-25 14:05:14 +02:00
Elie 35e2b486ad
Merge pull request #1167 from cloudskiff/test/azurerm_lb_metadata
Add missing tests for azurerm_lb metadata
2021-10-25 13:55:28 +02:00
William Beuil 6f75e08bdb
Add aws_api_gateway_method_response resource 2021-10-25 12:19:45 +02:00
William Beuil 18a77ff325
Add missing metadata api gateway tests 2021-10-25 12:09:28 +02:00
Raphaël bcc73f56af
test: add missing tests for azurerm_lb metadata 2021-10-25 12:08:50 +02:00
William Beuil 712883d761
Add aws_api_gateway_model 2021-10-25 11:35:10 +02:00
Raphaël 0d3f66e44c
test(acc): azurerm_lb
remove irrelevant filter flag
2021-10-25 11:01:10 +02:00
sundowndev 7a533a2da1 test: azurerm_lb 2021-10-22 17:52:32 +02:00
sundowndev 1ad7f2fc6e feat: add azurerm_lb 2021-10-22 16:20:10 +02:00
William BEUIL 3a3fe7ae4a
Merge branch 'main' into res/api_gtw_method 2021-10-22 14:15:26 +02:00
William BEUIL c2b368a7dc
Merge branch 'main' into res/api_gtw_method 2021-10-22 14:06:00 +02:00
Elie cb2b2fbf23
Add google_cloudfunctions_function 2021-10-22 13:44:20 +02:00
Elie cc173e08f5
Fix azure provider configuration 2021-10-22 11:04:48 +02:00
William Beuil d518d921e5
Add aws_api_gateway_method resource 2021-10-22 10:26:47 +02:00
Martin 03b0fcbb34
Merge branch 'main' into fea/ignore_default_serviceaccount_membership 2021-10-21 18:13:31 +02:00
Martin Guibert 3db486635a filter membership fo default serviceaccount if not in strict mode 2021-10-21 18:12:57 +02:00
Elie f07cc4ed6e
Merge pull request #1129 from cloudskiff/res/api_gtw_base_path_mapping
Add aws_api_gateway_base_path_mapping resource
2021-10-21 17:38:58 +02:00
Elie 97a4c29363
Merge pull request #1143 from cloudskiff/add_google_compute_address
Add google_compute_address
2021-10-21 16:38:34 +02:00
sundowndev 64e900d733 test: flags in metadata 2021-10-21 16:14:11 +02:00
Elie 4295f68f6d
Add google_compute_address 2021-10-21 16:09:09 +02:00
Elie 52ffc86bed
Add google_bigquery_table 2021-10-21 15:32:10 +02:00
William Beuil 828e0c7c3a
Add aws_api_gateway_base_path_mapping resource 2021-10-21 11:12:58 +02:00
Martin Guibert a6ea09e4c8 implement iam for project and make middleware generics 2021-10-20 16:57:57 +02:00
Martin 5ea091c37c
Merge branch 'main' into fea/google_project_iam_bindings 2021-10-20 16:19:59 +02:00
Raphaël 930b027a1a fix: add deep mode flag for compute_network 2021-10-20 15:40:07 +02:00
sundowndev 9dee52e086 test: aws_rds_cluster
The test was failing due to resource IDs being identical.
2021-10-20 14:37:57 +02:00
sundowndev 6718cfb3e4 fix: aws_rds_cluster deep mode 2021-10-20 10:34:33 +02:00
Martin Guibert 9466e35393 use gitignore in tests and remove useless lock in repository 2021-10-19 18:26:30 +02:00
Martin Guibert b94c41777a implement iam for project and make middleware generics 2021-10-19 18:20:10 +02:00
Elie 70d0d0e6fa
Merge branch 'main' into add_google_bigquery_dataset 2021-10-19 17:04:47 +02:00
sundowndev cfb5697376 fix: aws_rds_cluster_instance deep mode 2021-10-19 16:54:45 +02:00
Elie 9d91238c83
Add google_bigquery_dataset 2021-10-19 15:44:52 +02:00
Elie 7b84f9c1e8
Merge pull request #1123 from cloudskiff/res/api_gtw_rest_api_policy
Add aws_api_gateway_rest_api_policy resource
2021-10-19 14:27:28 +02:00
sundowndev 7ff1b60fba feat: azurerm_network_security_group deep mode 2021-10-18 17:33:23 +02:00
William Beuil 08e29d8d43
Add aws_api_gateway_rest_api_policy resource 2021-10-18 16:25:19 +02:00
sundowndev 28ab55c721 test: azurerm_network_security_group 2021-10-18 16:19:07 +02:00
sundowndev 972d78875e feat: add azurerm_network_security_group 2021-10-18 16:19:07 +02:00
sundowndev a6a5017724 fix: run provider configure anyway 2021-10-18 16:06:08 +02:00
Elie 18850b3719
Merge pull request #1103 from cloudskiff/feat/add_azurerm_postgresql_database
Add azurerm_postgresql_database resource
2021-10-18 15:07:41 +02:00
sundowndev 4cfc5fd70c refactor(azurerm): postgresql repo 2021-10-18 11:53:58 +02:00
sundowndev 673ff227bf fix: google_compute_instance_group metadata 2021-10-18 11:03:19 +02:00
sundowndev b4b04f89f9 test: azurerm_postgresql_database 2021-10-18 10:45:56 +02:00
sundowndev fd3a0601db refactor: lock cache for ListAllServers method 2021-10-18 10:45:56 +02:00
sundowndev 7b90ff33df test(acc): azurerm_postgresql_*
use random_password
2021-10-18 10:45:56 +02:00
sundowndev 02218789c7 feat: add azurerm_postgresql_database resource 2021-10-18 10:45:56 +02:00
sundowndev c59c36a86c test: google_compute_instance_group
state reader tests
2021-10-18 10:23:55 +02:00
sundowndev dcc0130237 feat: add google_compute_instance_group 2021-10-18 10:23:55 +02:00
sundowndev 1a063f1d41 feat: implement discriminant func 2021-10-15 16:52:45 +02:00
William Beuil f321a1df3b
Add aws_api_gateway_request_validator resource 2021-10-15 16:32:46 +02:00
Elie 33e119fa00
Add google_dns_managed_zone 2021-10-15 15:16:00 +02:00
Elie 68103be734
Use driftignore in acc tests 2021-10-15 11:44:46 +02:00
Raphaël 6cddf78c10
Merge branch 'main' into fix/targetDeepModeFlag 2021-10-14 16:43:16 +02:00
Elie e9dc238c94
Add resource type hierarchy for smart ignore 2021-10-14 15:08:25 +02:00
Elie ca49fa2921
Merge pull request #1124 from cloudskiff/add_azurerm_public_ip
Add azurerm_public_ip
2021-10-13 16:31:24 +02:00
Elie a7bab51465
Add azurerm_public_ip 2021-10-13 16:17:59 +02:00
Martin Guibert d6f1cb1253 fix TestAcc_Google_StorageBucketIAMMember 2021-10-13 11:16:42 +02:00
Raphaël 04b364fadb
fix: add missing deep mode flag
aws_appautoscaling_target is implemented in deep mode but we forgot to enable it
2021-10-12 15:40:26 +02:00
Elie fe934bff20
Merge pull request #1120 from cloudskiff/fix/api_gtw_resource_middleware
Fix middleware when matching api_gateway_resource
2021-10-12 10:19:32 +02:00
Elie 5f9437ef0c
Merge pull request #1105 from cloudskiff/feat/providerNameTelemetry
Add provider name to telemetry collector
2021-10-11 16:53:57 +02:00
William Beuil ee3af65fa8
Fix middleware when matching api_gateway_resource 2021-10-11 16:37:44 +02:00
Elie 44d111822b
Merge pull request #1101 from cloudskiff/feat/add_azurerm_postgresql_server
Add azurerm_postgresql_server resource
2021-10-11 16:33:57 +02:00
Elie d0224896be
Merge branch 'main' into fix_parallel_caching 2021-10-11 16:09:03 +02:00
Elie add277c5b2
Merge branch 'main' into feat/providerNameTelemetry 2021-10-11 16:01:51 +02:00
Elie 26d70d4c7d
Add lock for cache concurrent calls 2021-10-11 15:53:46 +02:00
Martin Guibert 9b8da71e1d fix incorrect conversion and filter for bucket iam bindings 2021-10-11 12:09:38 +02:00
sundowndev bbc9f7fcf0 feat: add provider name to telemetry 2021-10-08 16:01:03 +02:00
William Beuil 0cba5ac8f7
Add aws_api_gateway_vpc_link resource 2021-10-08 15:31:04 +02:00
sundowndev 6d5dbd935b fix: add ScalableDimension field in the scan output 2021-10-08 12:02:51 +02:00
Elie 20db454278
Add azurerm_route 2021-10-07 16:03:17 +02:00
sundowndev 24df3f0b94 feat: add azurerm_postgresql_server resource 2021-10-07 15:19:39 +02:00
Elie b8423c6717
Merge pull request #1096 from cloudskiff/res/api_gtw_domain_name
Add api_gateway_domain_name resource
2021-10-07 14:57:56 +02:00
Elie 0e27cd8846
Merge pull request #1083 from cloudskiff/fea/google_storage_bucket_iam_members
Add storage bucket iam members and policies
2021-10-07 14:57:21 +02:00
Elie 158d926097
Merge branch 'main' into res/api_gtw_domain_name 2021-10-07 14:28:31 +02:00
Elie 6acb9f9136
Merge pull request #1097 from cloudskiff/fix/api_gtw_authorizers
Fix api_gateway_authorizer list signature + tests
2021-10-07 14:28:19 +02:00
Elie 15f2004179
Merge branch 'main' into res/api_gtw_domain_name 2021-10-07 14:26:37 +02:00
Elie 0949440db1
Merge branch 'main' into fea/google_storage_bucket_iam_members 2021-10-07 14:17:17 +02:00
Elie 01639e1101
Merge branch 'main' into add_azurerm_firewall 2021-10-07 14:08:11 +02:00
Elie 6d0e5afbd5
Add azurerm_firewall 2021-10-07 11:17:46 +02:00
sundowndev 71c84daff7 fix(acc): azurerm_container_registry 2021-10-07 10:34:21 +02:00
Martin Guibert c5978eccd8 fix incorrect naming 2021-10-06 17:03:47 +02:00
Martin Guibert 9dc7d8d5d4 transform every bucket iam into members 2021-10-06 16:59:35 +02:00
Martin Guibert 7cd13a917d add support for google_storage_bucket_iam_policy, add tests 2021-10-06 16:59:35 +02:00
Martin Guibert 5f4f56c834 add support for google_storage_bucket_iam_member 2021-10-06 16:59:34 +02:00