Resource-Specific Schema Attribute Validation Functions #16434
Labels
enhancement
Requests to existing resources that expand the functionality or scope.
proposal
Proposes new design or functionality.
provider
Pertains to the provider itself, rather than any interaction with AWS.
stale
Old or inactive issues managed by automation, if no further action taken these will get closed.
Community Note
Description
NOTE: This issue needs more design consideration before implementation.
Currently the codebase has a generic ARN validation helper,
validateArn
, which is commonly applied in many places. However, we could offer more specific ARN validation, such as ensuring specific service and resource type are applied in attributes accepting ARNs. More broadly, there are other places where this may be very helpful, such as common resource identifiers like EC2 Security Group, Subnet, and VPC IDs.For example, the Image Builder API includes the more specific ARN patterns in the API model, which were included in the initial Terraform AWS Provider resource implementations.
Initial considerations:
Probably much more to think about, but jotting this down to start. 😄
References
The text was updated successfully, but these errors were encountered: