From db6ece3b742ce7ced0d5818a0655a5e16e60002f Mon Sep 17 00:00:00 2001 From: "Cem Mergenci, PhD" Date: Tue, 29 Oct 2024 18:43:59 +0300 Subject: [PATCH] `nolint:gocyclo` resource configurations (#1530) --- config/acm/config.go | 2 +- config/acmpca/config.go | 2 +- config/apigateway/config.go | 2 +- config/apigatewayv2/config.go | 2 +- config/apprunner/config.go | 2 +- config/appstream/config.go | 2 +- config/athena/config.go | 2 +- config/autoscaling/config.go | 2 +- config/backup/config.go | 2 +- config/bedrockagent/config.go | 2 +- config/budgets/config.go | 2 +- config/cloudformation/config.go | 2 +- config/cloudfront/config.go | 2 +- config/cloudsearch/config.go | 2 +- config/cloudwatch/config.go | 2 +- config/cloudwatchevents/config.go | 2 +- config/cloudwatchlogs/config.go | 2 +- config/codeartifact/config.go | 2 +- config/cognitoidentity/config.go | 2 +- config/cognitoidp/config.go | 2 +- config/cur/config.go | 2 +- config/datasync/config.go | 2 +- config/dax/config.go | 2 +- config/devicefarm/config.go | 2 +- config/directconnect/config.go | 2 +- config/dms/config.go | 2 +- config/docdb/config.go | 2 +- config/ds/config.go | 2 +- config/dynamodb/config.go | 2 +- config/ebs/config.go | 2 +- config/ec2/config.go | 2 +- config/ecr/config.go | 2 +- config/ecrpublic/config.go | 2 +- config/ecs/config.go | 2 +- config/efs/config.go | 2 +- config/eks/config.go | 2 +- config/elb/config.go | 2 +- config/firehose/config.go | 2 +- config/fsx/config.go | 2 +- config/gamelift/config.go | 2 +- config/globalaccelerator/config.go | 2 +- config/glue/config.go | 2 +- config/grafana/config.go | 2 +- config/iam/config.go | 2 +- config/identitystore/config.go | 2 +- config/iot/config.go | 2 +- config/kafkaconnect/config.go | 2 +- config/kendra/config.go | 2 +- config/kinesis/config.go | 2 +- config/kinesisanalytics/config.go | 2 +- config/kinesisanalyticsv2/config.go | 2 +- config/kms/config.go | 2 +- config/lakeformation/config.go | 2 +- config/lambda/config.go | 2 +- config/licensemanager/config.go | 2 +- config/medialive/config.go | 2 +- config/memorydb/config.go | 2 +- config/mq/config.go | 2 +- config/mwaa/config.go | 2 +- config/neptune/config.go | 2 +- config/networkfirewall/config.go | 2 +- config/networkmanager/config.go | 2 +- config/opensearchserverless/config.go | 2 +- config/opsworks/config.go | 2 +- config/organization/config.go | 2 +- config/osis/config.go | 2 +- config/qldb/config.go | 2 +- config/ram/config.go | 2 +- config/redshift/config.go | 2 +- config/redshiftserverless/config.go | 2 +- config/rolesanywhere/config.go | 2 +- config/route53/config.go | 2 +- config/route53recoverycontrolconfig/config.go | 2 +- config/route53resolver/config.go | 2 +- config/s3/config.go | 2 +- config/sagemaker/config.go | 2 +- config/servicecatalog/config.go | 2 +- config/servicediscovery/config.go | 2 +- config/sfn/config.go | 2 +- config/sns/config.go | 2 +- config/sqs/config.go | 2 +- config/ssoadmin/config.go | 2 +- config/transfer/config.go | 2 +- 83 files changed, 83 insertions(+), 83 deletions(-) diff --git a/config/acm/config.go b/config/acm/config.go index 2d43d22e5a..99543b3778 100644 --- a/config/acm/config.go +++ b/config/acm/config.go @@ -9,7 +9,7 @@ import ( ) // Configure adds configurations for the acm group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_acm_certificate_validation", func(r *config.Resource) { r.References = map[string]config.Reference{ "certificate_arn": { diff --git a/config/acmpca/config.go b/config/acmpca/config.go index 55b6f2b51f..7b2b19a914 100644 --- a/config/acmpca/config.go +++ b/config/acmpca/config.go @@ -9,7 +9,7 @@ import ( ) // Configure adds configurations for the acmpca group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_acmpca_certificate_authority", func(r *config.Resource) { // NOTE(muvaf): It causes circular dependency. See https://github.com/crossplane/crossplane-runtime/issues/313 delete(r.References, "revocation_configuration.crl_configuration.s3_bucket_name") diff --git a/config/apigateway/config.go b/config/apigateway/config.go index 14d535ac7d..71b2cb7608 100644 --- a/config/apigateway/config.go +++ b/config/apigateway/config.go @@ -11,7 +11,7 @@ import ( ) // Configure adds configurations for the apigateway group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_api_gateway_rest_api", func(r *config.Resource) { config.MoveToStatus(r.TerraformResource, "policy") }) diff --git a/config/apigatewayv2/config.go b/config/apigatewayv2/config.go index b520df771f..f8b1a06797 100644 --- a/config/apigatewayv2/config.go +++ b/config/apigatewayv2/config.go @@ -11,7 +11,7 @@ import ( ) // Configure adds configurations for the apigatewayv2 group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_apigatewayv2_api_mapping", func(r *config.Resource) { r.References["api_id"] = config.Reference{ TerraformName: "aws_apigatewayv2_api", diff --git a/config/apprunner/config.go b/config/apprunner/config.go index 2b5372de74..beedb65db6 100644 --- a/config/apprunner/config.go +++ b/config/apprunner/config.go @@ -9,7 +9,7 @@ import ( ) // Configure adds configurations for the apprunner group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_apprunner_vpc_connector", func(r *config.Resource) { r.References["subnets"] = config.Reference{ TerraformName: "aws_subnet", diff --git a/config/appstream/config.go b/config/appstream/config.go index 7ea88e9be9..cf553fe4f2 100644 --- a/config/appstream/config.go +++ b/config/appstream/config.go @@ -9,7 +9,7 @@ import ( ) // Configure adds configurations for the appstream group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_appstream_fleet", func(r *config.Resource) { r.References["vpc_config.subnet_ids"] = config.Reference{ TerraformName: "aws_subnet", diff --git a/config/athena/config.go b/config/athena/config.go index c024459db4..c39ee0e172 100644 --- a/config/athena/config.go +++ b/config/athena/config.go @@ -11,7 +11,7 @@ import ( ) // Configure adds configurations for the athena group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_athena_workgroup", func(r *config.Resource) { r.References["configuration.result_configuration.encryption_configuration.kms_key_arn"] = config.Reference{ TerraformName: "aws_kms_key", diff --git a/config/autoscaling/config.go b/config/autoscaling/config.go index d20518d0b9..180b8de7e9 100644 --- a/config/autoscaling/config.go +++ b/config/autoscaling/config.go @@ -17,7 +17,7 @@ import ( ) // Configure adds configurations for the autoscaling group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_autoscaling_group", func(r *config.Resource) { // These are mutually exclusive with aws_autoscaling_attachment. config.MoveToStatus(r.TerraformResource, "load_balancers", "target_group_arns") diff --git a/config/backup/config.go b/config/backup/config.go index d98812d1e7..aa16f3e154 100644 --- a/config/backup/config.go +++ b/config/backup/config.go @@ -11,7 +11,7 @@ import ( ) // Configure adds configurations for the backup group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_backup_vault", func(r *config.Resource) { r.References["kms_key_arn"] = config.Reference{ TerraformName: "aws_kms_key", diff --git a/config/bedrockagent/config.go b/config/bedrockagent/config.go index d115b3252e..68f3aa6f80 100644 --- a/config/bedrockagent/config.go +++ b/config/bedrockagent/config.go @@ -10,7 +10,7 @@ import ( "github.com/upbound/provider-aws/config/common" ) -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_bedrockagent_agent", func(r *config.Resource) { r.References["customer_encryption_key_arn"] = config.Reference{ TerraformName: "aws_kms_key", diff --git a/config/budgets/config.go b/config/budgets/config.go index 90c8275c23..2d49960114 100644 --- a/config/budgets/config.go +++ b/config/budgets/config.go @@ -9,7 +9,7 @@ import ( ) // Configure adds configurations for the budgets group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_budgets_budget_action", func(r *config.Resource) { r.References["definition.iam_action_definition.aws_iam_role.example.name"] = config.Reference{ TerraformName: "aws_iam_role", diff --git a/config/cloudformation/config.go b/config/cloudformation/config.go index 7b155140f4..d0143c9310 100644 --- a/config/cloudformation/config.go +++ b/config/cloudformation/config.go @@ -7,7 +7,7 @@ package cloudformation import "github.com/crossplane/upjet/pkg/config" // Configure adds configurations for the cloudformation group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_cloudformation_stack_set_instance", func(r *config.Resource) { r.TerraformConfigurationInjector = func(jsonMap map[string]any, params map[string]any) error { params["region"] = jsonMap["region"] diff --git a/config/cloudfront/config.go b/config/cloudfront/config.go index 1fa20778ee..91522c8497 100644 --- a/config/cloudfront/config.go +++ b/config/cloudfront/config.go @@ -11,7 +11,7 @@ import ( ) // Configure adds configurations for the cloudfront group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_cloudfront_distribution", func(r *config.Resource) { r.UseAsync = true delete(r.References, "origin.domain_name") diff --git a/config/cloudsearch/config.go b/config/cloudsearch/config.go index 3104382d82..78ae8db86d 100644 --- a/config/cloudsearch/config.go +++ b/config/cloudsearch/config.go @@ -9,7 +9,7 @@ import ( ) // Configure adds configurations for the cloudsearch group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_cloudsearch_domain", func(r *config.Resource) { r.UseAsync = true }) diff --git a/config/cloudwatch/config.go b/config/cloudwatch/config.go index 051750ce2f..2ce5ce0aa8 100644 --- a/config/cloudwatch/config.go +++ b/config/cloudwatch/config.go @@ -11,7 +11,7 @@ import ( ) // Configure adds configurations for the cloudwatch group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_cloudwatch_metric_stream", func(r *config.Resource) { config.MarkAsRequired(r.TerraformResource, "name") r.LateInitializer = config.LateInitializer{ diff --git a/config/cloudwatchevents/config.go b/config/cloudwatchevents/config.go index 709c52f551..463c6a5a25 100644 --- a/config/cloudwatchevents/config.go +++ b/config/cloudwatchevents/config.go @@ -23,7 +23,7 @@ import ( ) // Configure adds configurations for the cloudwatchevents group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_cloudwatch_event_permission", func(r *config.Resource) { r.References["event_bus_name"] = config.Reference{ TerraformName: "aws_cloudwatch_event_bus", diff --git a/config/cloudwatchlogs/config.go b/config/cloudwatchlogs/config.go index e81966565a..0abe6fd555 100644 --- a/config/cloudwatchlogs/config.go +++ b/config/cloudwatchlogs/config.go @@ -11,7 +11,7 @@ import ( ) // Configure adds configurations for the cloudwatchlogs group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_cloudwatch_log_destination", func(r *config.Resource) { // the target_arn field is generated together with the associated // referencer fields but the auto-generated extractor refers to diff --git a/config/codeartifact/config.go b/config/codeartifact/config.go index d68b533ae1..c164a13ee7 100644 --- a/config/codeartifact/config.go +++ b/config/codeartifact/config.go @@ -11,7 +11,7 @@ import ( ) // Configure adds configurations for the codeartifact group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_codeartifact_domain", func(r *config.Resource) { r.References["encryption_key"] = config.Reference{ TerraformName: "aws_kms_key", diff --git a/config/cognitoidentity/config.go b/config/cognitoidentity/config.go index a618546071..c1c88a14ea 100644 --- a/config/cognitoidentity/config.go +++ b/config/cognitoidentity/config.go @@ -11,7 +11,7 @@ import ( ) // Configure adds configurations for the cognitoidentity group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_cognito_identity_pool", func(r *config.Resource) { r.References["saml_provider_arns"] = config.Reference{ TerraformName: "aws_iam_saml_provider", diff --git a/config/cognitoidp/config.go b/config/cognitoidp/config.go index bdac4a53e0..ff6547492a 100644 --- a/config/cognitoidp/config.go +++ b/config/cognitoidp/config.go @@ -11,7 +11,7 @@ import ( ) // Configure adds configurations for the cognitoidp group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_cognito_user_pool_client", func(r *config.Resource) { r.References["user_pool_id"] = config.Reference{ TerraformName: "aws_cognito_user_pool", diff --git a/config/cur/config.go b/config/cur/config.go index c9857c345a..ddd1f45913 100644 --- a/config/cur/config.go +++ b/config/cur/config.go @@ -9,7 +9,7 @@ import ( ) // Configure adds configurations for the cur group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_cur_report_definition", func(r *config.Resource) { r.References["s3_bucket"] = config.Reference{ TerraformName: "aws_s3_bucket", diff --git a/config/datasync/config.go b/config/datasync/config.go index fa7ca81c97..906f660a06 100644 --- a/config/datasync/config.go +++ b/config/datasync/config.go @@ -11,7 +11,7 @@ import ( ) // Configure adds configurations for the datasync group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_datasync_task", func(r *config.Resource) { r.References["destination_location_arn"] = config.Reference{ TerraformName: "aws_datasync_location_s3", diff --git a/config/dax/config.go b/config/dax/config.go index 1d8e87f2de..1344906da4 100644 --- a/config/dax/config.go +++ b/config/dax/config.go @@ -7,7 +7,7 @@ package dax import "github.com/crossplane/upjet/pkg/config" // Configure adds configurations for the dax group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_dax_cluster", func(r *config.Resource) { r.UseAsync = true }) diff --git a/config/devicefarm/config.go b/config/devicefarm/config.go index 5691d1e098..505ca289c3 100644 --- a/config/devicefarm/config.go +++ b/config/devicefarm/config.go @@ -9,7 +9,7 @@ import ( ) // Configure adds configurations for the devicefarm group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_devicefarm_test_grid_project", func(r *config.Resource) { r.References["vpc_config.subnet_ids"] = config.Reference{ TerraformName: "aws_subnet", diff --git a/config/directconnect/config.go b/config/directconnect/config.go index e6c7e3da5b..0b3868d2f5 100644 --- a/config/directconnect/config.go +++ b/config/directconnect/config.go @@ -11,7 +11,7 @@ import ( ) // Configure adds configurations for the directconnect group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_dx_public_virtual_interface", func(r *config.Resource) { r.References["connection_id"] = config.Reference{ TerraformName: "aws_dx_connection", diff --git a/config/dms/config.go b/config/dms/config.go index 90126392c2..319a83fa50 100644 --- a/config/dms/config.go +++ b/config/dms/config.go @@ -12,7 +12,7 @@ import ( ) // Configure adds configurations for the dms group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_dms_endpoint", func(r *config.Resource) { r.References = config.References{ "secrets_manager_access_role_arn": { diff --git a/config/docdb/config.go b/config/docdb/config.go index 9b70c0c8f1..86bbb3aa1b 100644 --- a/config/docdb/config.go +++ b/config/docdb/config.go @@ -14,7 +14,7 @@ import ( ) // Configure adds configurations for the docdb group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_docdb_cluster", func(r *config.Resource) { config.MoveToStatus(r.TerraformResource, "cluster_members") r.UseAsync = true diff --git a/config/ds/config.go b/config/ds/config.go index 7ebaa6dfb9..b403fe4d6e 100644 --- a/config/ds/config.go +++ b/config/ds/config.go @@ -7,7 +7,7 @@ package ds import "github.com/crossplane/upjet/pkg/config" // Configure adds configurations for the ds group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_directory_service_directory", func(r *config.Resource) { r.References["vpc_settings.subnet_ids"] = config.Reference{ TerraformName: "aws_subnet", diff --git a/config/dynamodb/config.go b/config/dynamodb/config.go index b8fb402b28..5d89e48b0b 100644 --- a/config/dynamodb/config.go +++ b/config/dynamodb/config.go @@ -11,7 +11,7 @@ import ( ) // Configure adds configurations for the dynamodb group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo // currently needs an ARN reference for external name p.AddResourceConfigurator("aws_dynamodb_contributor_insights", func(r *config.Resource) { r.References["table_name"] = config.Reference{ diff --git a/config/ebs/config.go b/config/ebs/config.go index 24250d2bf5..b8b8d5a493 100644 --- a/config/ebs/config.go +++ b/config/ebs/config.go @@ -9,7 +9,7 @@ import ( ) // Configure adds configurations for the ebs group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_ebs_volume", func(r *config.Resource) { r.References = map[string]config.Reference{ "kms_key_id": { diff --git a/config/ec2/config.go b/config/ec2/config.go index 21948d41f8..ba0b4a2caf 100644 --- a/config/ec2/config.go +++ b/config/ec2/config.go @@ -12,7 +12,7 @@ import ( ) // Configure adds configurations for the ec2 group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_instance", func(r *config.Resource) { r.UseAsync = true r.References["subnet_id"] = config.Reference{ diff --git a/config/ecr/config.go b/config/ecr/config.go index c61bb381f0..708b62d394 100644 --- a/config/ecr/config.go +++ b/config/ecr/config.go @@ -11,7 +11,7 @@ import ( ) // Configure adds configurations for the ecr group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_ecr_repository", func(r *config.Resource) { r.References = map[string]config.Reference{ "encryption_configuration.kms_key": { diff --git a/config/ecrpublic/config.go b/config/ecrpublic/config.go index 49ee3db858..027431f956 100644 --- a/config/ecrpublic/config.go +++ b/config/ecrpublic/config.go @@ -9,7 +9,7 @@ import ( ) // Configure adds configurations for the ecrpublic group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_ecrpublic_repository", func(r *config.Resource) { // Deletion takes a while. r.UseAsync = true diff --git a/config/ecs/config.go b/config/ecs/config.go index 775df7ce90..c26c33dea1 100644 --- a/config/ecs/config.go +++ b/config/ecs/config.go @@ -17,7 +17,7 @@ import ( ) // Configure adds configurations for the ecs group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_ecs_cluster", func(r *config.Resource) { r.ExternalName.GetExternalNameFn = func(tfstate map[string]interface{}) (string, error) { // expected id format: arn:aws:ecs:us-west-2:123456789123:cluster/example-cluster diff --git a/config/efs/config.go b/config/efs/config.go index a6982168bb..d194c5cd27 100644 --- a/config/efs/config.go +++ b/config/efs/config.go @@ -11,7 +11,7 @@ import ( ) // Configure adds configurations for the efs group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_efs_mount_target", func(r *config.Resource) { r.UseAsync = true r.References["file_system_id"] = config.Reference{ diff --git a/config/eks/config.go b/config/eks/config.go index 9f0bdce95d..64b9d706fa 100644 --- a/config/eks/config.go +++ b/config/eks/config.go @@ -11,7 +11,7 @@ import ( ) // Configure adds configurations for the eks group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_eks_cluster", func(r *config.Resource) { r.References = config.References{ "role_arn": { diff --git a/config/elb/config.go b/config/elb/config.go index 2eaa4b6115..755d4f17af 100644 --- a/config/elb/config.go +++ b/config/elb/config.go @@ -7,7 +7,7 @@ package elb import "github.com/crossplane/upjet/pkg/config" // Configure adds configurations for the elb group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_elb", func(r *config.Resource) { r.References["instances"] = config.Reference{ TerraformName: "aws_instance", diff --git a/config/firehose/config.go b/config/firehose/config.go index 89ff2223cb..ab01ce04dc 100644 --- a/config/firehose/config.go +++ b/config/firehose/config.go @@ -12,7 +12,7 @@ import ( ) // Configure adds configurations for the firehose group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_kinesis_firehose_delivery_stream", func(r *config.Resource) { r.TerraformResource.Schema["splunk_configuration"].Elem.(*schema.Resource).Schema["hec_token"].Sensitive = true diff --git a/config/fsx/config.go b/config/fsx/config.go index a549f01d1b..c5b03bc29c 100644 --- a/config/fsx/config.go +++ b/config/fsx/config.go @@ -11,7 +11,7 @@ import ( ) // Configure adds configurations for the fsx group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_fsx_windows_file_system", func(r *config.Resource) { r.References["kms_key_id"] = config.Reference{ TerraformName: "aws_kms_key", diff --git a/config/gamelift/config.go b/config/gamelift/config.go index 3c445e9022..fbf58b69ed 100644 --- a/config/gamelift/config.go +++ b/config/gamelift/config.go @@ -11,7 +11,7 @@ import ( ) // Configure adds configurations for the gamelift group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_gamelift_build", func(r *config.Resource) { r.References["storage_location.role_arn"] = config.Reference{ TerraformName: "aws_iam_role", diff --git a/config/globalaccelerator/config.go b/config/globalaccelerator/config.go index 2383a46467..5860cd6238 100644 --- a/config/globalaccelerator/config.go +++ b/config/globalaccelerator/config.go @@ -9,7 +9,7 @@ import ( ) // Configure adds configurations for the globalaccelerator group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_globalaccelerator_endpoint_group", func(r *config.Resource) { r.References = config.References{ "listener_arn": { diff --git a/config/glue/config.go b/config/glue/config.go index c4d91512c3..585267cc31 100644 --- a/config/glue/config.go +++ b/config/glue/config.go @@ -12,7 +12,7 @@ import ( ) // Configure adds configurations for the glue group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_glue_catalog_database", func(r *config.Resource) { // Required in ID but optional in schema since TF defaults to Account ID. // This causes refresh to fail in the first reconcile. diff --git a/config/grafana/config.go b/config/grafana/config.go index cafcafd5f2..2850546a2b 100644 --- a/config/grafana/config.go +++ b/config/grafana/config.go @@ -11,7 +11,7 @@ import ( ) // Configure adds configurations for the grafana group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_grafana_workspace", func(r *config.Resource) { r.References["role_arn"] = config.Reference{ TerraformName: "aws_iam_role", diff --git a/config/iam/config.go b/config/iam/config.go index 709d81c565..9c4d6a6bd9 100644 --- a/config/iam/config.go +++ b/config/iam/config.go @@ -11,7 +11,7 @@ import ( ) // Configure adds configurations for the iam group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_iam_access_key", func(r *config.Resource) { r.References["user"] = config.Reference{ TerraformName: "aws_iam_user", diff --git a/config/identitystore/config.go b/config/identitystore/config.go index 982143c103..48e5ecd95f 100644 --- a/config/identitystore/config.go +++ b/config/identitystore/config.go @@ -9,7 +9,7 @@ import ( ) // Configure adds configurations for the identitystore group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_identitystore_group", func(r *config.Resource) { // Display name is required by terraform, and while it's not part of the external name or terraform id, it is // how the group is displayed, and it's immutable. diff --git a/config/iot/config.go b/config/iot/config.go index e8248533c7..b3c99fc7a4 100644 --- a/config/iot/config.go +++ b/config/iot/config.go @@ -9,7 +9,7 @@ import ( ) // Configure adds configurations for the iot group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_iot_topic_rule_destination", func(r *config.Resource) { r.References["vpc_configuration.security_groups"] = config.Reference{ TerraformName: "aws_security_group", diff --git a/config/kafkaconnect/config.go b/config/kafkaconnect/config.go index 557efcc9cc..10eee2db62 100644 --- a/config/kafkaconnect/config.go +++ b/config/kafkaconnect/config.go @@ -9,7 +9,7 @@ import ( ) // Configure adds configurations for the kafkaconnect group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_mskconnect_connector", func(r *config.Resource) { // This will always refer to a Cluster in the kafka api group, if it refers to any managed resource at all, // but which property from the status of that cluster to use depends on the authentication mechanism chosen. diff --git a/config/kendra/config.go b/config/kendra/config.go index 1cb2de163f..e871bdb7d1 100644 --- a/config/kendra/config.go +++ b/config/kendra/config.go @@ -9,7 +9,7 @@ import ( ) // Configure adds configurations for the kendra group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_kendra_thesaurus", func(r *config.Resource) { r.Path = "thesaurus" }) diff --git a/config/kinesis/config.go b/config/kinesis/config.go index a791fafbbb..6fe1a57b25 100644 --- a/config/kinesis/config.go +++ b/config/kinesis/config.go @@ -11,7 +11,7 @@ import ( ) // Configure adds configurations for the kinesis group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_kinesis_stream_consumer", func(r *config.Resource) { r.References["stream_arn"] = config.Reference{ TerraformName: "aws_kinesis_stream", diff --git a/config/kinesisanalytics/config.go b/config/kinesisanalytics/config.go index 9ac9611c9a..9a0d28cb46 100644 --- a/config/kinesisanalytics/config.go +++ b/config/kinesisanalytics/config.go @@ -11,7 +11,7 @@ import ( ) // Configure adds configurations for the kinesisanalytics group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_kinesis_analytics_application", func(r *config.Resource) { r.References["inputs.kinesis_stream.resource_arn"] = config.Reference{ TerraformName: "aws_kinesis_stream", diff --git a/config/kinesisanalyticsv2/config.go b/config/kinesisanalyticsv2/config.go index a1b85ea67c..f53d73e038 100644 --- a/config/kinesisanalyticsv2/config.go +++ b/config/kinesisanalyticsv2/config.go @@ -11,7 +11,7 @@ import ( ) // Configure adds configurations for the kinesisanalytics2 group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_kinesisanalyticsv2_application", func(r *config.Resource) { r.References["application_configuration.application_code_configuration.code_content.s3_content_location.bucket_arn"] = config.Reference{ TerraformName: "aws_s3_bucket", diff --git a/config/kms/config.go b/config/kms/config.go index 0e33ee5c88..209f066965 100644 --- a/config/kms/config.go +++ b/config/kms/config.go @@ -11,7 +11,7 @@ import ( ) // Configure adds configurations for the kms group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_kms_alias", func(r *config.Resource) { r.References["target_key_id"] = config.Reference{ TerraformName: "aws_kms_key", diff --git a/config/lakeformation/config.go b/config/lakeformation/config.go index f5b019f373..988e4af8ad 100644 --- a/config/lakeformation/config.go +++ b/config/lakeformation/config.go @@ -9,7 +9,7 @@ import ( ) // Configure adds configurations for the lakeformation group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_lakeformation_data_lake_settings", func(r *config.Resource) { delete(r.References, "create_database_default_permissions.principal") delete(r.References, "create_table_default_permissions.principal") diff --git a/config/lambda/config.go b/config/lambda/config.go index 421627bcef..f2698276eb 100644 --- a/config/lambda/config.go +++ b/config/lambda/config.go @@ -11,7 +11,7 @@ import ( ) // Configure adds configurations for the lambda group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_lambda_alias", func(r *config.Resource) { r.References["function_name"] = config.Reference{ TerraformName: "aws_lambda_function", diff --git a/config/licensemanager/config.go b/config/licensemanager/config.go index 489ba92f64..5a20210bcb 100644 --- a/config/licensemanager/config.go +++ b/config/licensemanager/config.go @@ -11,7 +11,7 @@ import ( ) // Configure adds configurations for the licensemanager group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_licensemanager_association", func(r *config.Resource) { r.References["license_configuration_arn"] = config.Reference{ TerraformName: "aws_licensemanager_license_configuration", diff --git a/config/medialive/config.go b/config/medialive/config.go index a9dc5a666b..a571ed9e29 100644 --- a/config/medialive/config.go +++ b/config/medialive/config.go @@ -9,7 +9,7 @@ import ( ) // Configure adds configurations for the medialive group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_medialive_multiplex", func(r *config.Resource) { r.Path = "multiplices" }) diff --git a/config/memorydb/config.go b/config/memorydb/config.go index c23d120945..34dc391b85 100644 --- a/config/memorydb/config.go +++ b/config/memorydb/config.go @@ -11,7 +11,7 @@ import ( ) // Configure adds configurations for the memorydb group. -func Configure(p *config.Provider) { // nolint:gocyclo +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_memorydb_cluster", func(r *config.Resource) { r.UseAsync = true diff --git a/config/mq/config.go b/config/mq/config.go index 21265723d4..076f2bd992 100644 --- a/config/mq/config.go +++ b/config/mq/config.go @@ -12,7 +12,7 @@ import ( ) // Configure adds configurations for the mq group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_mq_broker", func(r *config.Resource) { r.References["security_groups"] = config.Reference{ TerraformName: "aws_security_group", diff --git a/config/mwaa/config.go b/config/mwaa/config.go index 4d6368f9a5..0240770539 100644 --- a/config/mwaa/config.go +++ b/config/mwaa/config.go @@ -8,7 +8,7 @@ import ( "github.com/crossplane/upjet/pkg/config" ) -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_mwaa_environment", func(r *config.Resource) { r.References["network_configuration.subnet_ids"] = config.Reference{ TerraformName: "aws_subnet", diff --git a/config/neptune/config.go b/config/neptune/config.go index 7220133797..d9ef1a3fc5 100644 --- a/config/neptune/config.go +++ b/config/neptune/config.go @@ -9,7 +9,7 @@ import ( ) // Configure adds configurations for the neptune group -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_neptune_cluster", func(r *config.Resource) { r.UseAsync = true r.References["snapshot_identifier"] = config.Reference{ diff --git a/config/networkfirewall/config.go b/config/networkfirewall/config.go index 484fc15030..71beef8643 100644 --- a/config/networkfirewall/config.go +++ b/config/networkfirewall/config.go @@ -17,7 +17,7 @@ import ( ) // Configure adds configurations for the networkfirewall group. -func Configure(p *config.Provider) { // nolint:gocyclo +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_networkfirewall_firewall_policy", func(r *config.Resource) { r.References = config.References{ "firewall_policy.stateless_rule_group_reference.resource_arn": { diff --git a/config/networkmanager/config.go b/config/networkmanager/config.go index be46b5c092..1928afbbca 100644 --- a/config/networkmanager/config.go +++ b/config/networkmanager/config.go @@ -11,7 +11,7 @@ import ( ) // Configure adds configurations for the networkmanager group -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_networkmanager_link", func(r *config.Resource) { r.References["site_id"] = config.Reference{ TerraformName: "aws_networkmanager_site", diff --git a/config/opensearchserverless/config.go b/config/opensearchserverless/config.go index 4b9f8674e0..185faa9ff2 100644 --- a/config/opensearchserverless/config.go +++ b/config/opensearchserverless/config.go @@ -9,7 +9,7 @@ import ( ) // Configure adds configurations for the opensearchserverless group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_opensearchserverless_security_config", func(r *config.Resource) { r.RemoveSingletonListConversion("saml_options") // set the path saml_options as an embedded object to honor diff --git a/config/opsworks/config.go b/config/opsworks/config.go index 4d3236bde9..dda84dc043 100644 --- a/config/opsworks/config.go +++ b/config/opsworks/config.go @@ -7,7 +7,7 @@ package opsworks import "github.com/crossplane/upjet/pkg/config" // Configure adds configurations for the opsworks group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_opsworks_stack", func(r *config.Resource) { r.References["default_subnet_id"] = config.Reference{ TerraformName: "aws_subnet", diff --git a/config/organization/config.go b/config/organization/config.go index ccd2c7be63..4fc60d7d48 100644 --- a/config/organization/config.go +++ b/config/organization/config.go @@ -7,7 +7,7 @@ package organization import "github.com/crossplane/upjet/pkg/config" // Configure adds configurations for the organization group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo // please see: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/organizations_account // If `role_name` is used, it's stated that Terraform will always // show a difference. Thus, that argument is removed here. diff --git a/config/osis/config.go b/config/osis/config.go index 263f2fd7e9..3bef02eda7 100644 --- a/config/osis/config.go +++ b/config/osis/config.go @@ -11,7 +11,7 @@ import ( ) // Configure adds configurations for the osis group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_osis_pipeline", func(r *config.Resource) { r.References["vpc_options.security_group_ids"] = config.Reference{ TerraformName: "aws_security_group", diff --git a/config/qldb/config.go b/config/qldb/config.go index fc20a29809..f9eaf9cb35 100644 --- a/config/qldb/config.go +++ b/config/qldb/config.go @@ -11,7 +11,7 @@ import ( ) // Configure adds configurations for the qldb group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_qldb_stream", func(r *config.Resource) { r.References["kinesis_configuration.stream_arn"] = config.Reference{ TerraformName: "aws_kinesis_stream", diff --git a/config/ram/config.go b/config/ram/config.go index f329fd4dd0..d5d4f99a98 100644 --- a/config/ram/config.go +++ b/config/ram/config.go @@ -9,7 +9,7 @@ import ( ) // Configure adds configurations for the ram group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_ram_resource_association", func(r *config.Resource) { delete(r.References, "resource_arn") }) diff --git a/config/redshift/config.go b/config/redshift/config.go index cfab6d0975..f645d16567 100644 --- a/config/redshift/config.go +++ b/config/redshift/config.go @@ -7,7 +7,7 @@ package redshift import "github.com/crossplane/upjet/pkg/config" // Configure adds configurations for the redshift group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_redshift_cluster", func(r *config.Resource) { r.UseAsync = true }) diff --git a/config/redshiftserverless/config.go b/config/redshiftserverless/config.go index ba055da931..dfceff7f1b 100644 --- a/config/redshiftserverless/config.go +++ b/config/redshiftserverless/config.go @@ -7,7 +7,7 @@ package redshiftserverless import "github.com/crossplane/upjet/pkg/config" // Configure adds configurations for redshiftserverless group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_redshiftserverless_namespace", func(r *config.Resource) { r.Kind = "RedshiftServerlessNamespace" r.LateInitializer = config.LateInitializer{ diff --git a/config/rolesanywhere/config.go b/config/rolesanywhere/config.go index e8c5eeae02..abb340f182 100644 --- a/config/rolesanywhere/config.go +++ b/config/rolesanywhere/config.go @@ -11,7 +11,7 @@ import ( ) // Configure adds configurations for the rolesanywhere group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_rolesanywhere_profile", func(r *config.Resource) { r.References["role_arns"] = config.Reference{ TerraformName: "aws_iam_role", diff --git a/config/route53/config.go b/config/route53/config.go index 595e19c7c9..a71e60bc2f 100644 --- a/config/route53/config.go +++ b/config/route53/config.go @@ -9,7 +9,7 @@ import ( ) // Configure adds configurations for the route53 group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_route53_traffic_policy_instance", func(r *config.Resource) { r.References["hosted_zone_id"] = config.Reference{ TerraformName: "aws_route53_zone", diff --git a/config/route53recoverycontrolconfig/config.go b/config/route53recoverycontrolconfig/config.go index 3543a84d50..a9c92f8c91 100644 --- a/config/route53recoverycontrolconfig/config.go +++ b/config/route53recoverycontrolconfig/config.go @@ -11,7 +11,7 @@ import ( ) // Configure adds configurations for the route53recoverycontrolconfig group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_route53recoverycontrolconfig_control_panel", func(r *config.Resource) { r.References["cluster_arn"] = config.Reference{ TerraformName: "aws_route53recoverycontrolconfig_cluster", diff --git a/config/route53resolver/config.go b/config/route53resolver/config.go index ac2a1a65ba..d17033eabc 100644 --- a/config/route53resolver/config.go +++ b/config/route53resolver/config.go @@ -16,7 +16,7 @@ import ( ) // Configure adds configurations for the route53resolver group. -func Configure(p *config.Provider) { // nolint:gocyclo +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_route53_resolver_query_log_config", func(r *config.Resource) { delete(r.References, "destination_arn") }) diff --git a/config/s3/config.go b/config/s3/config.go index 0762db9372..0e0f8293e7 100644 --- a/config/s3/config.go +++ b/config/s3/config.go @@ -10,7 +10,7 @@ import ( ) // Configure adds configurations for the s3 group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_s3_bucket", func(r *config.Resource) { // Mutually exclusive with: // aws_s3_bucket_accelerate_configuration diff --git a/config/sagemaker/config.go b/config/sagemaker/config.go index 53fbaa3570..e1921a38f8 100644 --- a/config/sagemaker/config.go +++ b/config/sagemaker/config.go @@ -9,7 +9,7 @@ import ( ) // Configure adds configurations for the sagemaker group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_sagemaker_workforce", func(r *config.Resource) { r.LateInitializer = config.LateInitializer{ IgnoredFields: []string{"source_ip_config"}, diff --git a/config/servicecatalog/config.go b/config/servicecatalog/config.go index 6e61f87d30..f9055009de 100644 --- a/config/servicecatalog/config.go +++ b/config/servicecatalog/config.go @@ -11,7 +11,7 @@ import ( ) // Configure adds configurations for the servicecatalog group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo // done for proper normalization as the defaulting is done by Terraform // please refer to this resource's external-name configuration for details. p.AddResourceConfigurator("aws_servicecatalog_principal_portfolio_association", func(r *config.Resource) { diff --git a/config/servicediscovery/config.go b/config/servicediscovery/config.go index 58f0a37b0d..1b611a7654 100644 --- a/config/servicediscovery/config.go +++ b/config/servicediscovery/config.go @@ -7,7 +7,7 @@ package servicediscovery import "github.com/crossplane/upjet/pkg/config" // Configure adds configurations for the servicediscovery group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_service_discovery_private_dns_namespace", func(r *config.Resource) { r.References["vpc"] = config.Reference{ TerraformName: "aws_vpc", diff --git a/config/sfn/config.go b/config/sfn/config.go index 89afa41618..4f9bfe5128 100644 --- a/config/sfn/config.go +++ b/config/sfn/config.go @@ -11,7 +11,7 @@ import ( ) // Configure adds configurations for the sfn group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_sfn_state_machine", func(r *config.Resource) { r.References["role_arn"] = config.Reference{ TerraformName: "aws_iam_role", diff --git a/config/sns/config.go b/config/sns/config.go index 702a1e028c..ae14e1c6c7 100644 --- a/config/sns/config.go +++ b/config/sns/config.go @@ -14,7 +14,7 @@ import ( ) // Configure adds configurations for the sns group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_sns_topic_subscription", func(r *config.Resource) { r.References["endpoint"] = config.Reference{ TerraformName: "aws_sqs_queue", diff --git a/config/sqs/config.go b/config/sqs/config.go index 6ececc5a39..c4b9b45fd1 100644 --- a/config/sqs/config.go +++ b/config/sqs/config.go @@ -14,7 +14,7 @@ import ( ) // Configure adds configurations for the sqs group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_sqs_queue_policy", func(r *config.Resource) { r.References["queue_url"] = config.Reference{ TerraformName: "aws_sqs_queue", diff --git a/config/ssoadmin/config.go b/config/ssoadmin/config.go index f21a82dc26..732aa83557 100644 --- a/config/ssoadmin/config.go +++ b/config/ssoadmin/config.go @@ -11,7 +11,7 @@ import ( ) // Configure adds configurations for the ssoadmin group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_ssoadmin_account_assignment", func(r *config.Resource) { r.References["principal_id"] = config.Reference{ TerraformName: "aws_identitystore_group", diff --git a/config/transfer/config.go b/config/transfer/config.go index c07f768211..c784d55542 100644 --- a/config/transfer/config.go +++ b/config/transfer/config.go @@ -11,7 +11,7 @@ import ( ) // Configure adds configurations for the transfer group. -func Configure(p *config.Provider) { +func Configure(p *config.Provider) { //nolint:gocyclo p.AddResourceConfigurator("aws_transfer_user", func(r *config.Resource) { r.References["server_id"] = config.Reference{ TerraformName: "aws_transfer_server",