Commit Graph

226 Commits (94d7c397f72b164bf0e47a43e888ea216226f1a9)

Author SHA1 Message Date
William Beuil c2769838d0
Fix acc tests 2021-05-18 17:46:51 +02:00
Martin 0bfd06980f
Merge branch 'main' into fix/sns_migration_error 2021-05-18 17:36:30 +02:00
Martin Guibert e760507d61 fix bug introduced by sns migration to new archi 2021-05-18 17:23:44 +02:00
Elie e46135671b
Refacto lambda resources 2021-05-18 14:54:09 +02:00
Elie 3fcd1d91e8
Merge branch 'main' into fea/new_resource_migration 2021-05-18 10:46:18 +02:00
Elie b06e33b1a2
Merge branch 'main' into refacto_nat_gtw 2021-05-18 10:18:48 +02:00
Elie 37abb38a15
Refacto aws route53 resources 2021-05-18 10:02:45 +02:00
Martin Guibert ce98460460 fix matchby in tests 2021-05-17 18:58:03 +02:00
Martin Guibert efdf8ab43b ,migrate sqs_queue_policy and sqs_default_queue_policy 2021-05-17 18:57:32 +02:00
Martin Guibert 6283219f67 migrate subnet and default subnet 2021-05-17 18:56:59 +02:00
Martin Guibert 8c9b42c022 migrate vpc 2021-05-17 18:56:31 +02:00
William Beuil fe2f136c70
Refacto aws_nat_gateway 2021-05-17 18:11:47 +02:00
Elie 0bccc10850
Merge branch 'main' into refacto_internet_gtw 2021-05-17 17:58:38 +02:00
Elie e68aa82dbf
Merge branch 'main' into refacto_kms 2021-05-17 17:32:15 +02:00
Elie cafde28e21
Refacto aws_iam_access_key 2021-05-17 17:06:25 +02:00
William Beuil 59ecb3541c
Refacto aws_internet_gateway 2021-05-17 13:27:40 +02:00
William Beuil ac3c4e6b46
Refacto aws_kms_key and aws_kms_alias 2021-05-17 12:09:35 +02:00
Elie 5dbdbcbdb4
Refacto aws_eip 2021-05-17 11:38:46 +02:00
Elie 550f5e84ae
Refacto IAM resources and aws_key_pair 2021-05-11 16:04:59 +02:00
Martin Guibert cac46cf585 add sns_topic_policy 2021-05-11 12:22:44 +02:00
Martin Guibert dc41b780d1 add sns topic subscription 2021-05-11 12:22:44 +02:00
William Beuil 7feb45f5dd
Fix aws_default_route_table, add aws_route_table and add aws_route 2021-05-10 16:33:43 +02:00
William Beuil 831e80678a
Add aws_ecr_repository 2021-05-10 16:33:42 +02:00
sundowndev 62f6f997b7 feat: display ec2 instance name when tag name exist 2021-05-10 15:02:42 +02:00
Elie ba3dda704c
Refacto remaining s3 resources 2021-05-06 17:14:00 +02:00
Elie 98a43acd14
Refacto s3 bucket 2021-05-06 15:36:24 +02:00
William Beuil 34bfd19a59
Fix signature of attributes 2021-05-06 12:55:19 +02:00
William Beuil eda619f107
Updates 2021-05-04 18:01:21 +02:00
William Beuil 18d406178e
Add aws_ebs_volume 2021-05-04 13:41:06 +02:00
William Beuil 2b5ba194a1
Add aws_instance 2021-05-04 13:41:06 +02:00
William Beuil 86a3989d49
Add aws_ebs_snapshot 2021-05-04 13:41:06 +02:00
William Beuil 356e8b9004
Add aws_dynamodb_table 2021-05-04 13:41:06 +02:00
William Beuil 1c76b65caa
Add aws_default_subnet 2021-05-04 13:41:06 +02:00
William Beuil ef935fb77f
Add aws_default_security_group 2021-05-04 13:41:05 +02:00
William Beuil d618139eac
Add aws_db_subnet_group 2021-05-04 13:41:05 +02:00
William Beuil b7e38f9e26
Add aws_db_instance 2021-05-04 13:41:05 +02:00
William Beuil e25c0ff868
Add aws_ami 2021-05-04 13:41:05 +02:00
Elie 15779ae050
Set terraform version for latest acceptance test 2021-05-04 09:52:52 +02:00
Elie ef492ae0c0
Merge branch 'main' into refact/ACC_tests 2021-05-03 11:41:21 +02:00
Elie 4a238822b9 Fix cloudfront acc test 2021-04-27 17:53:07 +02:00
Martin Guibert 80687e5029
Add hybrid resource behavior 2021-04-23 17:07:35 +02:00
sundowndev f0f36d010d feat: add dynamic TF versions to acceptance tests 2021-04-14 12:42:14 +02:00
sundowndev 1924900e9a chore: fix conflicts with main branch 2021-04-13 14:55:10 +02:00
sundowndev 724975fb72 fix: false positive on field InstanceInitiatedShutdownBehavior 2021-04-13 14:40:07 +02:00
sundowndev 291659df05 refactor(aws): NormalizeForState method 2021-04-13 14:02:50 +02:00
sundowndev b4f6dc9ef7 test(acc): delete useless resource assets 2021-04-13 14:02:50 +02:00
Louis TOUSSAINT f8102fa326 Issue 366: Fix false positive on aws_iam_policy_attachment 2021-04-13 14:02:50 +02:00
Raphaël d7fc812cf8 chore: fix a typo in comment 2021-04-13 14:02:50 +02:00
Louis TOUSSAINT f6479c334d Issue 375: Fix false positive for route53_record Records and Ttl field +
typo
2021-04-13 14:02:50 +02:00
Louis TOUSSAINT a087e3af65 Issue 375: Fix pointer on aws_route53_record Records field to avoid crash when it's null 2021-04-13 14:02:50 +02:00
sundowndev 64050b34f9 fix(resource): ignore FinalSnapshotIdentifier field 2021-04-13 14:02:50 +02:00
Louis TOUSSAINT 0c07b278ef Issue 369: Remove LastModified field for aws_lambda_function from drift reports 2021-04-13 14:01:35 +02:00
Elie 7c112a8bfe Add tests for driftctl 2021-03-31 17:53:36 +02:00
William Beuil 0881b44577
Refactoring to filter on Cty.Value 2021-03-29 10:28:39 +02:00
Elie e238772b70 Revert "Disable event source mapping acc test in CI"
This reverts commit 4ac3ca9e59.
2021-03-26 09:55:31 +01:00
Martin Guibert eaef50ce9b remove table replica to speed up acc tests 2021-03-25 11:34:23 +01:00
Elie cf5ab98f83 Add more timeout for dynamodb table creation 2021-03-25 11:05:19 +01:00
Elie 4ac3ca9e59 Disable event source mapping acc test in CI 2021-03-25 11:00:25 +01:00
Martin Guibert 53103f667c when sns subscitpion is pending prevent crash and show an alert 2021-03-17 17:59:02 +01:00
Martin Guibert 6e67a5d832 add date to res names for dynamo and lambda event source mapping 2021-03-16 15:24:32 +01:00
Elie 16a3c44624
Merge branch 'main' into fix_aws_db_instance 2021-03-11 11:12:11 +01:00
Elie 64ee24ced8
Fix false positive drift on aws_db_instance 2021-03-11 11:02:20 +01:00
Elie 8769517c49
Fix false positive in aws_db_subnet_group 2021-03-11 10:56:50 +01:00
Martin Guibert 35dc02099f add pointer to user roles and groups
users, roles and groups can be nil but gocty refuse to deserialize in
this case
2021-03-04 17:44:46 +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
William Beuil 30a9d5cc2d
Add kms_key 2021-02-25 10:44:37 +01:00
Elie 9f2ac63469
Merge branch 'main' into fix/cloudfront 2021-02-25 10:14:27 +01:00
William Beuil e515c8195f
Update normalization 2021-02-24 15:13:17 +01:00
Elie 5bf6a4ad7a
Add acc test 2021-02-24 14:19:08 +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
Martin Guibert 73ffe8280f add support for dynamodb_table 2021-02-11 18:18:08 +01:00
Elie 74f9a2cdfc
Merge branch 'main' into better_error_handling 2021-02-10 15:00:34 +01:00
Elie 5e0484ac9d
Use errors.Errorf 2021-02-10 14:37:59 +01:00
Martin Guibert 5be35dbb0f add polling for sns acc tests 2021-02-10 10:59:37 +01:00
Elie b2cf465aeb
Use pkg/errors to view stack on sentry 2021-02-09 19:43:39 +01:00
Elie e30ab6eb2b
Fix acc test lockfile diffs 2021-02-09 18:12:49 +01:00
Elie 3dacdc8fea
Merge branch 'main' into issue_184_lotoussa 2021-02-09 14:01:14 +01:00
Louis TOUSSAINT 2e0a36e9d8 ISSUE 184: Create test file for aws_iam_access_key stringer 2021-02-09 13:29:35 +01:00
Louis TOUSSAINT 9679667bda ISSUE 184: Improve aws_iam_access_key_ext output by creating stringer 2021-02-09 11:00:28 +01:00
Martin Guibert 0916a37d7e fix policies in topic subscription not beeing tag as jsonstring 2021-02-09 10:52:27 +01:00
Elie bc8b1f53a0
Merge pull request #228 from cloudskiff/fix_default_drift_sns_topic
Fix false positive drifts on aws_sns_topic
2021-02-08 18:43:14 +01:00
Elie 2f7fa28622
Fix false positive drifts on aws_sns_topic 2021-02-08 18:38:57 +01:00
Elie 03af2ca770
Fix policy displayed inline 2021-02-08 18:36:20 +01:00
Elie a956cf938a
Merge branch 'main' into issues_79_lotoussa 2021-02-08 15:35:19 +01:00
Louis TOUSSAINT 04039f7aff ISSUE 79: Create a more readable aws_route53_zone output 2021-02-08 13:46:36 +01:00
Louis TOUSSAINT 738d2234ee ISSUE 79: Create a more readable aws_route53_record output 2021-02-08 13:46:32 +01:00
Martin Guibert 18f7ad6bb8 add support for aws_sns_topic_subscription 2021-02-08 12:09:38 +01:00
Elie bc0c052f4b
Merge branch 'main' into fix_s3_acc_test_collisions 2021-02-05 16:15:41 +01:00
Elie 14e742a4e6
Add random string in s3 acc test bucket name 2021-02-05 16:07:21 +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
William Beuil dcee6fd6b3
Add retry mechanism for polling, use it to poll sqs queues during acc tests 2021-02-04 22:16:18 +01:00
Martin Guibert 06469bd62d add acceptency test 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 04fe9c4d40
Fix unexpected deleted resources in acceptance tests
Cobra cmd seems to return flag twice when executed multiples times
2021-02-03 19:20:21 +01:00
Elie a8f0300405
Handle invalid route crash in middlewares 2021-02-03 16:24:55 +01:00
Elie 8963a4c029
Add CI config to schedule acceptance tests 2021-02-02 18:48:39 +01:00
Elie f06a426f90
Fix acceptance test issues
- Set all test AZ to us-east-1
- Use terraform overriden env in PreCheck() to ensure mutations are
  executed with read write credentials
