diff --git a/README.md b/README.md index c53c8ef..3891895 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,8 @@ -# elastic-beanstalk-docs -This repository complements the AWS Elastic Beanstalk documentation. It contains the following content for Elastic Beanstalk users: -* [Tutorials](https://github.com/awslabs/elastic-beanstalk-docs/tree/master/tutorials) -* [Configuration Files (.ebextensions)](https://github.com/awslabs/elastic-beanstalk-docs/tree/master/configuration-files) +# elastic-beanstalk-samples +This repository complements the AWS Elastic Beanstalk documentation. +Currently, it contains examples of [configuration files (.ebextensions)](https://github.com/awslabs/elastic-beanstalk-samples/tree/master/configuration-files). -You can report issues with the docs, make pull requests, and contribute your own resources to help other AWS Elastic Beanstalk customers use the service. We are committed to helping developers learn more about Beanstalk, and we hope you find the this forum useful. Please don't hesitate to let us know how we can improve it to be more useful. +You can report issues, make pull requests, and contribute your own resources to help other AWS Elastic Beanstalk customers use the service. We are committed to helping developers learn more about Beanstalk, and we hope you find the this forum useful. Please don't hesitate to let us know how we can improve it to be more useful. The full set of Elastic Beanstalk documents is at http://aws.amazon.com/documentation/elastic-beanstalk/. diff --git a/configuration-files/README.md b/configuration-files/README.md index 8553d26..3a9f52d 100644 --- a/configuration-files/README.md +++ b/configuration-files/README.md @@ -1,5 +1,5 @@ ## Contribution instructions -You can submit new configuration files to the [community-provided](https://github.com/awslabs/elastic-beanstalk-docs/tree/master/configuration-files/community-provided) folder. +You can submit new configuration files to the [community-provided](https://github.com/awslabs/elastic-beanstalk-samples/tree/master/configuration-files/community-provided) folder. Name the configuration file in lowercase with terms that describe the category and use case separated by hyphens, ordered from general to specific. For example: diff --git a/tutorials/ReadMe.rst b/tutorials/ReadMe.rst deleted file mode 100644 index 8836bca..0000000 --- a/tutorials/ReadMe.rst +++ /dev/null @@ -1 +0,0 @@ -# put important info here \ No newline at end of file diff --git a/tutorials/php/symfony2/tutorial-deploy-symfony2-application-aws-elastic-beanstalk.md b/tutorials/php/symfony2/tutorial-deploy-symfony2-application-aws-elastic-beanstalk.md deleted file mode 100644 index ba45717..0000000 --- a/tutorials/php/symfony2/tutorial-deploy-symfony2-application-aws-elastic-beanstalk.md +++ /dev/null @@ -1,132 +0,0 @@ -Deploying a Symfony2 Application to AWS Elastic Beanstalk -========================================================= - -This tutorial walks you through deploying a sample application from Linux/UNIX to AWS Elastic Beanstalk using eb (an updated command line interface) and Git, and then updating the application to use the [Symfony2] (http://symfony.com/) framework. - -Step 1: Install the Elastic Beanstalk Command Line Interface (CLI) and Set Up Your Git Repository ------------------------------------------------------------------------- -The [Elastic Beanstalk command line interface](https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli3.html) (EB CLI) is a command line interface that helps you deploy applications quickly and easily using Git. - -**To install eb, its prerequisite software, and initialize your Git repository** - - 1. Install EB Command Line Interface (CLI) 3.x by using Pip. -> For information on how to install the EB CLI 3.x see, [Getting Set Up with EB Command Line Interface (CLI) 3.x](http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli3-install.html). - - 2. Go to http://git-scm.com/, and download and install Git. -> We recommend using Git 1.6.6 or later. - -Step 2: Set Up Your Symfony2 Development Environment ----------------------------------------------------- -The following procedure walks you through setting up Symfony2 on a Linux operating system. For more information, go to http://symfony.com/download. - -**To set up your PHP development environment on your local computer** - -1 . Download and install composer from http://getcomposer.org/download/. - - curl -sS https://getcomposer.org/installer | php - -> **Note** If the installation reports problems when you try to install composer, run the command `sudo apt-get update` and then reinstall curl by running the command `sudo apt-get install php5-cli`. Repeat step 1. - -2 . Install Symfony2 Standard Edition with Composer. Check http://symfony.com/download for the latest available version. Using the following command, composer will install the vendor libraries for you, including the example. - - php composer.phar create-project symfony/framework-standard-edition symfony2_example/ path/ "2.3.*" - -> **Note** You may need to set the date.timezone in the php.ini to successfully complete installation. - -> When prompted to install the Acme demo bundle, enter y. When prompted, accept the default values for the following parameters. - - database_driver (pdo_mysql): - database_host (127.0.0.1): - database_port (null): - database_name (symfony): - database_user (root): - database_password (null): - mailer_transport (smtp): - mailer_host (127.0.0.1): - mailer_user (null): - mailer_password (null): - locale (en): - secret (ThisTokenIsNotSoSecretChangeIt): - -3 . Change directory to **symfony2_example/<version number>** and initialize the Git repository. - - - git init - -4 . Update the .gitignore file to ignore vendor, cache, logs, and composer.phar. - These files do not need to get pushed to the remote server. - - cat > .gitignore < When prompted, accept all defaults. For more information, go to [Creating Pages in Symfony2](http://symfony.com/doc/current/book/page_creation.html). - -Step 3: Configure Composer --------------------------- -Next, you need to configure Composer. Composer dependencies require that you set the HOME or COMPOSER_HOME environment variables. You can also configure Composer to self-update so that you always use the latest version. - -**To Configure Composer** - -1 . Create a configuration file with the extension .config (e.g., composer.config) and place it in an .ebextensions directory at the top level of your source bundle -`(symfony2_example//src/AppBundle).` - -> You can have multiple configuration files in your .ebextensions -> directory. For information about the file format of configuration -> files, see [Advanced Environment Customization with Configuration Files (.ebextensions)](https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/ebextensions.html). -> -> **Note**   Configuration files should conform to YAML or JSON formatting standards. For more information, go to http://www.yaml.org/start.html -> or http://www.json.org, respectively. - - 2 . In the .config file, type the following: - - commands: - 01updateComposer: - command: export COMPOSER_HOME=/root && /usr/bin/composer.phar self-update 1.0.0-alpha11 - - option_settings: - - namespace: aws:elasticbeanstalk:application:environment - option_name: COMPOSER_HOME - value: /root - -> Replace `1.0.0-alpha11` with your preferred version of composer. See [getcomposer.org/download](https://getcomposer.org/download/) for a list of available versions. - -Step 3: Configure AWS Elastic Beanstalk ---------------------------------------- -The following instructions use the EB CLI to configure an Elastic Beanstalk application repository in your local project directory. - -**To Configure AWS Elastic Beanstalk** - -1 . From the directory where you created your local repository, type the following command: - - eb init - -2 . Create an index.html file for EB CLI to use as your sample application. - - echo 'Hello World!' > index.html - -> **Note**   In Windows, do not include quotes in the command. - -3 . Set up your directory with EB CLI and then answer the questions to configure AWS Elastic Beanstalk. - - eb init -p php - -4 . When prompted for your AWS security credentials, type your access key ID and secret access key. To answer a question with the default value, press **Enter**. - -5 . Create the environment **dev-env** and deploy the sample application. - - eb create dev-env - -> Wait for AWS Elastic Beanstalk to finish creating the environment. When it is done, your application is live in a load-balancing, autoscaling environment. - -6 . View your application. - - eb open