Skip to content

Commit

Permalink
Merge pull request #878 from spanio/consistent-config-comments
Browse files Browse the repository at this point in the history
Fix copy-paste errors in Configure comments
  • Loading branch information
turkenf authored Sep 22, 2023
2 parents 1228da6 + 2a64523 commit 27b82c1
Show file tree
Hide file tree
Showing 78 changed files with 82 additions and 82 deletions.
2 changes: 1 addition & 1 deletion config/acm/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/upbound/upjet/pkg/config"
)

// Configure adds configurations for acm group.
// Configure adds configurations for the acm group.
func Configure(p *config.Provider) {
p.AddResourceConfigurator("aws_acm_certificate_validation", func(r *config.Resource) {
r.References = map[string]config.Reference{
Expand Down
2 changes: 1 addition & 1 deletion config/acmpca/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/upbound/upjet/pkg/config"
)

// Configure adds configurations for acm group.
// Configure adds configurations for the acmpca group.
func Configure(p *config.Provider) {
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
Expand Down
2 changes: 1 addition & 1 deletion config/apigateway/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/upbound/provider-aws/config/common"
)

// Configure adds configurations for acm group.
// Configure adds configurations for the apigateway group.
func Configure(p *config.Provider) {
p.AddResourceConfigurator("aws_api_gateway_rest_api", func(r *config.Resource) {
config.MoveToStatus(r.TerraformResource, "policy")
Expand Down
2 changes: 1 addition & 1 deletion config/apigatewayv2/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/upbound/provider-aws/config/common"
)

// Configure adds configurations for autoscaling group.
// Configure adds configurations for the apigatewayv2 group.
func Configure(p *config.Provider) {
p.AddResourceConfigurator("aws_apigatewayv2_api_mapping", func(r *config.Resource) {
r.References["api_id"] = config.Reference{
Expand Down
2 changes: 1 addition & 1 deletion config/apprunner/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/upbound/upjet/pkg/config"
)

// Configure adds configurations for apprunner group.
// Configure adds configurations for the apprunner group.
func Configure(p *config.Provider) {
p.AddResourceConfigurator("aws_apprunner_vpc_connector", func(r *config.Resource) {
r.References["subnets"] = config.Reference{
Expand Down
4 changes: 2 additions & 2 deletions config/appstream/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"github.com/upbound/upjet/pkg/config"
)

// Configure adds configurations for appstream group.
func Configure(p *config.Provider) { // nolint:gocyclo
// Configure adds configurations for the appstream group.
func Configure(p *config.Provider) {
p.AddResourceConfigurator("aws_appstream_fleet", func(r *config.Resource) {
r.References["vpc_config.subnet_ids"] = config.Reference{
Type: "github.com/upbound/provider-aws/apis/ec2/v1beta1.Subnet",
Expand Down
2 changes: 1 addition & 1 deletion config/athena/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/upbound/provider-aws/config/common"
)

// Configure adds configurations for athena group.
// Configure adds configurations for the athena group.
func Configure(p *config.Provider) {
p.AddResourceConfigurator("aws_athena_workgroup", func(r *config.Resource) {
r.References["configuration.result_configuration.encryption_configuration.kms_key_arn"] = config.Reference{
Expand Down
2 changes: 1 addition & 1 deletion config/autoscaling/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/upbound/provider-aws/config/common"
)

// Configure adds configurations for autoscaling group.
// Configure adds configurations for the autoscaling group.
func Configure(p *config.Provider) {
p.AddResourceConfigurator("aws_autoscaling_group", func(r *config.Resource) {
// These are mutually exclusive with aws_autoscaling_attachment.
Expand Down
2 changes: 1 addition & 1 deletion config/backup/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/upbound/provider-aws/config/common"
)

// Configure adds configurations for backup group.
// Configure adds configurations for the backup group.
func Configure(p *config.Provider) {
p.AddResourceConfigurator("aws_backup_vault", func(r *config.Resource) {
r.References["kms_key_arn"] = config.Reference{
Expand Down
2 changes: 1 addition & 1 deletion config/budgets/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"github.com/upbound/upjet/pkg/config"
)

// Configure adds configurations for budgets group.
// Configure adds configurations for the budgets group.
func Configure(p *config.Provider) {
p.AddResourceConfigurator("aws_budgets_budget_action", func(r *config.Resource) {
r.References["definition.iam_action_definition.aws_iam_role.example.name"] = config.Reference{
Expand Down
2 changes: 1 addition & 1 deletion config/cloudfront/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/upbound/provider-aws/config/common"
)

// Configure adds configurations for ebs group.
// Configure adds configurations for the cloudfront group.
func Configure(p *config.Provider) {
p.AddResourceConfigurator("aws_cloudfront_distribution", func(r *config.Resource) {
r.UseAsync = true
Expand Down
2 changes: 1 addition & 1 deletion config/cloudsearch/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"github.com/upbound/upjet/pkg/config"
)

// Configure adds configurations for ebs group.
// Configure adds configurations for the cloudsearch group.
func Configure(p *config.Provider) {
p.AddResourceConfigurator("aws_cloudsearch_domain", func(r *config.Resource) {
r.UseAsync = true
Expand Down
2 changes: 1 addition & 1 deletion config/cloudwatch/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/upbound/provider-aws/config/common"
)

// Configure adds configurations for cloudwatch group.
// Configure adds configurations for the cloudwatch group.
func Configure(p *config.Provider) {
p.AddResourceConfigurator("aws_cloudwatch_metric_stream", func(r *config.Resource) {
config.MarkAsRequired(r.TerraformResource, "name")
Expand Down
2 changes: 1 addition & 1 deletion config/cloudwatchevents/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"github.com/upbound/upjet/pkg/config"
)

// Configure adds configurations for cloudwatchevents group.
// Configure adds configurations for the cloudwatchevents group.
func Configure(p *config.Provider) {
p.AddResourceConfigurator("aws_cloudwatch_event_permission", func(r *config.Resource) {
r.References["event_bus_name"] = config.Reference{
Expand Down
2 changes: 1 addition & 1 deletion config/cloudwatchlogs/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"github.com/upbound/provider-aws/config/common"
)

// Configure adds configurations for cloudwatchlogs group.
// Configure adds configurations for the cloudwatchlogs group.
func Configure(p *config.Provider) {
p.AddResourceConfigurator("aws_cloudwatch_log_destination", func(r *config.Resource) {
// the target_arn field is generated together with the associated
Expand Down
2 changes: 1 addition & 1 deletion config/cognitoidentity/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/upbound/provider-aws/config/common"
)

// Configure adds configurations for acm group.
// Configure adds configurations for the cognitoidentity group.
func Configure(p *config.Provider) {
p.AddResourceConfigurator("aws_cognito_identity_pool", func(r *config.Resource) {
r.References["saml_provider_arns"] = config.Reference{
Expand Down
2 changes: 1 addition & 1 deletion config/cognitoidp/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/upbound/upjet/pkg/config"
)

// Configure adds configurations for acm group.
// Configure adds configurations for the cognitoidp group.
func Configure(p *config.Provider) {
p.AddResourceConfigurator("aws_cognito_user_pool_client", func(r *config.Resource) {
r.References["user_pool_id"] = config.Reference{
Expand Down
2 changes: 1 addition & 1 deletion config/connect/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/upbound/upjet/pkg/config"
)

// Configure adds configurations for connect group.
// Configure adds configurations for the connect group.
func Configure(p *config.Provider) {
p.AddResourceConfigurator("aws_connect_contact_flow", func(r *config.Resource) {
r.References["instance_id"] = config.Reference{
Expand Down
2 changes: 1 addition & 1 deletion config/cur/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/upbound/upjet/pkg/config"
)

// Configure adds configurations for cur group.
// Configure adds configurations for the cur group.
func Configure(p *config.Provider) {
p.AddResourceConfigurator("aws_cur_report_definition", func(r *config.Resource) {
r.References["s3_bucket"] = config.Reference{
Expand Down
2 changes: 1 addition & 1 deletion config/datasync/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"github.com/upbound/provider-aws/config/common"
)

// Configure adds configurations for datasync group.
// Configure adds configurations for the datasync group.
func Configure(p *config.Provider) {
p.AddResourceConfigurator("aws_datasync_task", func(r *config.Resource) {
r.References["destination_location_arn"] = config.Reference{
Expand Down
2 changes: 1 addition & 1 deletion config/dax/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package dax

import "github.com/upbound/upjet/pkg/config"

// Configure adds configurations for dax group.
// Configure adds configurations for the dax group.
func Configure(p *config.Provider) {
p.AddResourceConfigurator("aws_dax_cluster", func(r *config.Resource) {
r.UseAsync = true
Expand Down
4 changes: 2 additions & 2 deletions config/devicefarm/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"github.com/upbound/upjet/pkg/config"
)

// Configure adds configurations for devicefarm group.
func Configure(p *config.Provider) { // nolint:gocyclo
// Configure adds configurations for the devicefarm group.
func Configure(p *config.Provider) {
p.AddResourceConfigurator("aws_devicefarm_test_grid_project", func(r *config.Resource) {
r.References["vpc_config.subnet_ids"] = config.Reference{
Type: "github.com/upbound/provider-aws/apis/ec2/v1beta1.Subnet",
Expand Down
4 changes: 2 additions & 2 deletions config/directconnect/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (
"github.com/upbound/provider-aws/config/common"
)

// Configure adds configurations for directconnect group.
func Configure(p *config.Provider) { // nolint:gocyclo
// Configure adds configurations for the directconnect group.
func Configure(p *config.Provider) {
p.AddResourceConfigurator("aws_dx_public_virtual_interface", func(r *config.Resource) {
r.References["connection_id"] = config.Reference{
Type: "Connection",
Expand Down
2 changes: 1 addition & 1 deletion config/dms/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/upbound/provider-aws/config/common"
)

// Configure adds configurations for dms group.
// Configure adds configurations for the dms group.
func Configure(p *config.Provider) {
p.AddResourceConfigurator("aws_dms_endpoint", func(r *config.Resource) {
r.References = config.References{
Expand Down
2 changes: 1 addition & 1 deletion config/docdb/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package docdb

import "github.com/upbound/upjet/pkg/config"

// Configure adds configurations for docdb group.
// Configure adds configurations for the docdb group.
func Configure(p *config.Provider) {
p.AddResourceConfigurator("aws_docdb_cluster", func(r *config.Resource) {
config.MoveToStatus(r.TerraformResource, "cluster_members")
Expand Down
2 changes: 1 addition & 1 deletion config/ds/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package ds

import "github.com/upbound/upjet/pkg/config"

// Configure adds configurations for ds group.
// Configure adds configurations for the ds group.
func Configure(p *config.Provider) {
p.AddResourceConfigurator("aws_directory_service_directory", func(r *config.Resource) {
r.References["vpc_settings.subnet_ids"] = config.Reference{
Expand Down
2 changes: 1 addition & 1 deletion config/ebs/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/upbound/upjet/pkg/config"
)

// Configure adds configurations for ebs group.
// Configure adds configurations for the ebs group.
func Configure(p *config.Provider) {
p.AddResourceConfigurator("aws_ebs_volume", func(r *config.Resource) {
r.References = map[string]config.Reference{
Expand Down
2 changes: 1 addition & 1 deletion config/ec2/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/upbound/provider-aws/config/common"
)

// Configure adds configurations for ec2 group.
// Configure adds configurations for the ec2 group.
func Configure(p *config.Provider) {
p.AddResourceConfigurator("aws_instance", func(r *config.Resource) {
r.UseAsync = true
Expand Down
2 changes: 1 addition & 1 deletion config/ecr/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/upbound/provider-aws/config/common"
)

// Configure adds configurations for ecrs group.
// Configure adds configurations for the ecr group.
func Configure(p *config.Provider) {
p.AddResourceConfigurator("aws_ecr_repository", func(r *config.Resource) {
r.References = map[string]config.Reference{
Expand Down
2 changes: 1 addition & 1 deletion config/ecrpublic/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/upbound/upjet/pkg/config"
)

// Configure adds configurations for ecrpublic group.
// Configure adds configurations for the ecrpublic group.
func Configure(p *config.Provider) {
p.AddResourceConfigurator("aws_ecrpublic_repository", func(r *config.Resource) {
// Deletion takes a while.
Expand Down
2 changes: 1 addition & 1 deletion config/ecs/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"github.com/upbound/provider-aws/config/common"
)

// Configure adds configurations for ecs group.
// Configure adds configurations for the ecs group.
func Configure(p *config.Provider) {
p.AddResourceConfigurator("aws_ecs_cluster", func(r *config.Resource) {
r.ExternalName.GetExternalNameFn = func(tfstate map[string]interface{}) (string, error) {
Expand Down
2 changes: 1 addition & 1 deletion config/efs/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/upbound/provider-aws/config/common"
)

// Configure adds configurations for efs group.
// Configure adds configurations for the efs group.
func Configure(p *config.Provider) {
p.AddResourceConfigurator("aws_efs_mount_target", func(r *config.Resource) {
r.UseAsync = true
Expand Down
4 changes: 2 additions & 2 deletions config/eks/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"github.com/upbound/provider-aws/config/common"
)

// Configure adds configurations for eks group.
func Configure(p *config.Provider) { // nolint:gocyclo
// Configure adds configurations for the eks group.
func Configure(p *config.Provider) {
p.AddResourceConfigurator("aws_eks_cluster", func(r *config.Resource) {
r.References = config.References{
"role_arn": {
Expand Down
2 changes: 1 addition & 1 deletion config/elasticache/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/upbound/upjet/pkg/config"
)

// Configure adds configurations for elasticache group.
// Configure adds configurations for the elasticache group.
func Configure(p *config.Provider) {
p.AddResourceConfigurator("aws_elasticache_cluster", func(r *config.Resource) {
r.References["parameter_group_name"] = config.Reference{
Expand Down
2 changes: 1 addition & 1 deletion config/elb/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package elb

import "github.com/upbound/upjet/pkg/config"

// Configure adds configurations for elb group.
// Configure adds configurations for the elb group.
func Configure(p *config.Provider) {
p.AddResourceConfigurator("aws_elb", func(r *config.Resource) {
r.References["instances"] = config.Reference{
Expand Down
2 changes: 1 addition & 1 deletion config/elbv2/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package elbv2

import "github.com/upbound/upjet/pkg/config"

// Configure adds configurations for acm group.
// Configure adds configurations for the elbv2 group.
func Configure(p *config.Provider) {
p.AddResourceConfigurator("aws_lb", func(r *config.Resource) {
r.ExternalName.OmittedFields = append(r.ExternalName.OmittedFields, "name_prefix")
Expand Down
2 changes: 1 addition & 1 deletion config/firehose/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/upbound/provider-aws/config/common"
)

// Configure adds configurations for firehose group.
// Configure adds configurations for the firehose group.
func Configure(p *config.Provider) {
p.AddResourceConfigurator("aws_kinesis_firehose_delivery_stream", func(r *config.Resource) {
r.TerraformResource.Schema["splunk_configuration"].Elem.(*schema.Resource).Schema["hec_token"].Sensitive = true
Expand Down
2 changes: 1 addition & 1 deletion config/fsx/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/upbound/provider-aws/config/common"
)

// Configure adds configurations for fsx group.
// Configure adds configurations for the fsx group.
func Configure(p *config.Provider) {
p.AddResourceConfigurator("aws_fsx_windows_file_system", func(r *config.Resource) {
r.References["kms_key_id"] = config.Reference{
Expand Down
2 changes: 1 addition & 1 deletion config/gamelift/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/upbound/provider-aws/config/common"
)

// Configure adds configurations for gamelift group.
// Configure adds configurations for the gamelift group.
func Configure(p *config.Provider) {
p.AddResourceConfigurator("aws_gamelift_build", func(r *config.Resource) {
r.References["storage_location.role_arn"] = config.Reference{
Expand Down
2 changes: 1 addition & 1 deletion config/globalaccelerator/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"github.com/upbound/upjet/pkg/config"
)

// Configure adds configurations for ebs group.
// Configure adds configurations for the globalaccelerator group.
func Configure(p *config.Provider) {
p.AddResourceConfigurator("aws_globalaccelerator_endpoint_group", func(r *config.Resource) {
r.References = config.References{
Expand Down
2 changes: 1 addition & 1 deletion config/glue/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/upbound/provider-aws/config/common"
)

// Configure glue resources.
// Configure adds configurations for the glue group.
func Configure(p *config.Provider) {
p.AddResourceConfigurator("aws_glue_catalog_database", func(r *config.Resource) {
// Required in ID but optional in schema since TF defaults to Account ID.
Expand Down
2 changes: 1 addition & 1 deletion config/grafana/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/upbound/provider-aws/config/common"
)

// Configure adds configurations for grafana group.
// Configure adds configurations for the grafana group.
func Configure(p *config.Provider) {
p.AddResourceConfigurator("aws_grafana_workspace", func(r *config.Resource) {
r.References["role_arn"] = config.Reference{
Expand Down
2 changes: 1 addition & 1 deletion config/iam/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/upbound/provider-aws/config/common"
)

// Configure adds configurations for iam group.
// Configure adds configurations for the iam group.
func Configure(p *config.Provider) {
p.AddResourceConfigurator("aws_iam_access_key", func(r *config.Resource) {
r.References = config.References{
Expand Down
Loading

0 comments on commit 27b82c1

Please sign in to comment.