- Fix hidden error in aws_instance test (tag creation failure was not
  handled
- Minor fmt fix
2021-01-29 18:36:26 +01:00
Elie 046c4ae04f
Fix false positive drift on aws_iam_user 2021-01-25 11:35:17 +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
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 06abff67ba
Add support for aws_subnet and aws_default_subnet 2021-01-11 18:16:16 +01:00
William Beuil 71d0d7d224
Change computed field logic 2021-01-11 17:34:04 +01:00
Elie 1a05e3ef33
Merge branch 'main' into fix_crash_for_s3_buckets 2021-01-07 10:18:36 +01:00
Elie 8a06eaa318
Fix crash for buckets in us-east-1 2021-01-07 10:06:08 +01:00
Elie c83b538d6a
Several improvements on acceptance tests
- Add filter on aws_instance test
- Add terraform locks
- Do not run terraform init if already done previously
- Do not use chdir in tests (it could cause race if we want to switch to parallel tests, uses --from arg instead)
- Handle terraform destroy errors
2021-01-06 17:57:32 +01:00
William Beuil 563f1a9ed3
Fix records that has the same FQDN 2021-01-06 14:44:09 +01:00
William Beuil 1bde15eb6c
Add acceptance test 2021-01-04 15:51:22 +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
Stephane Jourdan 4f336a30a1 move deprecated version out of provider 2020-12-14 11:03:42 +01:00
Elie f4714af0cc
Fix acceptance tests
- Better terraform error output
- Remove terraform version constraint in test files
2020-12-14 10:50:45 +01:00
Martin Guibert 23e7d14707 Add the same normalization from state and remote 2020-12-11 11:45:33 +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