I have a code pipeline in AWS which performers CI/CD for my react app and deploy it into the s3 bucket.
Now I am curious how can I achieve a rollback in this flow.
my current code pipeline flow is:
git bucket(repo) - > Code build(to build the app into static hosting) - > code deploy action(with action provider s3).
In case anything goes wrong, how can I achieve a rollback into this CI/CD pipeline?