.agents/skills/review-docs/references/import-section.md
Detailed checklist for the ## Import section and Identity Schema subsection of resource docs. Loaded on demand from the review-docs skill.
Resources with Resource Identity follow this exact structure, in this order:
In Terraform v1.12.0 and later, the [\import` block](...)followed by an example usingidentity = { ... }`.### Identity Schema with #### Required and #### Optional subsections.In Terraform v1.5.0 and later, use an [\import` block](...)followed by an example usingid = "..."`.Using \terraform import`, import ...followed by aconsole` block.Flag pages whose Import section is missing any of these subsections, or that order them differently.
Required attributes by identity type:
arn bullet.Optional attributes are these two lines, verbatim:
* `account_id` (String) AWS Account where this resource is managed.
* `region` (String) Region where this resource is managed.
For global resources (CloudFront, IAM, etc.), omit the region line.
ARN identity has no Optional attributes — flag pages that add account_id / region under Optional for an ARN-identified resource.
List resource docs do not have an Import section. Examples use the list "..." configuration block:
list "aws_<svc>_<thing>" "example" {
provider = aws
}
The region argument is documented as (Optional) Region to query. Defaults to provider region.