We use machine learning technology to do auto-translation. Click "English" on top navigation bar to check Chinese version.
Xcel Energy migrates CI/CD to Amazon Web Services Fargate for 60x faster deployments at 82x lower cost
Digitization is transforming the energy industry. However, at
Xcel Energy is a leader in the clean energy transition to a more sustainable future. In December 2018, Xcel Energy was the first major US energy provider to
Xcel Energy teams were using the open-source tools Spinnaker and Jenkins to control complex Kubernetes deployments on persistent servers in
Serverless technologies allow you to pay only for what you use and greatly reduce the overhead of scaling, patching, securing, and managing servers. To simplify Xcel Energy’s CI/CD infrastructure, Keith turned to
Keith exceeded his expectations. “After migrating to Amazon Web Services Fargate, we saw our jobs run 6,000 percent faster and our monthly infrastructure bill drop by 8,200 percent. I was astonished that our monthly server bill went from several thousand dollars to less than $100. What we had measured in weeks all of a sudden became days or even minutes. I cannot overstate how transformational this has been.”
Beyond speed and cost: Serverless containers strengthen security and facilitate effortless scaling
Cost and speed weren’t the only gains. “When I first built the infrastructure, I was supplying one team of about 30 people with a pipeline. Now, I’m serving 700 engineers and about 40 teams.” Even with the larger workload, Keith’s turnaround time is dramatically faster. It required effort to set up the automation, but a software build that previously took 15 minutes to deploy takes just 15 seconds today.
Everything was rebuilt in GitLab using declarative languages (like YAML and Terraform), which are easier to learn, use, and template. Moving everyone from Jenkins to GitLab, where everything runs as a Docker image, eliminated several previously necessary steps. Images can be prebuilt and deemed secure without having to build out dependencies. A developer downstream simply pulls a prebuilt image into their code and it runs.
Scaling up is also faster and simpler. Prior to using Amazon Web Services Fargate, if Keith wanted to add pods or nodes, his team would spend about a half day editing Terraform code and testing changes. “Using Amazon Web Services Fargate,” Keith reports, “our worker runners request to run jobs, our cluster asks for more pods, and Amazon Web Services Fargate provisions the pods into their specific namespaces. If the pod can’t fit into existing cluster nodes, Amazon Web Services Fargate pulls a new node, and within 2 minutes a node is attached, and our pod is running on it.”
Such dramatic speed and scale improvements often raise security concerns, but Xcel Energy noted several security improvements after migrating to Amazon Web Services Fargate. For instance, when a job is called through a branch update, the temporary pod is provisioned in Amazon Web Services, it runs its tasks, and then it terminates when finished. The pod is gone forever; Keith’s team is no longer monitoring logs on idle, persistent infrastructure to protect against attack.
Amazon Web Services Fargate also added a layer of identity and access management (IAM) security. Previously, all authentications had to be done in pipeline scripts, which allowed security engineers and administrators to potentially view credentials that they didn’t need access to. Now, when a developer runs a command, they don’t have to manage authentication. Integration of Amazon Web Services Fargate with IAM roles allows Amazon Web Services to handle secure machine-to-machine connectivity so the scripts can connect directly, simultaneously speeding up jobs because the scripts no longer contain authentication steps.
“Altogether,” Keith summarizes, “with these improvements to authentication, persistence, scaling, supportability, and cost, we have created a smoother, more secure developer experience.”
Transforming disaster recovery, streamlining operations, and accelerating change
By using Amazon Web Services to streamline its CI/CD pipeline, Xcel Energy is more confident in its disaster recovery capabilities. If a cluster fails, the serverless environment enables Keith’s team to spin up all 12 GitLab runners in just 23 seconds using parallel initiations and horizontal scaling. Being able to recover his entire runner fleet in under 1 minute is transformational for Keith, who would’ve spent 1–3 weeks rebuilding his previous environment.
Keith is now maintaining CI/CD infrastructure for all of Xcel Energy, and he is enthusiastic about the “sheer ease of use” of Amazon Web Services Fargate. Supporting 40 teams wouldn’t have been possible in his previous environment. “That’s only the tip of this iceberg,” he said. “There is so much more that I can do now. It is awesome to see the possibilities open up.”
These innovations have made Xcel Energy’s infrastructure more reliable while also dramatically reducing its cloud spend, which is savings the company can pass directly to its customers. Its development environment continues to get faster and better, and Keith gets to focus on more challenging work to facilitate change. “I’m a platform engineer, so my day should be spent platforming things. By adopting Amazon Web Services Fargate, I can focus on innovation. The growth of digital solutions at Xcel Energy is reducing overhead costs, increasing agility, improving security, and helping us deliver cleaner energy to our 3.7 million electricity and 2.1 million natural gas customers.”
Xcel Energy set an aggressive interim target to reduce carbon emissions by more than 80 percent by 2030. As Xcel Energy accelerates toward its
Learn more
See how
Or watch a video highlighting
To learn more about how Amazon Web Services is helping transform the energy industry and optimize businesses, visit the
The mentioned AWS GenAI Services service names relating to generative AI are only available or previewed in the Global Regions. Amazon Web Services China promotes AWS GenAI Services relating to generative AI solely for China-to-global business purposes and/or advanced technology introduction.