Could you point a good (didactic) material preferencialy that you know about AWS web service creation by using PHP?

Hi Experts!

Could you point a good (didactic) material preferencialy that you know about AWS web service creation by using PHP?

Thanks in advance
Eduardo FuerteDeveloper and AnalystAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Aaron StreetTechnical infrastructure architectureCommented:
Why do you need to use PHP? Something like Terraform (https://www.terraform.io/) has been developed for provisioning AWS, you can use it in PHP scripts easily and it will remove a lot of the grunt work for you. Its free and uses the AMAZON CLI API for its intergration with AWS.

You can do provisioning directly in PHP but honestly I wouldnt consider doing so the time to develope that would be wasted in my opnium when a tool like Terrafrom already exists.

Or are you looking for more intergrating PHP code with AWS services such as using IAM Role based Authention during code execuatation?

Maybe a bit more info on what you want to achive and the scope of it would help you get an answer to your request.
0
Eduardo FuerteDeveloper and AnalystAuthor Commented:
Hi

PHP is a company's project imposition, not up to me to choose.

I'm going to follow your suggestion on Terraform.

Or are you looking for more intergrating PHP code with AWS services such as using IAM Role based Authention during code execuatation?

Something in this line but I don´t have the details by now....
0
Aaron StreetTechnical infrastructure architectureCommented:
So terraform is really good for provisioning AWS infrrastructure so like "create a VPC with 3 subnets and put 2 EC2 instances in each subnet"

as per here you can wrap it up in PHP and the terrafrom is a single file executable so you can still saying you are using PHP jsut with a terrafrom libuary. by intergrating the two you get the logic of PHP with the robust provisioning terrafrom provides.

https://github.com/aol/terraform-php

Intergrating using IAM is where you would have a web server for example running on an EC2 instance with a PHP backend, when the php backend needs to contact a DB rather than having to use passwords stored in the code, you can set up a role in AWS that allows the servers to communicate and then tell PHP to take on thoses permissions from an application level. so all authentication at the application level is handled by AWS with key rotation and other stuff that takes all this hard work out of you code.

So two different things. both very useful to know about. :)
1

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Managing Security & Risk at the Speed of Business

Gartner Research VP, Neil McDonald & AlgoSec CTO, Prof. Avishai Wool, discuss the business-driven approach to automated security policy management, its benefits and how to align security policy management with business processes to address today's security challenges.

Eduardo FuerteDeveloper and AnalystAuthor Commented:
Thank you for the replies.

Just an overview on what will be needed.

img001
0
Eduardo FuerteDeveloper and AnalystAuthor Commented:
img002
0
Eduardo FuerteDeveloper and AnalystAuthor Commented:
img003
img004
0
Eduardo FuerteDeveloper and AnalystAuthor Commented:
Any other orientation based on this schemes?

(It looks very complex)...
0
David FavorLinux/LXD/WordPress/Hosting SavantCommented:
You asked for AWS + PHP (moral instruction). A peculiar question.

AWS is simply an slow + expensive version of Linux.

PHP is... well... PHP...

So simply search for courses about Linux or PHP.

Nothing special about AWS or PHP running on AWS.
0
RobOwner (Aidellio)Commented:
Eduardo,

What Aaron has suggested is fantastic for your requirements.  

I've only set up very simple EC2 instances on AWS serving up PHP pages, mainly for testing web apps and for low scale projects.  No thought really given to the infrastructure (as opposed to what Aaron's given you).

My suggestion is to just sign up to AWS and explore setting up an EC2 instance.  This tutorial has been so useful for me: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/install-LAMP.html.  Just be sure to go through Step 1 and Step 2 as a prerequisite
Step 1 - Getting set up for EC2: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/get-set-up-for-amazon-ec2.html
Step 2 - How to launch an EC2 Instance: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EC2_GetStarted.html#ec2-launch-instance
0
Aaron StreetTechnical infrastructure architectureCommented:
@ David,

A slow version of Linux?

Not sure what you mean by that, AWS (Amazon web services) is nothing to do with Linux apart from you can run Linux instances on it. but you can also run windows and loads of server-less infrastructure.
1
RobOwner (Aidellio)Commented:
I agree, Linux runs fast enough on my instance... I suspect if it's slow it could be for a number of reasons that Aaron has outlined above, ie the infrastructure doesn't match the requirements of the system.
0
Eduardo FuerteDeveloper and AnalystAuthor Commented:
Hi

Sorry the delay - still studying what you posted!
0
Eduardo FuerteDeveloper and AnalystAuthor Commented:
Thanks for the help and guidance!

I'm still getting concepts about these subjects and then probably will return back with more specific questions later.
0
David FavorLinux/LXD/WordPress/Hosting SavantCommented:
Linux == Fast.

AWS infrastructure == Slow (as they use heavy VM tech to implement AWS/EC2).
0
Aaron StreetTechnical infrastructure architectureCommented:
Linx is as fast as what it runs on and VMware these days only gives a 2-3% preformace hit.

Running both large Datacenters and AWS both can be fast or slow. We run DB in RDS in AWS and cost for cost they outpreform physical servers in the datecetners by a hughe margin.

Saying AWS is slow is completly missing the point of AWS, for the very minor preformace hit you get running linux on virtual (and running it in a dataneter on VM would be the same as running in AWS. the benifits way outwigh the cons.

Plus the fact we can deploy 1,000 of servers with a single click due to terrafrom and its cheap all adds up.

Linux is neither slow nor fast it is all dependent on what it is running on.

Linux on AWS is fast enough for 95% of user cases. and designed and implemented well its TCO if much better.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.