Skip to content

Instantly share code, notes, and snippets.

@geoff-nixon
Forked from armanhakimsagar/GCP
Created October 16, 2020 17:14
Show Gist options
  • Save geoff-nixon/2647c19032c4ab018ab760228819f762 to your computer and use it in GitHub Desktop.
Save geoff-nixon/2647c19032c4ab018ab760228819f762 to your computer and use it in GitHub Desktop.
Step :
1. give credit card info
2. create project
3. after that you can create instance.
4. now install apcache by ssh:
sudo apt get update
sudo apt install apache2
now if you run the ip in browser it should run apache.
5. now touch a file in var/www/html index.php. you can run it through browser
now install php : sudo apt-get php -y
now install mysql : sudo apt-get mariadb-server -y
now install git : sudo apt-get git
now git clone your project.
___________________________
1. app engine : ui interface for build project laravel laravel,
others option queue, task also manage from here, here all our code exists.
2. kubernetes : Kubernetes (K8s) is an open-source system for automating deployment, scaling,
and management of containerized applications.
3. Images : An image is an individual virtual machine template. you can create it by snapshot.
first create instance then create snapshot. you can import this snapshot as you wnat.
4. Instances : An instance is a single virtual machine hosted on Google's infrastructure.
5. Image families : An image family is a set of images that are preconfigured for a specific purpose or using a specific architecture.
6. compute ingine: same like ec2. It's a virtual machine.
full guidelines : https://cloud.google.com/compute/?utm_source=google&utm_medium=cpc&utm_campaign=japac-APAC-all-en-dr-bkws-all-all-trial-e-dr-1009137&utm_content=text-ad-none-none-DEV_c-CRE_251294951477-ADGP_Hybrid+%7C+AW+SEM+%7C+BKWS+~+T1+%7C+EXA+%7C+Compute+%7C+M:1+%7C+ROA+%7C+en+%7C+compute+engine+%7C+google+cloud-KWID_43700009725633436-kwd-79074736518&userloc_9069450-network_g&utm_term=KW_google%20cloud%20compute%20engine&gclid=CjwKCAjw34n5BRA9EiwA2u9k33X1mwn1n0adQbOZgrTS-FIeybZlyuiKYwQOc4rQIxLK3J6hwWYUdhoCFY8QAvD_BwE
7. google cloud sdk : cmd tools for tranfer file to local machine to live machine. deploy you project to apps engine.
you can do all the work from here.
8. sql : you can create sql by click sql. set there stroage & username & passsword & zone. advance is you will get auto backup & others many faility than phpmyadmin url access. after create it you will get all details for connection.
we will also get sql cmd in there. For sql access you can connect from workbench.you can create table from workbench.
9. stroage : its stroage like s3. also set this stroage by region, space like this. after create a bucket & you will get a ui for upload file into it. after upload the file you will get a gsutil link for access it. you can also access it by gcp sdk cmd tool.
For use it from laravel :
composer required google/cloud-storage
Also create a service from gcp ui & it will give a json file. now download & set this json file in laravel env.
now use gcp cloud storage on top . use bucket method to create bucket , upload method to upload any file.
___________________________
Amazan :
1. Amazon S3 : Its a object storage.Datas are organized in object.Amazon S3 or Amazon Simple Storage Service is a service offered by Amazon Web Services that provides object storage through a web service interface.Amazon S3 can be employed to store any type of object which allows for uses like storage for Internet applications, backup and recovery, disaster recovery, data archives, data lakes for analytics, and hybrid cloud storage.
2. EC2 : its a place where we can create virtual computer.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment