Configuration Template
Provides an Elastic Beanstalk Configuration Template, which are associated with a specific application and are used to deploy different versions of the application with the same configuration settings.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const tftest = new aws.elasticbeanstalk.Application("tftest", {
name: "tf-test-name",
description: "tf-test-desc",
});
const myTemplate = new aws.elasticbeanstalk.ConfigurationTemplate("my_template", {
name: "tf-test-template-config",
application: tftest.name,
solutionStackName: "64bit Amazon Linux 2015.09 v2.0.8 running Go 1.4",
});Content copied to clipboard
import pulumi
import pulumi_aws as aws
tftest = aws.elasticbeanstalk.Application("tftest",
name="tf-test-name",
description="tf-test-desc")
my_template = aws.elasticbeanstalk.ConfigurationTemplate("my_template",
name="tf-test-template-config",
application=tftest.name,
solution_stack_name="64bit Amazon Linux 2015.09 v2.0.8 running Go 1.4")Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var tftest = new Aws.ElasticBeanstalk.Application("tftest", new()
{
Name = "tf-test-name",
Description = "tf-test-desc",
});
var myTemplate = new Aws.ElasticBeanstalk.ConfigurationTemplate("my_template", new()
{
Name = "tf-test-template-config",
Application = tftest.Name,
SolutionStackName = "64bit Amazon Linux 2015.09 v2.0.8 running Go 1.4",
});
});Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/elasticbeanstalk"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
tftest, err := elasticbeanstalk.NewApplication(ctx, "tftest", &elasticbeanstalk.ApplicationArgs{
Name: pulumi.String("tf-test-name"),
Description: pulumi.String("tf-test-desc"),
})
if err != nil {
return err
}
_, err = elasticbeanstalk.NewConfigurationTemplate(ctx, "my_template", &elasticbeanstalk.ConfigurationTemplateArgs{
Name: pulumi.String("tf-test-template-config"),
Application: tftest.Name,
SolutionStackName: pulumi.String("64bit Amazon Linux 2015.09 v2.0.8 running Go 1.4"),
})
if err != nil {
return err
}
return nil
})
}Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.elasticbeanstalk.Application;
import com.pulumi.aws.elasticbeanstalk.ApplicationArgs;
import com.pulumi.aws.elasticbeanstalk.ConfigurationTemplate;
import com.pulumi.aws.elasticbeanstalk.ConfigurationTemplateArgs;
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 tftest = new Application("tftest", ApplicationArgs.builder()
.name("tf-test-name")
.description("tf-test-desc")
.build());
var myTemplate = new ConfigurationTemplate("myTemplate", ConfigurationTemplateArgs.builder()
.name("tf-test-template-config")
.application(tftest.name())
.solutionStackName("64bit Amazon Linux 2015.09 v2.0.8 running Go 1.4")
.build());
}
}Content copied to clipboard
resources:
tftest:
type: aws:elasticbeanstalk:Application
properties:
name: tf-test-name
description: tf-test-desc
myTemplate:
type: aws:elasticbeanstalk:ConfigurationTemplate
name: my_template
properties:
name: tf-test-template-config
application: ${tftest.name}
solutionStackName: 64bit Amazon Linux 2015.09 v2.0.8 running Go 1.4Content copied to clipboard
Option Settings
The setting field supports the following format:
namespace- unique namespace identifying the option's associated AWS resourcename- name of the configuration optionvalue- value for the configuration optionresource- (Optional) resource name for scheduled action