Created
September 18, 2022 15:16
-
-
Save patrickbrus/8ee07bdfe84f43bd520110e04592b8b8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CloudFormationElasticBeanstalkApplication: | |
Type: AWS::ElasticBeanstalk::Application | |
Properties: | |
ApplicationName: !Sub ${ElasticApplicationName}-app | |
CloudFormationElasticBeanstalkEvnironmentStaging: | |
Type: AWS::ElasticBeanstalk::Environment | |
Properties: | |
ApplicationName: !Ref CloudFormationElasticBeanstalkApplication | |
EnvironmentName: !Sub ${ElasticApplicationName}-env-staging | |
TemplateName: | |
Ref: CloudFormationEBConfigurationTemplate | |
CloudFormationElasticBeanstalkEvnironmentProduction: | |
Type: AWS::ElasticBeanstalk::Environment | |
Properties: | |
ApplicationName: !Ref CloudFormationElasticBeanstalkApplication | |
EnvironmentName: !Sub ${ElasticApplicationName}-env-prod | |
TemplateName: | |
Ref: CloudFormationEBConfigurationTemplate | |
CloudFormationEBConfigurationTemplate: | |
Type: AWS::ElasticBeanstalk::ConfigurationTemplate | |
Properties: | |
ApplicationName: !Sub ${ElasticApplicationName}-app | |
Description: AWS ElasticBeanstalk Birds Classifier Configuration Template | |
OptionSettings: | |
- Namespace: aws:autoscaling:asg | |
OptionName: MinSize | |
Value: '1' | |
- Namespace: aws:autoscaling:asg | |
OptionName: MaxSize | |
Value: '1' | |
- Namespace: aws:elasticbeanstalk:environment | |
OptionName: EnvironmentType | |
Value: LoadBalanced | |
- Namespace: aws:autoscaling:launchconfiguration | |
OptionName: IamInstanceProfile | |
Value: !Ref MyInstanceProfile | |
- Namespace: aws:autoscaling:launchconfiguration | |
OptionName: InstanceType | |
Value: t2.medium | |
SolutionStackName: 64bit Amazon Linux 2 v3.4.19 running Docker |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment