On a merge to the master
branch, a Jenkins job is kicked off to update an AWS Task Definition with a new Docker image with a new versioned tag.
I'm trying to adopt IAC as much as possible, and this deployment job creates a drift in the state of AWS vs what Pulumi has recorded.
I've considered pushing a latest
tag on a deployment from master and simply restarting the service (which uses the latest
tag rather than a versioned one), but then I lose the strict version control and it makes rollback more difficult.
What's the best way to achieve an automated CICD process while maintaining IAC?