acceptable-oyster-7852
03/18/2024, 8:58 PMpulumi.Import(pulumi.ID(accessKey.AccessKeyId))
or building an ignoreList []string
and filling it with these key ids and feeding this list into pulumi.IgnoreChanges(ignoreList)
but neither prevents things from showing Pulumi is going to delete IAM keys that it had previously created.
The existing code was always doing an iam.NewAccessKey(...)
and now I'm not doing this if a key is found by querying iam.GetAccessKeys(...)
. I'm guessing this is related but the documentation I found around importing resources and coexistence didn't lead me beyond what I mention above. Any thoughts our suggestions would be greatly appreciated.
[1] https://github.com/aws-samples/aws-iam-access-key-auto-rotationacceptable-oyster-7852
03/19/2024, 12:15 AM