create_configuration_template
¶
create_configuration_template(
application_name: ApplicationName,
template_name: ConfigurationTemplateName,
*,
config_overrides: Optional[ElasticBeanstalkClientConfig] = None,
solution_stack_name: Optional[SolutionStackName] = None,
platform_arn: Optional[PlatformArn] = None,
source_configuration: Optional[SourceConfiguration] = None,
environment_id: Optional[EnvironmentId] = None,
description: Optional[Description] = None,
option_settings: Optional[ConfigurationOptionSettingsList] = None,
tags: Optional[Tags] = None,
) -> ConfigurationSettingsDescription
Creates an Elastic Beanstalk configuration template, associated with a specific Elastic Beanstalk application. You define application configuration settings in a configuration template. You can then use the configuration template to deploy different versions of the application with the same configuration settings.
Templates aren't associated with any environment. The EnvironmentName response element is always null.
Related Topics
Parameters:
-
application_name(ApplicationName) –The name of the Elastic Beanstalk application to associate with this configuration template.
-
template_name(ConfigurationTemplateName) –The name of the configuration template.
Constraint: This name must be unique per application.
-
solution_stack_name(Optional[SolutionStackName], default:None) –The name of an Elastic Beanstalk solution stack (platform version) that this configuration uses. For example,
64bit Amazon Linux 2013.09 running Tomcat 7 Java 7. A solution stack specifies the operating system, runtime, and application server for a configuration template. It also determines the set of configuration options as well as the possible and default values. For more information, see Supported Platforms in the Elastic Beanstalk Developer Guide.You must specify
SolutionStackNameif you don't specifyPlatformArn,EnvironmentId, orSourceConfiguration.Use the
ListAvailableSolutionStacksAPI to obtain a list of available solution stacks. -
platform_arn(Optional[PlatformArn], default:None) –The Amazon Resource Name (ARN) of the custom platform. For more information, see Custom Platforms in the Elastic Beanstalk Developer Guide.
If you specify
PlatformArn, then don't specifySolutionStackName. -
source_configuration(Optional[SourceConfiguration], default:None) –An Elastic Beanstalk configuration template to base this one on. If specified, Elastic Beanstalk uses the configuration values from the specified configuration template to create a new configuration.
Values specified in
OptionSettingsoverride any values obtained from theSourceConfiguration.You must specify
SourceConfigurationif you don't specifyPlatformArn,EnvironmentId, orSolutionStackName.Constraint: If both solution stack name and source configuration are specified, the solution stack of the source configuration template must match the specified solution stack name.
-
environment_id(Optional[EnvironmentId], default:None) –The ID of an environment whose settings you want to use to create the configuration template. You must specify
EnvironmentIdif you don't specifyPlatformArn,SolutionStackName, orSourceConfiguration. -
description(Optional[Description], default:None) –An optional description for this configuration.
-
option_settings(Optional[ConfigurationOptionSettingsList], default:None) –Option values for the Elastic Beanstalk configuration, such as the instance type. If specified, these values override the values obtained from the solution stack or the source configuration template. For a complete list of Elastic Beanstalk configuration options, see Option Values in the Elastic Beanstalk Developer Guide.
-
tags(Optional[Tags], default:None) –Specifies the tags applied to the configuration template.
Raises:
-
InsufficientPrivilegesException–The specified account does not have sufficient privileges for one or more Amazon Web Services services.
-
TooManyBucketsException–The specified account has reached its limit of Amazon S3 buckets.
-
TooManyConfigurationTemplatesException–The specified account has reached its limit of configuration templates.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To create a configuration template The following operation creates a configuration template named my-app-v1 from the settings applied to an environment with the id e-rpqsewtp2j:
>>> client.create_configuration_template(application_name='my-app', template_name='my-app-v1', environment_id='e-rpqsewtp2j')
Source code in docs_src/capo_elastic_beanstalk/_services/elastic_beanstalk.py
715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 | |