Skip to main content

Consume Terraform Output in Spinnaker

Jun 5, 2019 by Alex Bello

We built a Terraform integration into Armory Spinnaker. With this native integration you can easily execute Terraform files and pass the output to other stages in the same pipeline.

If you have a Terraform template configured with Output Values, then you can use the Output stage to parse the output and add it to your pipeline execution context.

Here’s the demo showing how the Output stage works: We’d love to hear your ideas and feedback @ http://go.Armory.io/ideas

If you have a Terraform template that has this:

output "bucket_arn" {
value = "${aws_s3_bucket.my_bucket.arn}"
}

Then you can set up an Output stage that exposes this in the pipeline execution context. For example, if you had an Output stage with the stage name “My Output Stage”, then after running the Output stage, you could access the bucket ARN with this:

${#stage('My Output Stage')["context"]["status"]["outputs"]["bucket_arn"]["value"]}

See full Spinnaker + Terrafrom integration description here.

Armory’s platform exists to help software teams ship better software faster. If you want to try this feature or any other Armory features, you can:

Recently Published Posts

October 20, 2021
|
by Jason McIntosh

Monitoring Spinnaker: Part 1

Overview One of the questions that comes up a lot is how you monitor Spinnaker itself.  Not the apps Spinnaker is deploying, but Spinnaker itself and how it’s performing.  This is a question that has a lot of different answers. There are a few guidelines, but many of the answers are the same as how […]

Read more

October 18, 2021
|
by David Morgenthaler

The Importance of Patents: Interview with Nick Petrella, Head of Legal

    In honor of Armory’s recent acquisition of a patent for continuous software deployment, we sat down with Nick Petrella, Head of Legal, for a casual conversation covering a wide range of subjects, from patent law to Nick’s background as a software engineer and why he made the leap to the law. Check out […]

Read more

October 11, 2021
|
by Carl Timm

Armory Agent for Kubernetes Simplifies K8s Complexity

I’ll be upfront with you, I’m a sucker for a good origin story. It’s one of the reasons I spent hours engrossed in the Marvel Cinematic Universe not too long ago.  Rooting for incredibly flawed individuals with an outsized sense of duty and superpowers to back it up….What’s not to love?  My partner has a […]

Read more