Crown-Commercial-Service / digitalmarketplace-jenkins

Digital Marketplace Jenkins CI instance configuration
MIT License
4 stars 3 forks source link

Create pipeline to rotate AWS tokens #490

Closed bjgill closed 2 years ago

bjgill commented 2 years ago

https://trello.com/c/hsMTMFpi/2445-rotate-aws-access-key

This is a task we need to perform once a quarter for preview and production. I've enhanced rotate-api-tokens.sh to support rotating the AWS token (https://github.com/Crown-Commercial-Service/digitalmarketplace-scripts/pull/779), so use it in a pipeline. Should make the rotations easier and more straightforward.

Won't be able to test this without merging and deploying to Jenkins. But I copied liberally from the other rotation jobs, so I think it's likely to work.