Skip to content

Instantly share code, notes, and snippets.

@cgaete
cgaete / README-Template.md
Created April 18, 2019 04:39 — forked from lohhans/README-PTBR.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@cgaete
cgaete / 3.txt
Last active August 14, 2019 20:09
Configure a Firewall and a Startup Script with Deployment Manager
resources:
- name: my-default-allow-http
type: compute.v1.firewall
properties:
targetTags: ["http"]
sourceRanges: ["0.0.0.0/0"]
allowed:
- IPProtocol: TCP
ports: ["80"]
- type: compute.v1.instance
@cgaete
cgaete / 2.txt
Created April 18, 2019 04:04
Deploy a Compute Instance with a Remote Startup Script
#!/bin/bash
apt-get update
apt-get install -y apache2
#------------------------
PROJECT_ID="id_projecto"
#crear bucket, el nombre debe ser unico en internet
gsutil mb gs://$PROJECT_ID
@cgaete
cgaete / 1.txt
Created April 18, 2019 04:01
Google Cloud Essential Skills: Challenge Lab
#------------------------
PROJECT_ID="id_projecto"
#crear bucket, el nombre debe ser unico en internet
gsutil mb gs://$PROJECT_ID
#copiar archivo al bucket creado
gsutil cp resources-install-web.sh gs://$PROJECT_ID