Back to all patterns
Table of Contents
About
Development Tool
pulumiType
patternLicense
map[label:Apache 2.0 link:https://github.com/pulumi/examples/blob/master/LICENSE]Use Pulumi Crosswalk to automate container image builds
How to use Pulumi infrastructure as code SDK to automate building a container image
Nathan Peck
Senior Developer Advocate at AWS
Pulumi is an infrastructure as code framework for software engineers. Instead of writing YAML to define your infrastructure you can use higher level SDK commands, in a familiar programming language, and Pulumi will create the necessary resources for you automatically.
Build a container image and push it to Elastic Container Registry
Pulumi can automate conatiner image builds so that you no longer have to run docker build and
docker push manually as part of the deploy process. Instead Pulumi will automatically create
a private Elastic Container Registry, build your container image, and push it to the registry.
Then you can use the built image in a load balanced service like this:
File: build-image.ts
Language: ts
|
|
File: build-image.py
Language: py
|
|
File: build-image.go
Language: go
|
|
File: build-image.java
Language: java
|
|
File: build-image.yml
Language: yml
|
|
File: build-image.cs
Language: cs
|
|