AWS Elastic Beanstalk
Developer Guide (API Version 2010-12-01)

Your AWS Elastic Beanstalk Environment Security

Elastic Beanstalk provides several options that control the security of your environment and of the Amazon EC2 instances in it. This topic discusses the configuration of these options.

Configuring Your Environment Security

You can modify your Elastic Beanstalk environment security configuration in the Elastic Beanstalk console.

To configure environment security in the Elastic Beanstalk console

  1. Open the Elastic Beanstalk console.

  2. Navigate to the management page for your environment.

  3. Choose Configuration.

  4. On the Security configuration card, choose Modify.

The following settings are available.

        The Elastic Beanstalk security configuration page

Service role

Select a service role to associate with your Elastic Beanstalk environment. Elastic Beanstalk assumes the service role when it accesses other AWS services on your behalf. For details, see Managing Elastic Beanstalk Service Roles.

EC2 key pair

You can securely log in to the Amazon EC2 instances provisioned for your Elastic Beanstalk application with an Amazon EC2 key pair. For instructions on creating a key pair for Amazon EC2, see the Amazon Elastic Compute Cloud Getting Started Guide.

Choose an EC2 key pair from the drop-down menu to assign it to your environment's instances. When you assign a key pair, the public key is stored on the instance to authenticate the private key, which you store locally. The private key is never stored in AWS.

For more information about connecting to Amazon EC2 instances, see Connect to Your Instance and Connecting to Linux/UNIX Instances from Windows using PuTTY in the Amazon Elastic Compute Cloud User Guide.

IAM Instance Profile

An instance profile is an IAM role that is applied to instances launched in your Elastic Beanstalk environment. Amazon EC2 instances assume the instance profile role to sign requests to AWS and access APIs, for example, to upload logs to Amazon S3.

The first time you create an environment in the Elastic Beanstalk console, Elastic Beanstalk prompts you to create an instance profile with a default set of permissions. You can add permissions to this profile to provide your instances access to other AWS services. For details, see Managing Elastic Beanstalk Instance Profiles.

Environment Security Configuration Namespaces

Elastic Beanstalk provides configuration options in the following namespaces to enable you to customize the security of your environment:

The EB CLI and Elastic Beanstalk console apply recommended values for the preceding options. You must remove these settings if you want to use configuration files to configure the same. See Recommended Values for details.