Back to results for “Resources”
AWS › AWS Elastic Beanstalk

How does Elastic Beanstalk's underlying use of CloudFormation give advanced users more control over the resources it creates?

Advanced

Answer

Behind the scenes, Elastic Beanstalk uses AWS CloudFormation to actually provision and manage all of the underlying resources in an environment, and advanced users can directly customize the generated CloudFormation resources using configuration options, or even reference their own separate CloudFormation resources from within an ebextensions file, giving experienced teams a way to extend Elastic Beanstalk's simplicity with custom infrastructure needs beyond what the platform exposes through its own configuration options alone.
# .ebextensions/02_resources.config
Resources:
  MyCustomQueue:
    Type: AWS::SQS::Queue
Real-world example An experienced team uses an ebextensions configuration file to define a custom SQS queue as an additional CloudFormation resource directly within their Elastic Beanstalk environment, extending the platform beyond its standard built in capabilities.

Common follow-ups: How do you view the actual CloudFormation stack that Elastic Beanstalk creates behind the scenes?;What happens to custom CloudFormation resources if the Elastic Beanstalk environment is terminated?