<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Spinnaker – AWS EC2 Server Group Launch Settings</title>
    <link>https://deploy-preview-629--spinnaker-io.netlify.app/docs/setup/other_config/server-group-launch-settings/aws-ec2/</link>
    <description>Recent content in AWS EC2 Server Group Launch Settings on Spinnaker</description>
    <generator>Hugo -- gohugo.io</generator>
    
	  <atom:link href="https://deploy-preview-629--spinnaker-io.netlify.app/docs/setup/other_config/server-group-launch-settings/aws-ec2/index.xml" rel="self" type="application/rss+xml" />
    
    
      
        
      
    
    
    <item>
      <title>Docs: AWS EC2 Launch Templates Setup</title>
      <link>https://deploy-preview-629--spinnaker-io.netlify.app/docs/setup/other_config/server-group-launch-settings/aws-ec2/launch-templates-setup/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://deploy-preview-629--spinnaker-io.netlify.app/docs/setup/other_config/server-group-launch-settings/aws-ec2/launch-templates-setup/</guid>
      <description>
        
        
        &lt;blockquote&gt;
&lt;p&gt;Please note that you should only proceed with this if you have 
&lt;a href=&#34;https://deploy-preview-629--spinnaker-io.netlify.app/setup/install/providers/aws/aws-ec2&#34;&gt;AWS EC2&lt;/a&gt;
 configured as a cloud provider. These features require 1.24 (although some features were launched in previous releases leading up to 1.24).&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;AWS uses 
&lt;a href=&#34;https://docs.aws.amazon.com/autoscaling/ec2/userguide/LaunchTemplates.html&#34; target=&#34;_blank&#34;&gt;launch templates&lt;/a&gt;
 to specify instance configuration information. Launch templates are the successor of launch configurations. This means that any new instance configuration feature from AWS will only be supported by launch templates.&lt;/p&gt;
&lt;p&gt;Spinnaker still supports launch configurations for backwards compatibility, but recommends enabling launch templates to access any new features that AWS adds.&lt;/p&gt;
&lt;h2 id=&#34;setup-steps&#34;&gt;Setup Steps&lt;/h2&gt;
&lt;p&gt;This section summarizes the steps required to set up launch templates if you are new to using AWS in Spinnaker or if you have already been using AWS as one of your cloud providers.&lt;/p&gt;
&lt;h3 id=&#34;new-to-aws&#34;&gt;New to AWS&lt;/h3&gt;
&lt;p&gt;If you are new to Spinnaker or even just new to AWS in Spinnaker, we recommend immediately enabling launch template support for all applications.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Update your Clouddriver configuration file, usually &lt;code&gt;clouddriver.yml&lt;/code&gt;, to enable launch templates for all applications.
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-yml&#34; data-lang=&#34;yml&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#34;&gt;  &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;aws.features.launch-templates.enabled&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#34;&gt; &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;true&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#34;&gt;  &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;aws.features.launch-templates.all-applications.enabled&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#34;&gt; &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;true&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;Read through the available launch template supported 
&lt;a href=&#34;https://deploy-preview-629--spinnaker-io.netlify.app/docs/setup/other_config/server-group-launch-settings/aws-ec2/launch-templates&#34;&gt;features&lt;/a&gt;
 to determine which features make sense for your users.&lt;/li&gt;
&lt;li&gt;Update AWS settings in &lt;code&gt;settings-local.js&lt;/code&gt; of Deck to enable launch templates and the features you identified. Ensure that &lt;code&gt;enableLaunchTemplates&lt;/code&gt; is &lt;code&gt;true&lt;/code&gt;.
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-js&#34; data-lang=&#34;js&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#204a87&#34;&gt;window&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#000&#34;&gt;spinnakerSettings&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#000&#34;&gt;providers&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#000&#34;&gt;aws&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#000&#34;&gt;serverGroups&lt;/span&gt; &lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#000&#34;&gt;enableLaunchTemplates&lt;/span&gt;&lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;true&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#000&#34;&gt;enableIPv6&lt;/span&gt;&lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;true&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#000&#34;&gt;enableIMDSv2&lt;/span&gt;&lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;true&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#000&#34;&gt;enableCpuCredits&lt;/span&gt;&lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;true&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;};&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id=&#34;current-aws-user&#34;&gt;Current AWS User&lt;/h3&gt;
&lt;p&gt;If you already use AWS as a cloud provider in Spinnaker, we recommend migrating to launch templates. Since there may be pre-existing dependencies on launch configurations, we have created some rollout configurations you can utilize for testing and/or migration.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Update &lt;code&gt;clouddriver.yml&lt;/code&gt;. This step can be repeated as needed throughout your rollout. This is an example config where launch templates is rolled out to two applications in production and all of the test account. It also excludes one application completely:
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-yml&#34; data-lang=&#34;yml&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#34;&gt;  &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;aws.features.launch-templates.enabled&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#34;&gt; &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;true&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#34;&gt;  &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;aws.features.launch-templates.allowed-applications&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#34;&gt; &lt;/span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;myapp:prod:us-east-1,anotherapp:prod:us-east-1&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#34;&gt;  &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;aws.features.launch-templates.allowed-accounts&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#34;&gt; &lt;/span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;test&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#34;&gt;  &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;aws.features.launch-templates.excluded-applications&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#34;&gt; &lt;/span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#34;dangerousapp&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;Review the 
&lt;a href=&#34;#rollout-configuration&#34;&gt;rollout configurations&lt;/a&gt;
 and determine which of these you can &lt;em&gt;temporarily&lt;/em&gt; utilize for your rollout. If you do not need to rollout, stop here and follow the 
