ConfigurationTemplate

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.

Option Settings

The setting field supports the following format:

  • namespace - unique namespace identifying the option’s associated AWS resource
  • name - name of the configuration option
  • value - value for the configuration option
  • resource - (Optional) resource name for scheduled action

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var tftest = new Aws.ElasticBeanstalk.Application("tftest", new Aws.ElasticBeanstalk.ApplicationArgs
        {
            Description = "tf-test-desc",
        });
        var tfTemplate = new Aws.ElasticBeanstalk.ConfigurationTemplate("tfTemplate", new Aws.ElasticBeanstalk.ConfigurationTemplateArgs
        {
            Application = tftest.Name,
            SolutionStackName = "64bit Amazon Linux 2015.09 v2.0.8 running Go 1.4",
        });
    }

}
package main

import (
    "github.com/pulumi/pulumi-aws/sdk/v2/go/aws/elasticbeanstalk"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        tftest, err := elasticbeanstalk.NewApplication(ctx, "tftest", &elasticbeanstalk.ApplicationArgs{
            Description: pulumi.String("tf-test-desc"),
        })
        if err != nil {
            return err
        }
        _, err = elasticbeanstalk.NewConfigurationTemplate(ctx, "tfTemplate", &elasticbeanstalk.ConfigurationTemplateArgs{
            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
    })
}
import pulumi
import pulumi_aws as aws

tftest = aws.elasticbeanstalk.Application("tftest", description="tf-test-desc")
tf_template = aws.elasticbeanstalk.ConfigurationTemplate("tfTemplate",
    application=tftest.name,
    solution_stack_name="64bit Amazon Linux 2015.09 v2.0.8 running Go 1.4")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const tftest = new aws.elasticbeanstalk.Application("tftest", {
    description: "tf-test-desc",
});
const tfTemplate = new aws.elasticbeanstalk.ConfigurationTemplate("tf_template", {
    application: tftest.name,
    solutionStackName: "64bit Amazon Linux 2015.09 v2.0.8 running Go 1.4",
});

Create a ConfigurationTemplate Resource

def ConfigurationTemplate(resource_name, opts=None, application=None, description=None, environment_id=None, name=None, settings=None, solution_stack_name=None, __props__=None);
name string
The unique name of the resource.
args ConfigurationTemplateArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args ConfigurationTemplateArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ConfigurationTemplateArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

ConfigurationTemplate Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The ConfigurationTemplate resource accepts the following input properties:

Application string

name of the application to associate with this configuration template

Description string

Short description of the Template

EnvironmentId string

The ID of the environment used with this configuration template

Name string

A unique name for this Template.

Settings List<ConfigurationTemplateSettingArgs>

Option settings to configure the new Environment. These override specific values that are set as defaults. The format is detailed below in Option Settings

SolutionStackName string

A solution stack to base your Template off of. Example stacks can be found in the Amazon API documentation

Application string

name of the application to associate with this configuration template

Description string

Short description of the Template

EnvironmentId string

The ID of the environment used with this configuration template

Name string

A unique name for this Template.

Settings []ConfigurationTemplateSetting

Option settings to configure the new Environment. These override specific values that are set as defaults. The format is detailed below in Option Settings

SolutionStackName string

A solution stack to base your Template off of. Example stacks can be found in the Amazon API documentation

application string

name of the application to associate with this configuration template

description string

Short description of the Template

environmentId string

The ID of the environment used with this configuration template

name string

A unique name for this Template.

settings ConfigurationTemplateSetting[]

Option settings to configure the new Environment. These override specific values that are set as defaults. The format is detailed below in Option Settings

solutionStackName string

A solution stack to base your Template off of. Example stacks can be found in the Amazon API documentation

application str

name of the application to associate with this configuration template

description str

Short description of the Template

environment_id str

The ID of the environment used with this configuration template

name str

A unique name for this Template.

settings List[ConfigurationTemplateSetting]

Option settings to configure the new Environment. These override specific values that are set as defaults. The format is detailed below in Option Settings

solution_stack_name str

A solution stack to base your Template off of. Example stacks can be found in the Amazon API documentation

Outputs

All input properties are implicitly available as output properties. Additionally, the ConfigurationTemplate resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.

Look up an Existing ConfigurationTemplate Resource

Get an existing ConfigurationTemplate resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

static get(resource_name, id, opts=None, application=None, description=None, environment_id=None, name=None, settings=None, solution_stack_name=None, __props__=None);
func GetConfigurationTemplate(ctx *Context, name string, id IDInput, state *ConfigurationTemplateState, opts ...ResourceOption) (*ConfigurationTemplate, error)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

Application string

name of the application to associate with this configuration template

Description string

Short description of the Template

EnvironmentId string

The ID of the environment used with this configuration template

Name string

A unique name for this Template.

Settings List<ConfigurationTemplateSettingArgs>

Option settings to configure the new Environment. These override specific values that are set as defaults. The format is detailed below in Option Settings

SolutionStackName string

A solution stack to base your Template off of. Example stacks can be found in the Amazon API documentation

Application string

name of the application to associate with this configuration template

Description string

Short description of the Template

EnvironmentId string

The ID of the environment used with this configuration template

Name string

A unique name for this Template.

Settings []ConfigurationTemplateSetting

Option settings to configure the new Environment. These override specific values that are set as defaults. The format is detailed below in Option Settings

SolutionStackName string

A solution stack to base your Template off of. Example stacks can be found in the Amazon API documentation

application string

name of the application to associate with this configuration template

description string

Short description of the Template

environmentId string

The ID of the environment used with this configuration template

name string

A unique name for this Template.

settings ConfigurationTemplateSetting[]

Option settings to configure the new Environment. These override specific values that are set as defaults. The format is detailed below in Option Settings

solutionStackName string

A solution stack to base your Template off of. Example stacks can be found in the Amazon API documentation

application str

name of the application to associate with this configuration template

description str

Short description of the Template

environment_id str

The ID of the environment used with this configuration template

name str

A unique name for this Template.

settings List[ConfigurationTemplateSetting]

Option settings to configure the new Environment. These override specific values that are set as defaults. The format is detailed below in Option Settings

solution_stack_name str

A solution stack to base your Template off of. Example stacks can be found in the Amazon API documentation

Supporting Types

ConfigurationTemplateSetting

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

Name string

A unique name for this Template.

Namespace string
Value string
Resource string
Name string

A unique name for this Template.

Namespace string
Value string
Resource string
name string

A unique name for this Template.

namespace string
value string
resource string
name str

A unique name for this Template.

namespace str
value str
resource str

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.