diff --git a/src/AWS.Deploy.Orchestration/DeploymentBundleHandler.cs b/src/AWS.Deploy.Orchestration/DeploymentBundleHandler.cs index ffd687dd..ed3fc456 100644 --- a/src/AWS.Deploy.Orchestration/DeploymentBundleHandler.cs +++ b/src/AWS.Deploy.Orchestration/DeploymentBundleHandler.cs @@ -133,7 +133,7 @@ private void SwitchToSelfContainedBuildIfNeeded(Recommendation recommendation) if (string.IsNullOrEmpty(targetFramework)) return; - // Elastic Beanstalk doesn't currently have .NET 7 preinstalled. + // Elastic Beanstalk doesn't currently have .NET 7 and 9 preinstalled. var unavailableFramework = new List { "net7.0", "net9.0" }; var frameworkNames = new Dictionary { { "net7.0", ".NET 7" }, { "net9.0", ".NET 9" } }; if (unavailableFramework.Contains(targetFramework)) diff --git a/src/AWS.Deploy.Recipes/CdkTemplates/AspNetAppElasticBeanstalkLinux/Generated/Recipe.cs b/src/AWS.Deploy.Recipes/CdkTemplates/AspNetAppElasticBeanstalkLinux/Generated/Recipe.cs index a513945b..edaa336f 100644 --- a/src/AWS.Deploy.Recipes/CdkTemplates/AspNetAppElasticBeanstalkLinux/Generated/Recipe.cs +++ b/src/AWS.Deploy.Recipes/CdkTemplates/AspNetAppElasticBeanstalkLinux/Generated/Recipe.cs @@ -243,7 +243,7 @@ private void ConfigureBeanstalkEnvironment(bool newDeployment, Configuration set }; if (newDeployment || - (newDeployment && !string.Equals(settings.IMDSv1Access, IMDS_V1_DEFAULT, StringComparison.InvariantCultureIgnoreCase))) + (!newDeployment && !string.Equals(settings.IMDSv1Access, IMDS_V1_DEFAULT, StringComparison.InvariantCultureIgnoreCase))) { var computedDisableIMDSv1 = string.Equals(settings.IMDSv1Access, IMDS_V1_ENABLED, StringComparison.InvariantCultureIgnoreCase) ? "false" : "true"; optionSettingProperties.Add(new CfnEnvironment.OptionSettingProperty diff --git a/src/AWS.Deploy.Recipes/CdkTemplates/AspNetAppElasticBeanstalkWindows/Generated/Recipe.cs b/src/AWS.Deploy.Recipes/CdkTemplates/AspNetAppElasticBeanstalkWindows/Generated/Recipe.cs index 28a444d3..ea8e602c 100644 --- a/src/AWS.Deploy.Recipes/CdkTemplates/AspNetAppElasticBeanstalkWindows/Generated/Recipe.cs +++ b/src/AWS.Deploy.Recipes/CdkTemplates/AspNetAppElasticBeanstalkWindows/Generated/Recipe.cs @@ -243,7 +243,7 @@ private void ConfigureBeanstalkEnvironment(bool newDeployment, Configuration set }; if (newDeployment || - (newDeployment && !string.Equals(settings.IMDSv1Access, IMDS_V1_DEFAULT, StringComparison.InvariantCultureIgnoreCase))) + (!newDeployment && !string.Equals(settings.IMDSv1Access, IMDS_V1_DEFAULT, StringComparison.InvariantCultureIgnoreCase))) { var computedDisableIMDSv1 = string.Equals(settings.IMDSv1Access, IMDS_V1_ENABLED, StringComparison.InvariantCultureIgnoreCase) ? "false" : "true"; optionSettingProperties.Add(new CfnEnvironment.OptionSettingProperty