&lt;a href=&#34;#new-to-aws&#34;&gt;new AWS users&lt;/a&gt;
 steps instead.&lt;/li&gt;
&lt;li&gt;Read through the available launch template supported 
&lt;a href=&#34;https://deploy-preview-629--spinnaker-io.netlify.app/docs/setup/other_config/server-group-launch-settings/aws-ec2/launch-templates&#34;&gt;features&lt;/a&gt;
 to determine which features make sense for your users.&lt;/li&gt;
&lt;li&gt;Update AWS settings in &lt;code&gt;settings-local.js&lt;/code&gt; of Deck to enable launch templates and the features you identified. Ensure that &lt;code&gt;enableLaunchTemplates&lt;/code&gt; is &lt;code&gt;true&lt;/code&gt;.
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-js&#34; data-lang=&#34;js&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#8f5902;font-style:italic&#34;&gt;// enable launch templates for AWS
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#8f5902;font-style:italic&#34;&gt;&lt;/span&gt;&lt;span style=&#34;color:#204a87&#34;&gt;window&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#000&#34;&gt;spinnakerSettings&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#000&#34;&gt;providers&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#000&#34;&gt;aws&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#000&#34;&gt;serverGroups&lt;/span&gt; &lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#000&#34;&gt;enableLaunchTemplates&lt;/span&gt;&lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;true&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#000&#34;&gt;enableIPv6&lt;/span&gt;&lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;true&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#000&#34;&gt;enableIMDSv2&lt;/span&gt;&lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;true&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#000&#34;&gt;enableCpuCredits&lt;/span&gt;&lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;true&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;};&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;When you are ready for a complete rollout, enable launch templates for all applications and clean up rollout config in &lt;code&gt;clouddriver.yml&lt;/code&gt;.
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-yml&#34; data-lang=&#34;yml&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;aws.features.launch-templates.enabled&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#34;&gt; &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;true&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#34;&gt;&lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;aws.features.launch-templates.all-applications.enabled&lt;/span&gt;&lt;span style=&#34;color:#000;font-weight:bold&#34;&gt;:&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#34;&gt; &lt;/span&gt;&lt;span style=&#34;color:#204a87;font-weight:bold&#34;&gt;true&lt;/span&gt;&lt;span style=&#34;color:#f8f8f8;text-decoration:underline&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;rollout-configuration&#34;&gt;Rollout Configuration&lt;/h2&gt;
&lt;p&gt;If you already use AWS, then your applications may have some dependencies on launch configurations that prevent simple feature enabling. The configuration options below were created to aid with testing or a rollout period. Feel free to use whatever combination is best for you.
If you would prefer to &lt;strong&gt;skip a rollout&lt;/strong&gt;, use the configuration in 
&lt;a href=&#34;#new-to-aws&#34;&gt;New to AWS&lt;/a&gt;
.&lt;/p&gt;
&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;Config&lt;/th&gt;
      &lt;th&gt;Type&lt;/th&gt;
      &lt;th&gt;Description&lt;/th&gt;
      &lt;th&gt;Example&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;allowed-applications&lt;/td&gt;
      &lt;td&gt;String&lt;/td&gt;
      &lt;td&gt;A comma-separated list of one or more allowed applications scoped by account-region pairs (&#34;app:account:region&#34;). This helps with preliminary controlled testing on a handful of applications.&lt;/td&gt;
      &lt;td&gt;&#34;testapp:prod:us-east-1&#34;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;allowed-accounts-regions&lt;/td&gt;
      &lt;td&gt;String&lt;/td&gt;
      &lt;td&gt;A comma-separated list of allowed account-region pairs. This is good for incrementally rolling out to regions within accounts.&lt;/td&gt;
      &lt;td&gt;&#34;test:us-east-1&#34;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;allowed-accounts&lt;/td&gt;
      &lt;td&gt;String&lt;/td&gt;
      &lt;td&gt;A comma-separated list of allowed accounts. This is good for incrementally rolling out launch templates from test to production accounts.&lt;/td&gt;
      &lt;td&gt;&#34;test&#34;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;excluded-accounts&lt;/td&gt;
      &lt;td&gt;String&lt;/td&gt;
      &lt;td&gt;A comma-separated list of accounts to exclude from rollout.&lt;/td&gt;
      &lt;td&gt;&#34;prod&#34;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;excluded-applications&lt;/td&gt;
      &lt;td&gt;String&lt;/td&gt;
      &lt;td&gt;A comma-separated list of applications to exclude from rollout. This helps prevent any edge cases from delaying a wide rollout..&lt;/td&gt;
      &lt;td&gt;&#34;myapp1,myapp2&#34;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;all-applications.enabled&lt;/td&gt;
      &lt;td&gt;Boolean&lt;/td&gt;
      &lt;td&gt;Allows launch templates on any application, except for those that have been excluded. This will override any of the allowed lists, and widely rollout launch templates.&lt;/td&gt;
      &lt;td&gt;true&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
&lt;h2 id=&#34;feature-configuration&#34;&gt;Feature Configuration&lt;/h2&gt;
&lt;p&gt;Learn more about the feature set along with sample API requests 
&lt;a href=&#34;https://deploy-preview-629--spinnaker-io.netlify.app/docs/setup/other_config/server-group-launch-settings/aws-ec2/launch-templates&#34;&gt;here&lt;/a&gt;
.&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Docs: AWS EC2 Launch Templates</title>
      <link>https://deploy-preview-629--spinnaker-io.netlify.app/docs/setup/other_config/server-group-launch-settings/aws-ec2/launch-templates/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://deploy-preview-629--spinnaker-io.netlify.app/docs/setup/other_config/server-group-launch-settings/aws-ec2/launch-templates/</guid>
      <description>
        
        
        &lt;blockquote&gt;
&lt;p&gt;Launch Template Support must be enabled in order to use the features described in this page.
Follow guidelines 
&lt;a href=&#34;https://deploy-preview-629--spinnaker-io.netlify.app/docs/setup/other_config/server-group-launch-settings/aws-ec2/launch-templates-setup&#34;&gt;here&lt;/a&gt;
 to enable the feature set.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;Note: The features supported in the UI (Deck) come with tool tips that can help you learn the new features.
Consider trying them out in Deck, especially if they are new to you.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2 id=&#34;feature-configuration&#34;&gt;Feature Configuration&lt;/h2&gt;
&lt;p&gt;Once launch templates support is enabled in Clouddriver, a new set of features are unlocked.
Some of them are tied to the EC2 launch template directly like &lt;code&gt;IMDSV2&lt;/code&gt; and
others require a launch template to be used in order to support features like &lt;code&gt;SpotAllocationStrategy&lt;/code&gt; (
&lt;a href=&#34;https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_MixedInstancesPolicy.html&#34; target=&#34;_blank&#34;&gt;MixedInstancesPolicy&lt;/a&gt;
 features).&lt;/p&gt;
&lt;p&gt;Review the sections below for details about the features and sample use cases along with Spinnaker API requests.&lt;/p&gt;
&lt;h3 id=&#34;launch-template-only-parameters&#34;&gt;Launch Template Only Parameters&lt;/h3&gt;
&lt;p&gt;Review the sections below to determine which features you want to enable in the Spinnaker UI / Deck.
Users will see enabled features as options when configuring a Server Group.&lt;/p&gt;
&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;Feature&lt;/th&gt;
      &lt;th style=&#34;width=50%;&#34;&gt;Description&lt;/th&gt;
      &lt;th&gt;Deck Setting&lt;/th&gt;
      &lt;th&gt;Clouddriver API Request Parameter&lt;/th&gt;
      &lt;th&gt;Release Version&lt;/th&gt;
      &lt;th&gt;Default value in Spinnaker&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;IPv6&lt;/td&gt;
      &lt;td&gt;ASGs associate an IPv6 address to their instances.&lt;/td&gt;
      &lt;td&gt;&lt;em&gt;enableIPv6&lt;/em&gt;&lt;/td&gt;
      &lt;td&gt;&lt;em&gt;associateIPv6Address&lt;/em&gt;&lt;/td&gt;
      &lt;td&gt;&lt;em&gt;v1.21&lt;/em&gt;&lt;/td&gt;
      &lt;td&gt;no default&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;IMDSv2&lt;/td&gt;
      &lt;td&gt;Helps mitigate AWS credential theft from the exploitation of SSRF vulnerabilities in web applications. This is only supported by modern SDKs. &lt;font size=&#34;-1&#34;&gt;Learn more from &lt;a target=&#34;_blank&#34; href=&#34;https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-credits-baseline-concepts.html&#34;&gt;AWS&lt;/a&gt;.&lt;/font&gt;&lt;/td&gt;
      &lt;td&gt;&lt;em&gt;enableIMDSv2&lt;/em&gt;&lt;/td&gt;
      &lt;td&gt;&lt;em&gt;requireIMDSv2&lt;/em&gt;&lt;/td&gt;
      &lt;td&gt;&lt;em&gt;v1.21&lt;/em&gt;&lt;/td&gt;
      &lt;td&gt;false&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;CreditSpecification&lt;/td&gt;
      &lt;td&gt;The credit option for CPU usage of the instance.
      Valid for burstable performance EC2 instances only. &lt;font size=&#34;-1&#34;&gt;Learn more from &lt;a target=&#34;_blank&#34; href=&#34;https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-credits-baseline-concepts.html&#34;&gt;AWS&lt;/a&gt;.&lt;/font&gt;&lt;/td&gt; 
      &lt;td&gt;&lt;em&gt;enableCpuCredits&lt;/em&gt;&lt;/td&gt;
      &lt;td&gt;&lt;em&gt;unlimitedCpuCredits&lt;/em&gt;&lt;/td&gt;
      &lt;td&gt;&lt;em&gt;v1.24&lt;/em&gt;&lt;/td&gt;
      &lt;td&gt;&lt;a target=&#34;_blank&#34; href=&#34;https://github.com/spinnaker/clouddriver/blob/master/clouddriver-aws/src/main/groovy/com/netflix/spinnaker/clouddriver/aws/deploy/handlers/BasicAmazonDeployHandler.groovy#L488&#34;&gt;
          default &lt;em&gt;false&lt;/em&gt;&lt;/a&gt; used only when all instance types in request support bursting.
      &lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
&lt;h3 id=&#34;additional-features&#34;&gt;Additional Features&lt;/h3&gt;
&lt;p&gt;Enabling launch template support also unlocks additional features offered by Amazon EC2 Auto Scaling that facilitate diversified server groups:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Multiple instance types&lt;/li&gt;
&lt;li&gt;Multiple purchase options (On-Demand / Spot) with proportion control&lt;/li&gt;
&lt;li&gt;Allocation strategies&lt;/li&gt;
&lt;li&gt;Capacity rebalancing&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Follow 
&lt;a href=&#34;https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-best-practices.html&#34; target=&#34;_blank&#34;&gt;AWS recommended best practices for EC2 Spot&lt;/a&gt;
 to improve your experience with EC2 Spot.&lt;/p&gt;
&lt;p&gt;Motivation to diversify instances in your Server Group:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Reduce costs by diversifying instances across purchase options and Spot allocation strategies. See AWS docs to learn more about 
&lt;a href=&#34;https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-best-practices.html&#34; target=&#34;_blank&#34;&gt;how to use Spot&lt;/a&gt;
.&lt;/li&gt;
&lt;li&gt;Reduce costs and optimize resources with instance weighting.&lt;/li&gt;
&lt;li&gt;Enhance availability by deploying your application across multiple instance types running in multiple Availability Zones.&lt;/li&gt;
&lt;li&gt;Enhance availability by proactively augmenting your fleet with a new Spot instance from an optimal pool, before a running instance is interrupted by EC2, by enabling 
&lt;a href=&#34;https://docs.aws.amazon.com/autoscaling/ec2/userguide/capacity-rebalance.html&#34; target=&#34;_blank&#34;&gt;capacity rebalance&lt;/a&gt;
.&lt;/li&gt;
&lt;li&gt;Reduce probability of 
&lt;a href=&#34;https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/troubleshooting-launch.html#troubleshooting-launch-capacity&#34; target=&#34;_blank&#34;&gt;InsufficientInstanceCapacity&lt;/a&gt;
 exceptions with flexible instance configuration.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Using one or more parameters in the table below will automatically create Server Groups with instances distribution configuration specified, and will use AWS defaults for the parameters not specified.
Note that a number of these parameters complement each other. So, combining them can greatly enhance your AWS experience.&lt;/p&gt;
&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;Category&lt;/th&gt;
      &lt;th&gt;Feature / Clouddriver API Request Parameter&lt;/th&gt;
      &lt;th style=&#34;width=50%;&#34;&gt;Description&lt;/th&gt;
      &lt;th&gt;AWS Default&lt;/th&gt;
      &lt;th&gt;Clouddriver Release Version&lt;/th&gt;
      &lt;th&gt;Deck Setting&lt;/th&gt;
      &lt;th&gt;Deck Release Version&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td rowspan=&#34;3&#34;&gt;Multiple instance types with instance weighting and priority, with launch template overrides. 
          &lt;br/&gt;&lt;br/&gt;Properties overridden will replace the same properties in launch template.
          &lt;br/&gt;&lt;br/&gt;AWS docs: 
          &lt;br/&gt;&lt;a target=&#34;_blank&#34; href=&#34;https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-instance-weighting.html&#34;&gt;Instance Weighting&lt;/a&gt;
      &lt;/td&gt;
      &lt;td&gt;&lt;em&gt;launchTemplateOverridesForInstanceType.instanceType&lt;/em&gt;&lt;/td&gt;
      &lt;td&gt;Instance Type to override&lt;/td&gt;
      &lt;td&gt;no default&lt;/td&gt;
      &lt;td rowspan=&#34;2&#34;&gt;v1.26&lt;/td&gt;
      &lt;td rowspan=&#34;3&#34;&gt;Instance Types / LaunchTemplate -&gt; Instance Types&lt;/td&gt;
      &lt;td rowspan=&#34;9&#34;&gt;v1.28&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;em&gt;launchTemplateOverridesForInstanceType.weightedCapacity&lt;/em&gt;&lt;/td&gt;
      &lt;td&gt;The number of capacity units for the specified instance type in terms of virtual CPUs, memory, storage, throughput, or other relative performance characteristic. 
          The capacity units count toward the desired capacity.&lt;/td&gt;
      &lt;td&gt;1&lt;br/&gt;i.e. if no weighted capacity is specified, all instance types (large or small) are treated as the same weight.&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;em&gt;launchTemplateOverridesForInstanceType.priority&lt;/em&gt;&lt;/td&gt;
      &lt;td&gt;Optional priority for instance type. Lower the number, higher the priority. If unset, the launch template override has the lowest priority.
            &lt;br/&gt;The order of instance types in the list of launch template overrides sent to AWS is set from highest to lowest priority.
        &lt;br/&gt;&lt;br/&gt;Valid values: integer &gt; 0.
     &lt;/td&gt;
      &lt;td&gt;first to last in list&lt;/td&gt;
      &lt;td&gt;v1.27&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td rowspan=&#34;3&#34;&gt;On-Demand
         &lt;br/&gt;&lt;br/&gt;AWS docs: 
         &lt;br/&gt;&lt;a target=&#34;_blank&#34; href=&#34;https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html&#34;&gt;Instances Distribution&lt;/a&gt;
      &lt;/td&gt;
      &lt;td&gt;&lt;em&gt;onDemandAllocationStrategy&lt;/em&gt;&lt;/td&gt;
      &lt;td&gt;Indicates how to allocate instance types to fulfill On-Demand capacity. The only valid value is &lt;em&gt;prioritized&lt;/em&gt;.
          &lt;br/&gt;&lt;br/&gt;This strategy uses the order of instance types in the launch template overrides to define the launch priority of each instance type. 
          The first instance type in the list is prioritized higher than the last.&lt;/td&gt;
      &lt;td&gt;&lt;em&gt;prioritized&lt;/em&gt;&lt;/td&gt;
      &lt;td rowspan=&#34;6&#34;&gt;v1.26&lt;/td&gt;
      &lt;td rowspan=&#34;6&#34;&gt;Instance Types -&gt; Instances Distribution / Instances Distribution&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;em&gt;onDemandBaseCapacity&lt;/em&gt;&lt;/td&gt;
      &lt;td&gt;The minimum amount of the Server Group&#39;s capacity that must be fulfilled by On-Demand Instances.
          &lt;br/&gt;&lt;br/&gt;&lt;b&gt;NOTE&lt;/b&gt;: &lt;em&gt;If weights are specified for the instance types in the overrides, set the value of OnDemandBaseCapacity in terms of the number of capacity units, and not number of instances.&lt;/em&gt;&lt;/td&gt;
      &lt;td&gt;0&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;em&gt;onDemandPercentageAboveBaseCapacity&lt;/em&gt;&lt;/td&gt;
      &lt;td&gt;The percentages of On-Demand Instances and Spot Instances for additional capacity beyond &lt;em&gt;OnDemandBaseCapacity&lt;/em&gt;.&lt;/td&gt;
      &lt;td&gt;100&lt;br/&gt;i.e. only On-Demand instances&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td rowspan=&#34;4&#34;&gt;Spot
         &lt;br/&gt;&lt;br/&gt;AWS docs: 
         &lt;br/&gt;* &lt;a target=&#34;_blank&#34; href=&#34;https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html&#34;&gt;Instance Distribution&lt;/a&gt;
         &lt;br/&gt;* &lt;a target=&#34;_blank&#34; href=&#34;https://docs.aws.amazon.com/autoscaling/ec2/userguide/capacity-rebalance.html&#34;&gt;ASG Capacity Rebalance&lt;/a&gt;
         &lt;br/&gt;* &lt;a target=&#34;_blank&#34; href=&#34;https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/rebalance-recommendations.html&#34;&gt;EC2 Instance Rebalance Recommendations&lt;/a&gt;
      &lt;/td&gt;
      &lt;td&gt;&lt;em&gt;spotAllocationStrategy&lt;/em&gt;&lt;/td&gt;
      &lt;td&gt;Indicates how to allocate instances across Spot Instance pools. 2 strategies:
          &lt;br/&gt;1) capacity-optimized (recommended): instances launched using Spot pools that are optimally chosen based on the available Spot capacity.
          &lt;br/&gt;2) lowest-price: instances launched using Spot pools with the lowest price, and evenly allocated across the number of Spot pools specified in spotInstancePools.
      &lt;/td&gt;
      &lt;td&gt;&lt;em&gt;lowest-price&lt;/em&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;em&gt;spotInstancePools&lt;/em&gt;&lt;/td&gt;
      &lt;td&gt;The number of Spot Instance pools across which to allocate Spot Instances. 
          The Spot pools are determined from the different instance types in the overrides.
          Only applicable with &#39;lowest-price&#39; spotAllocationStrategy.
      &lt;/td&gt;
      &lt;td&gt;2&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;em&gt;spotPrice&lt;/em&gt;&lt;/td&gt;
      &lt;td&gt;The maximum price per unit hour that the user is willing to pay for a Spot Instance.&lt;/td&gt;
      &lt;td&gt;On-Demand price for the configuration&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;em&gt;capacityRebalance&lt;/em&gt;&lt;/td&gt;
      &lt;td&gt;Enable to allow Amazon EC2 Auto Scaling to attempt proactive replacement of Spot Instances in the server group that have received a rebalance recommendation (i.e. at elevated risk of interruption), &lt;b&gt;before&lt;/b&gt; they are interrupted by AWS EC2.
          Note: Enabling this feature could exceed the server group&#39;s max capacity for a brief period of time, leading to higher costs. Learn more in AWS docs.&lt;/td&gt;
      &lt;td&gt;false &lt;br/&gt;i.e. disabled&lt;/td&gt;
      &lt;td&gt;v1.27&lt;/td&gt;
      &lt;td&gt;Advanced Settings -&gt; capcity rebalance&lt;/td&gt;
      &lt;td&gt;v1.27&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
