Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This config file updates the Auto Scaling configuration to use a launch template instead of a launch configuration. #173

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
###################################################################################################
####
#### "EC2 Auto Scaling Launch Configuration Deprecation Notification"
#### This config file will address this issue.
#### This config file updates the Auto Scaling configuration to use a launch template instead of a launch configuration.
#### When the eb create command is executed, the new launch template settings ensure that instances are configured correctly.
#### This also includes disabling IMDSv1 for enhanced security.
####
###################################################################################################

###################################################################################################
####
#### Usage
#### The following properties can be changed:
#### myAppName: Specify the application name. Example: My App
#### Description: Provide a brief description of the change. Example: Set up launch settings for my app
#### Value: Set the maximum and minimum values for the EC2 instance count.
#### SolutionStackName: Specify the stack name to use. Example: 64bit Amazon Linux 2023 v4.3.0 running PHP 8.3
#### To find the exact solution stacks, you can use the following AWS CLI command: 'aws elasticbeanstalk list-available-solution-stacks'.
####
###################################################################################################

Resources:
sampleConfigurationTemplate:
Type: AWS::ElasticBeanstalk::ConfigurationTemplate
Properties:
ApplicationName: myAppName
Description: AWS ElasticBeanstalk Sample Configuration Template
OptionSettings:
- Namespace: aws:autoscaling:asg
OptionName: MinSize
Value: '1'
- Namespace: aws:autoscaling:asg
OptionName: MaxSize
Value: '2'
SolutionStackName: Your stack name

option_settings:
aws:autoscaling:launchconfiguration:
DisableIMDSv1: true