Documentation: expires_at in gitlab_project_access_token is now required and last at most 365 days
Bug Report
- Current docs displays expires_at as optional argument. However 16.0.0 docs mentions that this argument is required. It would be perfect to move that
expires_atin docs to required paragraph.
- Additionally expires_at should last at most 365 days from current day. How about linking docs or mention about this limitation? It would be less confusing for users.
I can create MR for it.
Relevant Terraform Configuration
resource "gitlab_project_access_token" "example" {
project = "25"
name = "Example project access token"
expires_at = "2030-03-14" # At most 365 days and it is required
access_level = "reporter"
scopes = ["api"]
}
Relevant Terraform Command
terraform apply -target='gitlab_project_access_token.example'
Relevant Log Output
These are the debug logs of the `terraform` command output:
POST https://gitlab.com/api/v4/projects/XXXXXXXXXXX/access_tokens: 400 {message: 400 Bad request - Expires at must expire in 365 days}
Additional Details
- GitLab Terraform Provider Version:
16.0.3 - GitLab Version:
16.0.0 - Terraform Version:
1.4.6
Edited by Tomasz Dul