&lt;h2 id=&#34;use-cases--sample-api-requests&#34;&gt;Use Cases &amp;amp; Sample API Requests&lt;/h2&gt;
&lt;h4 id=&#34;create-a-server-group-with-launch-template&#34;&gt;Create a Server Group with launch template&lt;/h4&gt;
&lt;p&gt;After enabling the launch template feature set in Clouddriver and/or Deck, set &lt;code&gt;setLaunchTemplate&lt;/code&gt; to true in order to indicate Spinnaker to create your Server Group with an EC2 launch template.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;curl -H &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;Content-Type: application/json&amp;#39;&lt;/span&gt; -d &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;{ &amp;#34;job&amp;#34;: [
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;  {
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;    &amp;#34;type&amp;#34;: &amp;#34;createServerGroup&amp;#34;,
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;    &amp;#34;cloudProvider&amp;#34;: &amp;#34;aws&amp;#34;,
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;    &amp;#34;account&amp;#34;: &amp;#34;my-aws-account&amp;#34;,
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;    &amp;#34;application&amp;#34;: &amp;#34;myAwsApp&amp;#34;,
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;    &amp;#34;stack&amp;#34;: &amp;#34;myStack&amp;#34;,
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;    &amp;#34;credentials&amp;#34;: &amp;#34;my-aws-account&amp;#34;,
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;    &amp;#34;subnetType&amp;#34;: &amp;#34;public-subnet&amp;#34;,
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;    &amp;#34;availabilityZones&amp;#34;: {&amp;#34;us-west-1&amp;#34;: [&amp;#34;us-west-1a&amp;#34;,&amp;#34;us-west-1b&amp;#34;,&amp;#34;us-west-1c&amp;#34;]},
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;    &amp;#34;amiName&amp;#34;: &amp;#34;ami-12345&amp;#34;,
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;    &amp;#34;capacity&amp;#34;: {&amp;#34;desired&amp;#34;: 3,&amp;#34;max&amp;#34;: 5,&amp;#34;min&amp;#34;: 3},
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;    &amp;#34;iamRole&amp;#34;:&amp;#34;MyInstanceProfile&amp;#34;,
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;    &amp;#34;instanceType&amp;#34;:&amp;#34;t3.large&amp;#34;,
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;    &amp;#34;setLaunchTemplate&amp;#34;: true,
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;    &amp;#34;requireIMDSv2&amp;#34;: true,
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;    &amp;#34;unlimitedCpuCredits&amp;#34;: true
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;  }], &amp;#34;application&amp;#34;: &amp;#34;myAwsApp&amp;#34;, &amp;#34;description&amp;#34;: &amp;#34;Create New Server Group in cluster myAwsApp&amp;#34;}&amp;#39;&lt;/span&gt; -X POST http://my-spinnaker-gate:8084/tasks
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Let&amp;rsquo;s say, the Server Group created was named &lt;code&gt;myAwsApp-myStack-v005&lt;/code&gt;.
It is backed by EC2 launch template with IMDSv2 enabled and unlimited CPU credits.&lt;/p&gt;
&lt;h4 id=&#34;convert-a-server-group-with-launch-template-to-use-mixed-instances-policy-with-multiple-instance-types-and-capacity-weighting&#34;&gt;Convert a Server Group with launch template to use mixed instances policy, with multiple instance types and capacity weighting&lt;/h4&gt;
&lt;p&gt;The Spinnaker operation, &lt;code&gt;modifyServerGroupLaunchTemplate&lt;/code&gt;/ &lt;code&gt;updateLaunchTemplate&lt;/code&gt; also supports
updating a Server Group backed by launch template to use mixed instances policy when one or more mixed instances policy parameters listed above is specified.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;curl -H &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;Content-Type: application/json&amp;#39;&lt;/span&gt; -d &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;{ &amp;#34;job&amp;#34;: [ 
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;  {
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;    &amp;#34;type&amp;#34;: &amp;#34;updateLaunchTemplate&amp;#34;,
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;    &amp;#34;cloudProvider&amp;#34;: &amp;#34;aws&amp;#34;,
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;    &amp;#34;account&amp;#34;: &amp;#34;my-aws-account&amp;#34;,
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;    &amp;#34;application&amp;#34;: &amp;#34;myAwsApp&amp;#34;,
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;    &amp;#34;stack&amp;#34;: &amp;#34;myStack&amp;#34;,
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;    &amp;#34;credentials&amp;#34;: &amp;#34;my-aws-account&amp;#34;,
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;    &amp;#34;region&amp;#34;: &amp;#34;eu-central-1&amp;#34;,
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;    &amp;#34;asgName&amp;#34;: &amp;#34;myAwsApp-myStack-v005&amp;#34;,
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;    &amp;#34;launchTemplateOverridesForInstanceType&amp;#34;: [
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;      {&amp;#34;instanceType&amp;#34;:&amp;#34;t2.large&amp;#34;,&amp;#34;weightedCapacity&amp;#34;:&amp;#34;1&amp;#34;},
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;      {&amp;#34;instanceType&amp;#34;:&amp;#34;t3.large&amp;#34;,&amp;#34;weightedCapacity&amp;#34;:&amp;#34;1&amp;#34;},
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;      {&amp;#34;instanceType&amp;#34;:&amp;#34;t2.xlarge&amp;#34;,&amp;#34;weightedCapacity&amp;#34;:&amp;#34;2&amp;#34;},
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;      {&amp;#34;instanceType&amp;#34;:&amp;#34;t3.xlarge&amp;#34;,&amp;#34;weightedCapacity&amp;#34;:&amp;#34;2&amp;#34;}] 
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;  }], &amp;#34;application&amp;#34;: &amp;#34;myAwsApp&amp;#34;, &amp;#34;description&amp;#34;: &amp;#34;Modify Server Group in cluster myAwsApp&amp;#34;}&amp;#39;&lt;/span&gt; -X POST http://my-spinnaker-gate:8084/tasks
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Note: instance weighting is requested by vCPUs.&lt;/p&gt;
&lt;p&gt;AWS docs:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href=&#34;https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html&#34; target=&#34;_blank&#34;&gt;multiple instance types&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-instance-weighting.html&#34; target=&#34;_blank&#34;&gt;instance weighting&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 id=&#34;diversify-instances-in-a-server-group-across-purchase-options-on-demand-and-spot-multiple-instance-types-with-priority-assignment&#34;&gt;Diversify instances in a Server Group across purchase options (On-Demand and Spot), multiple instance types with priority assignment:&lt;/h4&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;curl -H &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;Content-Type: application/json&amp;#39;&lt;/span&gt; -d &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;{ &amp;#34;job&amp;#34;: [ 
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;  {
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;    &amp;#34;type&amp;#34;: &amp;#34;createServerGroup&amp;#34;,
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;    &amp;#34;cloudProvider&amp;#34;: &amp;#34;aws&amp;#34;,
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;    &amp;#34;account&amp;#34;: &amp;#34;my-aws-account&amp;#34;,
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;    &amp;#34;application&amp;#34;: &amp;#34;myAwsApp&amp;#34;,
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;    &amp;#34;stack&amp;#34;: &amp;#34;myStack&amp;#34;,
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;    &amp;#34;credentials&amp;#34;: &amp;#34;my-aws-account&amp;#34;,
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;    &amp;#34;availabilityZones&amp;#34;: {&amp;#34;us-west-1&amp;#34;: [&amp;#34;us-west-1a&amp;#34;,&amp;#34;us-west-1b&amp;#34;,&amp;#34;us-west-1c&amp;#34;]},
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;    &amp;#34;amiName&amp;#34;: &amp;#34;ami-12345&amp;#34;,
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;    &amp;#34;capacity&amp;#34;: {&amp;#34;desired&amp;#34;: 3,&amp;#34;max&amp;#34;: 5,&amp;#34;min&amp;#34;: 3},
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;    &amp;#34;iamRole&amp;#34;:&amp;#34;MyInstanceProfile&amp;#34;,
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;    &amp;#34;instanceType&amp;#34;:&amp;#34;m4.large&amp;#34;,
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;    &amp;#34;setLaunchTemplate&amp;#34;: true,
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;    &amp;#34;onDemandBaseCapacity&amp;#34;:1,
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;    &amp;#34;onDemandPercentageAboveBaseCapacity&amp;#34;:50,
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;    &amp;#34;spotAllocationStrategy&amp;#34;:&amp;#34;capacity-optimized&amp;#34;,
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;    &amp;#34;launchTemplateOverridesForInstanceType&amp;#34;: [
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;      {&amp;#34;instanceType&amp;#34;:&amp;#34;m5.large&amp;#34;,&amp;#34;weightedCapacity&amp;#34;:&amp;#34;1&amp;#34;,&amp;#34;priority&amp;#34;: 2},
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;      {&amp;#34;instanceType&amp;#34;:&amp;#34;m5.xlarge&amp;#34;,&amp;#34;weightedCapacity&amp;#34;:&amp;#34;2&amp;#34;,&amp;#34;priority&amp;#34;: 1}] 
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;  }], &amp;#34;application&amp;#34;: &amp;#34;myAwsApp&amp;#34;, &amp;#34;description&amp;#34;: &amp;#34;Create New Server Group in cluster myAwsApp&amp;#34;}&amp;#39;&lt;/span&gt; -X POST http://my-spinnaker-gate:8084/tasks
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;See capacity type for instances in Deck:&lt;/p&gt;
&lt;div style=&#34;display: flex;&#34;&gt;
    &lt;img src=&#34;../capacity_type_ondemand.png&#34; width=&#34;200&#34; height=&#34;200&#34; alt=&#34;Capacity Type On-Demand&#34;&gt;
    &lt;img src=&#34;../capacity_type_spot.png&#34; width=&#34;200&#34; height=&#34;200&#34; alt=&#34;Capacity Type Spot&#34;&gt;
&lt;/div&gt;
&lt;p&gt;AWS docs:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href=&#34;https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html&#34; target=&#34;_blank&#34;&gt;instances distribution in ASG&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html#asg-allocation-strategies&#34; target=&#34;_blank&#34;&gt;allocation strategies&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 id=&#34;create-a-server-group-with-aws-recommended-best-practices-for-ec2-spot&#34;&gt;Create a Server Group with AWS recommended best practices for EC2 Spot&lt;/h4&gt;
&lt;p&gt;The best practices followed in the example:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;use multiple instance types&lt;/li&gt;
&lt;li&gt;use &lt;code&gt;capacity-optimized&lt;/code&gt; Spot allocation strategy to indicate AWS to provision instances from the most-available Spot capacity pools&lt;/li&gt;
&lt;li&gt;use default maximum price for Spot i.e. On-Demand price&lt;/li&gt;
&lt;li&gt;mix in previous generation instance types&lt;/li&gt;
&lt;li&gt;use proactive capacity rebalancing (works best with &lt;code&gt;capacity-optimized&lt;/code&gt; spotAllocationStrategy)&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;curl -H &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;Content-Type: application/json&amp;#39;&lt;/span&gt; -d &lt;span style=&#34;color:#4e9a06&#34;&gt;&amp;#39;{ &amp;#34;job&amp;#34;: [ 
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;  {
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;    &amp;#34;type&amp;#34;: &amp;#34;createServerGroup&amp;#34;,
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;    &amp;#34;cloudProvider&amp;#34;: &amp;#34;aws&amp;#34;,
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;    &amp;#34;account&amp;#34;: &amp;#34;my-aws-account&amp;#34;,
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;    &amp;#34;application&amp;#34;: &amp;#34;myAwsApp&amp;#34;,
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;    &amp;#34;stack&amp;#34;: &amp;#34;myStack&amp;#34;,
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;    &amp;#34;credentials&amp;#34;: &amp;#34;my-aws-account&amp;#34;,
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;    &amp;#34;subnetType&amp;#34;: &amp;#34;public-subnet&amp;#34;,
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;    &amp;#34;availabilityZones&amp;#34;: {&amp;#34;us-west-1&amp;#34;: [&amp;#34;us-west-1a&amp;#34;,&amp;#34;us-west-1b&amp;#34;,&amp;#34;us-west-1c&amp;#34;]},
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;    &amp;#34;amiName&amp;#34;: &amp;#34;ami-12345&amp;#34;,
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;    &amp;#34;capacity&amp;#34;: {&amp;#34;desired&amp;#34;: 3,&amp;#34;max&amp;#34;: 5,&amp;#34;min&amp;#34;: 3},
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;    &amp;#34;iamRole&amp;#34;:&amp;#34;MyInstanceProfile&amp;#34;,
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;    &amp;#34;instanceType&amp;#34;:&amp;#34;m4.large&amp;#34;,
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;    &amp;#34;setLaunchTemplate&amp;#34;: true,
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;    &amp;#34;onDemandPercentageAboveBaseCapacity&amp;#34;:50,
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;    &amp;#34;onDemandBaseCapacity&amp;#34;:1,
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;    &amp;#34;spotAllocationStrategy&amp;#34;:&amp;#34;capacity-optimized&amp;#34;,
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;    &amp;#34;capacityRebalance&amp;#34;: true,
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;    &amp;#34;launchTemplateOverridesForInstanceType&amp;#34;: [
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;      {&amp;#34;instanceType&amp;#34;:&amp;#34;m4.large&amp;#34;,&amp;#34;weightedCapacity&amp;#34;:&amp;#34;1&amp;#34;},
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;      {&amp;#34;instanceType&amp;#34;:&amp;#34;m5.large&amp;#34;,&amp;#34;weightedCapacity&amp;#34;:&amp;#34;1&amp;#34;},
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;      {&amp;#34;instanceType&amp;#34;:&amp;#34;m4.xlarge&amp;#34;,&amp;#34;weightedCapacity&amp;#34;:&amp;#34;2&amp;#34;},
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;      {&amp;#34;instanceType&amp;#34;:&amp;#34;m5.xlarge&amp;#34;,&amp;#34;weightedCapacity&amp;#34;:&amp;#34;2&amp;#34;}] 
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#4e9a06&#34;&gt;  }], &amp;#34;application&amp;#34;: &amp;#34;myAwsApp&amp;#34;, &amp;#34;description&amp;#34;: &amp;#34;Create New Server Group in cluster myAwsApp&amp;#34;}&amp;#39;&lt;/span&gt; -X POST http://my-spinnaker-gate:8084/tasks
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Note: instance weighting requested by vCPUs&lt;/p&gt;
&lt;p&gt;AWS docs:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href=&#34;https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html#asg-spot-best-practices&#34; target=&#34;_blank&#34;&gt;Best practices for ASG with Spot instances&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-best-practices.html&#34; target=&#34;_blank&#34;&gt;Best practices for EC2 Spot&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
  </channel>
</rss>
