Skip to main content

Deploy your Symfony application on AWS Elastic Beanstalk using CloudFormation best php training trivandrum


Deploy your Symfony application on AWS Elastic Beanstalk using CloudFormation



The problem

  1. Be setup in less than 10min
  2. Be able to run a Symfony application
  3. Using PostgreSQL on RDS
  4. Deployment is easy and fast
  5. Non AWS experts can create the MVS

Elastic Beanstalk

CloudFormation

database_host: "%env(DB_HOST)%"
database_port: 5432
database_name: "%env(DB_NAME)%"
database_user: "%env(DB_USER)%"
database_password: "%env(DB_PASSWORD)%"
zip -r code.zip . --exclude=*vendors*`
cloudformation_stack

Step 7: Click on “next”, “next” and check “I acknowledge that AWS CloudFormation might create IAM resources.”. Then you can click on create. If everything is fine then you should see something like this:

creation_in_progress

Step 8 : You can check the Elastic Beanstalk page to see if everything went okay and find the url of your project at the top of the page.

all_right_status

Configure the Elastic Beanstalk environment

  1. Ensure you don’t have a .elasticbeanstalk directory
  2. Run “eb init“, choose your region and the application you just created. You can find the name in the Elastic Beanstalk page.

Conclusion

Bonus: tips to debug your elastic beanstalk application

Comments

  1. Hey Nice Blog!! Thanks For Sharing!!!Wonderful blog & good post.Its really helpful for me, waiting for a more new post. Keep Blogging!
    dot net course training in coimbatore
    php course in coimbatore

    ReplyDelete

Post a Comment

Popular posts from this blog

Memory leak in 7.x json_decode()? Best Php Training Trivandrum

Memory leak in 7.x json_decode()? There appears to be a memory leak in 7.x json_decode(). I've uploaded a huge JSON file to demonstrate the problem. Here is the sample code: <?php echo memory_get_usage(false) . ' : ' .memory_get_usage(true) . PHP_EOL; $json = json_decode(file_get_contents('http://zaremedia.com/big.json')); echo memory_get_usage(false) . ' : ' .memory_get_usage(true) . PHP_EOL; unset($json); echo memory_get_usage(false) . ' : ' .memory_get_usage(true) . PHP_EOL; Below is output from 7.x and then 5.6: // Running on 7.0 and 7.1 349608 : 2097152 27245512 : 29360128 375552 : 29360128 The process starts with 0.3mb used / 2.0mb allocated. After json_decode(), it's 27.2 / 29.4mb, after unset, it's 3.7mb / 29.4mb -- The second value (memory allocated by php via emalloc()) has not been freed, though PHP's gc has correctly freed up the object usage. // Running on 5.6 221136 : 262144 31577064 : 35913728 420104 : 86507...

A DateTimePeriod library for working with temporal intervals php training trivandrum

An implementation of the datetime period type for working with temporal intervals. The library includes the full set of relations on intervals defined by  Allen's Interval Algebra . For further information see the "Usage" and "How it works" paragraphs. Requirements PHP 7.1+ Installation $ composer require pwm/datetime-period Usage Creation: $start = new DateTimeImmutable ( ' 2010-10-10T10:10:10+00:00 ' ); $end = new DateTimeImmutable ( ' 2011-11-11T11:11:11+00:00 ' ); $period = new DateTimePeriod ( $start , $end ); // Start/end instants and their interval $start = $period -> getStart(); // DateTimeImmutable('2010-10-10T10:10:10+00:00') $end = $period -> getEnd(); // DateTimeImmutable('2011-11-11T11:11:11+00:00') $interval = $period -> getInterval(); // DateInterval('P1Y1M1DT1H1M1S') Restrictions: // Throws TimeZoneMismatch exception new DateTimePeriod ( new Da...

New features for personal API Framework Best Php Training Trivandrum

New features for personal API Framework   Hello, I've benn building my own "framework", it's more to a personal bootstrap skeleton project than to a framework. I've been looking for new features for it. I didn't find any http request/response package yet (I'm looking for it too). What could I use to improve my project? Your public/index.php only includes the vendor autoload, how does anything execute? Your code overall makes too much use of  include  and it looks like you wrote your own controller autoloader rather than using PSR. Config files should be configuration data only, they should not include logic. Just my few cents.