Skip to content

[v17] Terraform: Fix Access List import#54802

Merged
kopiczko merged 1 commit intobranch/v17from
bot/backport-54775-branch/v17
May 15, 2025
Merged

[v17] Terraform: Fix Access List import#54802
kopiczko merged 1 commit intobranch/v17from
bot/backport-54775-branch/v17

Conversation

@kopiczko
Copy link
Copy Markdown
Contributor

Backport #54775 to branch/v17

changelog: Terraform: Fixed Access List resource import.

The most important bit is set tfschema.TimeValue.Format in CopyToTimestamp so non-nil times are
parsed correctly. Otherwise the import results in `parsing time "" as "2006-01-02T15:04:05Z07:00":
cannot parse "" as "2006"`. That affected all resources, because all of them have
`metadata.expires` field, but AccessList was hit the most because it has
`spec.audit.next_audit_date` Timestamp field.

The other part is marking more header fields as computed so the `apply` after the `import`` goes
smoothly and is less confusing.
@kopiczko kopiczko marked this pull request as ready for review May 14, 2025 14:28
@github-actions github-actions Bot requested review from hugoShaka and smallinsky May 14, 2025 14:28
@kopiczko kopiczko added this pull request to the merge queue May 15, 2025
Merged via the queue into branch/v17 with commit 5c184f9 May 15, 2025
45 checks passed
@kopiczko kopiczko deleted the bot/backport-54775-branch/v17 branch May 15, 2025 09:38
@doggydogworld doggydogworld mentioned this pull request Jun 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants