My IAM policy is listed as 'delete' with no replac...
# aws
f
My IAM policy is listed as 'delete' with no replacement even though I still have it defined. Is that just a UI quirk?
My PolicyAttachment that references the ARN is empty. no policyArn = Output<string>. just shows it as being removed from the PolicyAttachment.
l
Are you creating it inside an apply?
If you're previewing, and the resource is inside an apply that depends on a cloud resource, then the resource won't be known about because the code inside the apply isn't being run during a preview.
If this is the case, then you need to rework your code to not create resources inside the apply.