concept environment in category aws

This is an excerpt from Manning's book Amazon Web Services in Action, Second Edition.
The more dependencies your system has, the more complex it gets. A human can quickly lose perspective, whereas a computer can cope with graphs of any size. You should concentrate on tasks humans are good at—such as describing a system—while the computer figures out how to resolve all those dependencies to create the system. Setting up an environment in the cloud based on your blueprints can be automated with the help of infrastructure as code, covered in chapter 4.
A configuration template contains your default configuration. You can manage your application’s configuration (such as the port your application listens on) as well as the environment’s configuration (such as the size of the virtual machine) with your custom configuration template. An environment is where AWS Elastic Beanstalk executes your application. It consists of a version and the configuration. You can run multiple environments for one application by using different combinations of versions and configurations.
3. Create an environment: the place where Etherpad will run.
To deploy Etherpad with the help of AWS Elastic Beanstalk, you have to create an environment for Node.js based on Amazon Linux and the version of Etherpad you just created. To get the latest Node.js environment version, called a solution stack name, run this command:
$ aws elasticbeanstalk list-available-solution-stacks --output text \ --query "SolutionStacks[?contains(@, 'running Node.js')] | [0]" 64bit Amazon Linux 2017.03 v4.2.1 running Node.js #1Execute the following command to launch an environment, replacing $SolutionStackName with the output from the previous command.

This is an excerpt from Manning's book AWS Lambda in Action: Event-driven serverless applications.
You can use cloud computing to provide the infrastructure for your application, in the form of virtual servers, storage, network, load balancers, and so on. The infrastructure can be scaled automatically using specific configurations. But with this approach you still need to prepare a whole environment to execute the code you write. You install and prepare an operating system or a virtual environment; you choose and configure a programming framework; and finally, when the overall stack is ready, you can plug in our code. Even if you use a container-based approach in building the environment, with tools such as Docker, you’re still in charge of managing versioning and updates of the containers you use.
In those cases, you need to create a local static build that you can easily include and ship with your deployment package. This build must use an environment that’s similar to what AWS Lambda uses to execute your functions. For that, I suggest you use an Amazon Linux EC2 instance, which you can create temporarily when you need to create the package. You can shut down or terminate the instance as soon as you don’t need it.
This command prepared the environment for the Node.js runtime in the ~/opencv_ test folder: