pulumi/pkg/resource/stack
Bryce Lampe 7e0dd3f3c2
This commit adds the `Created` and `Modified` timestamps to pulumi state that are optional.
`Created`: Created tracks when the remote resource was first added to state by pulumi. Checkpoints prior to early 2023 do not include this. (Create, Import)
`Modified`: Modified tracks when the resource state was last altered. Checkpoints prior to early 2023 do not include this. (Create, Import, Read, Refresh, Update)

When serialized they will follow RFC3339 with nanoseconds captured by a test case.
https://pkg.go.dev/time#RFC3339

Note: Older versions of pulumi may strip these fields when modifying the state.

For future expansion, when we inevitably need to track other timestamps, we'll add a new "operationTimestamps" field (or something similarly named that clarified these are timestamps of the actual Pulumi operations).

	operationTimestamps: {
		created: ...,
		updated: ...,
		imported: ...,
	}

Fixes https://github.com/pulumi/pulumi/issues/12022
2023-03-27 09:28:26 -07:00
..
testdata [secrets] Fix + refactor bulk decryption. (#9039) 2022-02-25 08:51:52 -08:00
checkpoint.go filestate/internal: Use stack reference, not name 2023-03-16 14:44:33 -07:00
checkpoint_test.go all: Drop ioutil 2023-01-06 16:35:14 -08:00
deployment.go This commit adds the `Created` and `Modified` timestamps to pulumi state that are optional. 2023-03-27 09:28:26 -07:00
deployment_test.go This commit adds the `Created` and `Modified` timestamps to pulumi state that are optional. 2023-03-27 09:28:26 -07:00
doc.go Document Go packages (#6009) 2021-01-11 11:07:59 -07:00
plan.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
secrets.go Move SecretsProvider to pkg/secrets 2023-01-12 19:03:29 +00:00
secrets_test.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00