hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.82k stars 9.16k forks source link

Fix and enable tfproviderlint S018 check: Use TypeList and MaxItems: 1 #9956

Closed ryndaniels closed 4 years ago

ryndaniels commented 5 years ago

Description

As per tfproviderlint check S018, we want to make sure that schemas use Type: TypeList and MaxItems: 1 if possible.

Failing example:

&schema.Schema{
    MaxItems: 1,
    Type:     schema.TypeSet,
}

Should become:

&schema.Schema{
    MaxItems: 1,
    Type:     schema.TypeList,
}

Affected Files

Definition of Done

ewbankkit commented 4 years ago

Related:

ghost commented 4 years ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!