Image Pipeline
Manages an Image Builder Image Pipeline.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.imagebuilder.ImagePipeline("example", {
imageRecipeArn: exampleAwsImagebuilderImageRecipe.arn,
infrastructureConfigurationArn: exampleAwsImagebuilderInfrastructureConfiguration.arn,
name: "example",
schedule: {
scheduleExpression: "cron(0 0 * * ? *)",
},
});
import pulumi
import pulumi_aws as aws
example = aws.imagebuilder.ImagePipeline("example",
image_recipe_arn=example_aws_imagebuilder_image_recipe["arn"],
infrastructure_configuration_arn=example_aws_imagebuilder_infrastructure_configuration["arn"],
name="example",
schedule=aws.imagebuilder.ImagePipelineScheduleArgs(
schedule_expression="cron(0 0 * * ? *)",
))
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.ImageBuilder.ImagePipeline("example", new()
{
ImageRecipeArn = exampleAwsImagebuilderImageRecipe.Arn,
InfrastructureConfigurationArn = exampleAwsImagebuilderInfrastructureConfiguration.Arn,
Name = "example",
Schedule = new Aws.ImageBuilder.Inputs.ImagePipelineScheduleArgs
{
ScheduleExpression = "cron(0 0 * * ? *)",
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/imagebuilder"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := imagebuilder.NewImagePipeline(ctx, "example", &imagebuilder.ImagePipelineArgs{
ImageRecipeArn: pulumi.Any(exampleAwsImagebuilderImageRecipe.Arn),
InfrastructureConfigurationArn: pulumi.Any(exampleAwsImagebuilderInfrastructureConfiguration.Arn),
Name: pulumi.String("example"),
Schedule: &imagebuilder.ImagePipelineScheduleArgs{
ScheduleExpression: pulumi.String("cron(0 0 * * ? *)"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.imagebuilder.ImagePipeline;
import com.pulumi.aws.imagebuilder.ImagePipelineArgs;
import com.pulumi.aws.imagebuilder.inputs.ImagePipelineScheduleArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new ImagePipeline("example", ImagePipelineArgs.builder()
.imageRecipeArn(exampleAwsImagebuilderImageRecipe.arn())
.infrastructureConfigurationArn(exampleAwsImagebuilderInfrastructureConfiguration.arn())
.name("example")
.schedule(ImagePipelineScheduleArgs.builder()
.scheduleExpression("cron(0 0 * * ? *)")
.build())
.build());
}
}
resources:
example:
type: aws:imagebuilder:ImagePipeline
properties:
imageRecipeArn: ${exampleAwsImagebuilderImageRecipe.arn}
infrastructureConfigurationArn: ${exampleAwsImagebuilderInfrastructureConfiguration.arn}
name: example
schedule:
scheduleExpression: cron(0 0 * * ? *)
Import
Using pulumi import
, import aws_imagebuilder_image_pipeline
resources using the Amazon Resource Name (ARN). For example:
$ pulumi import aws:imagebuilder/imagePipeline:ImagePipeline example arn:aws:imagebuilder:us-east-1:123456789012:image-pipeline/example
Properties
Amazon Resource Name (ARN) of the container recipe.
Date the image pipeline was created.
Date the image pipeline was last run.
Date the image pipeline will run next.
Date the image pipeline was updated.
Description of the image pipeline.
Amazon Resource Name (ARN) of the Image Builder Distribution Configuration.
Whether additional information about the image being created is collected. Defaults to true
.
Amazon Resource Name (ARN) of the image recipe.
Configuration block with image scanning configuration. Detailed below.
Configuration block with image tests configuration. Detailed below.
Amazon Resource Name (ARN) of the Image Builder Infrastructure Configuration.
Configuration block with schedule settings. Detailed below.