terracognita

Reads from existing public and private cloud providers (reverse Terraform) and generates your infrastructure as code on Terraform configuration

MIT License

Downloads
25
Stars
2.2K
Committers
21

Bot releases are hidden (Show)

terracognita - v0.8.4 Latest Release

Published by cycloid-machine over 1 year ago

Added

  • Azurerm added new resources: azurerm_recovery_services_vault, azurerm_backup_policy_vm, azurerm_backup_protected_vm, azurerm_data_protection_backup_instance_disk,  azurerm_data_protection_backup_policy_disk
    (Issue #383)
  • Azurerm now can use the --tags filter
    (Issue #361)
  • Ability declare module variables on map types
    (Issue #365)
  • Support for ExactlyOneOf configuration for the schema so the generated HCL is correct
    (Issue #340)

Changed

  • Update azurerm template for irregular cases in List method arguments order
    (Issue #383)
  • Validation for specific provider tags to ignore is done now on the Provider implementation
    (Issue #358)
  • Added new Azure resource: azurerm_api_management
    (PR#363)
  • Added new Azure resource: azurerm_backup_policy_vm_workload
    (PR#386)

Fixed

  • Nested HCL Maps now are written correctly
    (Issue #337)
  • Cyclic dependencies between resources now it's fixed
    (Issue #379)
  • aws_db_subnet_group that have name: "default" are now ignored as they are managed by AWS
    (Issue #376)
  • aws_alb_listener_rule and aws_lb_listener_rule that have priority: 99999 are now ignored as they are managed by AWS
    (Issue #375)
terracognita - v0.8.3

Published by cycloid-machine over 1 year ago

Fixed

  • Azurerm force create_option="Attach" with azurerm_virtual_machine_data_disk_attachment
    (PR #359)
  • Azurerm azurerm_network_security_group.security_rule.protocol now has the right format
    (PR #357)

Changed

  • Interpolation now will compare value lowcasing them beforehand
    (PR #356)
terracognita - v0.8.2

Published by cycloid-machine over 1 year ago

Added

  • Added new Azure resource: azurerm_virtual_machine_data_disk_attachment
    (PR#334)
  • Allow the writing of tf/provider into a separated config key
    (PR#319)
  • Add new aws resource: aws_ecs_task_definition
    (PR#333)
  • Added new Azure resource: azurerm_data_protection_backup_vault
    (PR#349)

Changed

  • Azure: Set a valide admin_password with azurerm_windows_virtual_machine
    (Issue #352)
  • Azure: azure: do not define external disk with azurerm_virtual_machine
    (PR #336)
  • Improved the way resource references/interpolations work, now it's more deterministic
    (Issue #346)

Fixed

  • Tags are being used again for filtering when importing
    (Issue #322)
  • Remove duplicate names from the reader cache on AzureRM
    (Issue #341)
  • Added a new Provider function to let the Provider fix resources content before writing it and fixed some AzureRM resources with it
    (Issue #322)
  • ModueleVariables now works with nested fields of array blocks
    (Issue #344)
terracognita - v0.8.1

Published by cycloid-machine about 2 years ago

Fixed

  • Bug with tfdocs, updated it to the latest version
    (PR #317)
terracognita - v0.8.0

Published by cycloid-machine about 2 years ago

Fixed

  • Repetitive blocks now have the proper variables within them
    (Issue #285)
  • Script to update providers now pushed the tag to the fork
    (PR #294)
  • aws_lb_target_group_attachment was raising a nil pointer exception
    (Issue #297)
  • fix resource name in azurerm_dns_aaaa_record and azurerm_mssql_elastic_pool and also fix caching of resources
    (Issue #303)
    (Issue #305)

Added

  • Updated Contribute GCP section, added template modularity and added new GCP resources: google_dns_policy, google_billing_subaccount, google_sql_database, google_compute_address, google_compute_attached_disk, google_compute_autoscaler , google_compute_global_address, google_compute_image, google_compute_instance_group_manager, google_compute_instance_template, google_compute_managed_ssl_certificate, google_compute_network_endpoint_group, google_compute_route, google_compute_security_policy, google_compute_service_attachment, google_compute_snapshot, google_compute_ssl_policy, google_compute_subnetworkcloses issue #188, google_compute_target_grpc_proxy, google_compute_target_instance, google_compute_target_pool, google_compute_target_ssl_proxy, google_compute_target_tcp_proxy, google_filestore_instance, google_container_cluster,google_container_node_pool,google_redis_instance,google_logging_metric,google_monitoring_alert_policy,google_monitoring_group, google_monitoring_notification_channel,google_monitoring_uptime_check_config
    (Issue #188)
    (Issue #273)

  • Support for vSphere provider
    (Issue #296)

  • Added new AWS resources: aws_ec2_transit_gateway_peering_attachment, aws_ec2_transit_gateway_peering_attachment_accepter, aws_ec2_transit_gateway_prefix_list_reference, aws_ec2_transit_gateway_route, aws_ec2_transit_gateway_route_table_association, aws_ec2_transit_gateway_route_table_propagation, aws_ec2_transit_gateway_vpc_attachment_accepter
    (Issue #299)

  • Update tfdocs version to v0.0.0-20220809093344-d999d1c2069e and added app service azurerm resources: azurerm_linux_web_app, azurerm_linux_web_app_slot, azurerm_service_plan, azurerm_source_control_token, azurerm_static_site, azurerm_static_site_custom_domain, azurerm_web_app_active_slot, azurerm_web_app_hybrid_connection, azurerm_windows_web_app, azurerm_windows_web_app_slot
    (PR #314)

terracognita - v0.7.6

Published by cycloid-machine over 2 years ago

Changed

  • Module no longer has variables commented in it
    (Issue #290)
terracognita - v0.7.5

Published by cycloid-machine over 2 years ago

Added

  • aws resources: aws_vpc_endpoint
    (Issue #254)
  • New flag --hcl-provider-block to be able to opt out of the provider "" {} on HCL
    (Issue #250)
  • Azure resources : azurerm_managed_disk, azurerm_virtual_machine_scale_set_extension, azurerm_linux_virtual_machine,
    azurerm_linux_virtual_machine, azurerm_linux_virtual_machine_scale_set, azurerm_windows_virtual_machine, azurerm_windows_virtual_machine_scale_set, azurerm_kubernetes_cluster, azurerm_kubernetes_cluster_node_pool, azurerm_network_interface, azurerm_virtual_hub, azurerm_virtual_hub_bgp_connection, azurerm_virtual_hub_connection, azurerm_virtual_hub_ip, azurerm_virtual_hub_route_table, azurerm_virtual_hub_security_partner_provider,azurerm_mssql_database, azurerm_mssql_elasticpool,azurerm_mssql_firewall_rule,azurerm_mssql_server,azurerm_mssql_server_security_alert_policy,azurerm_mssql_server_vulnerability_assessment,azurerm_mssql_virtual_machine,azurerm_mssql_virtual_network_rule,azurerm_redis_cache,azurerm_redis_firewall_rule,azurerm_dns_zone,azurerm_dns_a_record,azurerm_dns_aaaa_record,azurerm_dns_caa_record,azurerm_dns_cname_record,azurerm_dns_mx_record,azurerm_dns_ns_record,azurerm_dns_ptr_record,azurerm_dns_srv_record,azurerm_dns_txt_record,azurerm_private_dns_zone,azurerm_private_dns_zone_virtual_network_link,azurerm_private_dns_a_record,azurerm_private_dns_aaaa_record,azurerm_private_dns_cname_record,azurerm_private_dns_mx_record,azurerm_private_dns_ptr_record,azurerm_private_dns_srv_record,azurerm_private_dns_txt_record,azurerm_lb,azurerm_lb_backend_address_pool,azurerm_lb_rule ,azurerm_lb_outbound_rule,azurerm_lb_nat_rule,azurerm_lb_nat_pool,azurerm_lb_probe,azurerm_policy_remediation,azurerm_policy_set_definition,azurerm_key_vault,azurerm_key_vault_access_policy,azurerm_application_insights,azurerm_application_insights_api_key,azurerm_application_insights_analytics_item,azurerm_application_insights_web_test,azurerm_log_analytics_workspace,azurerm_log_analytics_linked_service,azurerm_log_analytics_datasource_windows_performance_counter,azurerm_log_analytics_datasource_windows_event,azurerm_monitor_action_group,azurerm_monitor_activity_log_alert,azurerm_monitor_autoscale_setting,azurerm_monitor_log_profile,azurerm_monitor_metric_alert
    (Issue #100)
  • Added new AWS resources: aws_route_table, aws_ec2_transit_gateway, aws_ec2_transit_gateway_vpc_attachment,aws_ec2_transit_gateway_route_table, aws_ec2_transit_gateway_multicast_domain
    (Issue #286)

Changed

  • Update terraform from v0.13.5 to v1.1.9
    (PR #284)
  • Update terraform-provider-google from v3.67.0 to v4.9.0
    (PR #263)
  • Update terraform-provider-aws from v3.40.0 to v4.9.0
    (PR #263)
    (PR #284)
  • Update terraform-provider-azurerm from v1.44.0 to v3.3.0
    (PR #263)
    (PR #284)
  • AzureRM now supports multiple Resource Group Names
    (Issue #266)
  • Azure API resources update to latest version, fix caching issue in resources.go, add modularity to template for irregular cases, update Azurerm contribute readme, removed Azurerm 3.0 deprecated resources:azurerm_virtual_machine_scale_set,azurerm_sql_server, azurerm_sql_database, azurerm_sql_elasticpool, azurerm_sql_firewall_rule, azurerm_sql_server and removed temporatily support for azurerm_web_application_firewall_policy due to json issue reported on sdk
    (Issue #100)
  • Update tfdocs version to v0.0.0-20220509071309-2f31fd03120a
    (Issue #286)

Fixed

  • Issue with importing google_storage_bucket_iam_policy
    (Issue #258)
  • Removed default region used on AWS initialization now uses the one specified by the user
    (Issue #253)
  • HCL provider generation now users the Defaults instead of setting empty values
    (Issue #268)
terracognita - v0.7.4

Published by cycloid-machine about 3 years ago

Changed

  • Updated mxwriter to v1.0.4 that fixes an internal bug
    (PR #236)

Fixed

  • Google resources that do not support Labels are no longer filtered by it
    (PR #236)
  • Fix error to enable support for azurerm_resource_group
    (Issue #232)
  • TFState when generating modules now has the module on it too
    (Issue #240)
terracognita - v0.7.3

Published by cycloid-machine about 3 years ago

Added

  • aws resources: aws_autoscaling_schedule
    (PR #194)

Changed

  • Support filter with tag attribute used by AWS on aws_autoscaling_group resource
    (Issue #223)
  • Resource name improved by low casing all the options
    (Issue #225)

Fixed

  • Integration between Interpolation and Modules has been changed to not generate invalid HCL references
    (Issue #219
  • Variables names will now be normalized to be valid HCL
    (PR #219
terracognita - v0.7.2

Published by cycloid-machine about 3 years ago

Added

  • azure resources (compute): azurerm_availability_set,azurerm_image, azurerm_container_registry, azurerm_container_registry_webhook, azurerm_application_gateway, azurerm_application_security_group, azurerm_network_ddos_protection_plan, azurerm_firewall, azurerm_local_network_gateway , azurerm_nat_gateway, azurerm_network_profile, azurerm_network_security_rule, azurerm_public_ip, azurerm_public_ip_prefix, azurerm_route, azurerm_route_table, azurerm_virtual_network_gateway, azurerm_virtual_network_gateway_connection, azurerm_virtual_network_peering, azurerm_web_application_firewall_policy, azurerm_storage_account, azurerm_storage_blob, azurerm_storage_queue, azurerm_storage_share, azurerm_storage_table, azurerm_mariadb_configuration, azurerm_mariadb_database, azurerm_mariadb_firewall_rule, azurerm_mariadb_server, azurerm_mariadb_virtual_network_rule, azurerm_mysql_configuration, azurerm_mysql_database, azurerm_mysql_firewall_rule, azurerm_mysql_server, azurerm_mysql_virtual_network_rule, azurerm_postgresql_configuration, azurerm_postgresql_database, azurerm_postgresql_firewall_rule, azurerm_postgresql_server, azurerm_postgresql_virtual_network_rule, azurerm_sql_database, azurerm_sql_elasticpool, azurerm_sql_firewall_rule,azurerm_sql_server
    (Issue #100
  • provider and terraform blocks to the HCL generation
    (Issue #136)

Changed

  • Update aws resources regarding missing pagination and filter
    (PR #202)
  • Resource names now are generated removing invalid characters instead just assigning a random alphanumeric value
    (Issue #208)

Fixed

  • Import with aws_alb_target_group_attachment now validates if the needed values are present
    (Issue #213)
terracognita - v0.7.1

Published by cycloid-machine over 3 years ago

Added

  • aws resources: aws_eip, aws_dynamodb_global_table, aws_dynamodb_table, aws_ecs_cluster, aws_ecs_service, aws_athena_workgroup, aws_glue_catalog_database, aws_glue_catalog_table, aws_fsx_lustre_file_system, aws_batch_job_definition, aws_dax_cluster, aws_directory_service_directory, aws_dms_replication_instance, aws_dx_gateway, aws_efs_file_system, aws_eks_cluster, aws_elasticache_replication_group, aws_elastic_beanstalk_application, aws_emr_cluster, aws_internet_gateway, aws_kinesis_stream, aws_lightsail_instance, aws_media_store_container, aws_mq_broker, aws_nat_gateway, aws_neptune_cluster, aws_rds_cluster, aws_rds_global_cluster, aws_redshift_cluster, aws_sqs_queue, aws_storagegateway_gateway, aws_vpn_gateway.
    (PR #194)
  • Extra validations for the resource names
    (PR #201)

Changed

  • Updated tfdocs to have missing resources that where causing import errors
    (Issue #199)

Fixed

  • Skip aws RequestError errors generaly caused by service not available in a region
    (Issue #171)
terracognita - v0.7.0

Published by cycloid-machine over 3 years ago

Fixed

  • tc_category no longer added to the generated HCL
    (PR #187)
  • Skip resources that are not Importable from the Provider
    (PR #191)

Changed

  • Migrate all the logic to use terraform-plugin-sdk/v2
    (Issue #151)
terracognita - v0.6.4

Published by cycloid-machine over 3 years ago

Changed

  • AWS error handling from Message to Code and added 'AccessDeniedException'
    (Issue #171)

Fixed

  • --labels flag is correctly read now on Google CMD
    (PR #180)
terracognita - v0.6.3

Published by cycloid-machine over 3 years ago

Fixed

  • Empty array values on modules now are generated correctly and not failing
    (PR #174)
terracognita - v0.6.2

Published by cycloid-machine over 3 years ago

We had an error on the Pipeline of the last release so we made a quick patch release to fix it

terracognita - v0.6.0

Published by cycloid-machine almost 4 years ago

Added

  • state dependencies between resources using dependencies
    (PR #131)
  • aws resource: aws_alb_listener_certificate, aws_lb_cookie_stickiness_policy, aws_lb_target_group_attachment, aws_volume_attachment, aws_elasticsearch_domain, aws_elasticsearch_domain_policy, aws_lambda_function, aws_api_gateway_rest_api, aws_api_gateway_deployment, aws_api_gateway_stage, aws_api_gateway_resource.
    (PR #128)
  • cli option to deactivate interpolation
    (PR #133)
  • AWS support for profile/config
    (Issue #48)
  • Azure Virtual Desktop resources
    (PR #145)
  • Log File to always write the last -v logs to
    (Issue #149)
  • Authentication using AWS session token
    (Issue #154)
  • Support for Homebrew
    (Issue #153)

Changed

  • HCL lib version from V1 to V2 and all the implications
    (PR #135)
  • All the Provider and Terraform versions
    (PR #143)

Fixed

  • Crashing import by adding an error handling on provider errors
    (Issue #138)
  • No more issues for HCL2 when generated
    (PR #148)
terracognita - v0.5.1

Published by cycloid-machine over 4 years ago

Fixed

  • Error with the Resource name always being the alphanumeric instead of the Tag Name
    (PR #124)
  • Pagination and nil pointer errors
    (PR #123)
  • Error with mutual interpolation between resources
    (PR #125)
terracognita - v0.5.0

Published by cycloid-machine over 4 years ago

Added

  • provider resource: implement SetImporter to set schema.Resource.Importer when resource is not importable.
    (PR #116)
  • aws resource: aws_iam_group_membership
    (PR #116)
  • google resources: google_compute_backend_bucket, google_project_iam_custom_role, google_storage_bucket_iam_policy, google_compute_instance_iam_policy
    (PR #97)
  • aws: aws_lb, aws_lb_listener, aws_lb_listener_rule, aws_lb_target_group
    (PR #96)
  • aws: Pagination of all the functions on the reader
    (Issue #13)

Changed

  • aws resources: do not write group_membership if the user has no groups.
    (issue #111)
  • filter: update IsExcluded and add IsIncluded to verify multiple resources.
    (PR #96)
  • Provide filters to resource functions instead of tags only
    (PR #92)
  • Upgraded all the Provider and Terraform versions
    (PR #114)

Fixed

  • Error when importing aws_iam_user_group_membership without groups
    (Issue #104)
  • util/retry now ignores the internal errors format
    (Issue #106)
terracognita - v0.4.0

Published by cycloid-machine over 4 years ago

Added

  • aws resources: aws_db_subnet_group, aws_key_pair, aws_vpc_peering_connection, aws_alb_target_group, aws_alb_listener, aws_alb_listener_rule
    (PR #87)
  • Terraform variable interpolation is available on string values
    (PR #81)
  • aws resource: aws_db_parameter_group, aws_iam_access_key, aws_cloudwatch_metric_alarm, aws_autoscaling_policy, aws_iam_user_ssh_key
    (PR #78)
  • New flag --target to allow specific resource+id import
    (Issue #40)
  • New AzureRM provider
    (PR #88)
terracognita - v0.3.0

Published by cycloid-machine almost 5 years ago

Added

  • google resource: ComputeDisk, StorageBucket and SqlDatabaseInstance
    (PR #73)
  • google resource: ComputeSSLCertificate, ComputeTargetHTTPProxy, ComputeTargetHTTPSProxy and ComputeURLMap
    (PR #67)
  • google resource: ComputeHealthCheck, ComputeInstanceGroup and ComputeBackendService
    (PR #64)
  • aws resource: aws_launch_configuration, aws_launch_template and aws_autoscaling_group
    (PR #68)
  • google resource: compute instance
    (PR #56)
  • google resource: compute networks and compute firewalls
    (PR #61)
  • google reader functions are now generated from go:generate
    (PR #65)

Changed

  • During import if a resource is invalid we assume it can be skipped
    (PR #68)
  • 'raws' lib to be an internal library instead of a dependency
    (Issue #69)

Fixed

  • '--region' flag working for different subcommands
    (PR #63)