Skip to content

Instantly share code, notes, and snippets.

{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "CCA - Lab 5",
"Parameters": {
"VPCCIDR": {
"Description": "CIDR Block for VPC",
"Type": "String",
"Default": "10.0.0.0/16",
"AllowedValues": [ "10.0.0.0/16" ]
},
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "CCA - Lab 6",
"Parameters": {
"KeyName": {
"Type": "String",
"Description": "Keyname for the keypair that Qwiklab will use",
"Default": "lab-key-pair"
},
"DBAllocatedStorage": {
<powershell>
Install-WindowsFeature Web-Server -IncludeManagementTools -IncludeAllSubFeature
</powershell>
#!/bin/bash
# Install Apache Web Server and PHP
yum remove -y httpd php
yum install -y httpd24 php56
# Download Lab files
wget https://us-west-2-aws-staging.s3.amazonaws.com/awsu-ilt/AWS-100-ARC/v5.2/lab-1-webapp/scripts/lab1src.zip
unzip lab1src.zip -d /tmp/
mv /tmp/lab1src/*.php /var/www/html/
# Download and install the AWS SDK for PHP
wget https://github.com/aws/aws-sdk-php/releases/download/3.15.9/aws.zip
# Snap_and_Tag Lambda function
#
# This function is triggered when Auto Scaling launches a new instance.
# A snapshot of EBS volumes will be created and a tag will be added.
from __future__ import print_function
import json, boto3
def lambda_handler(event, context):
AWSTemplateFormatVersion: 2010-09-09
Description: Deploy a VPC
Resources:
VPC:
Type: AWS::EC2::VPC
Properties:
CidrBlock: 10.0.0.0/16
EnableDnsHostnames: true
Tags:
@jipengxiang
jipengxiang / AWS Lab 11 CloudFront
Created May 23, 2018 12:50
AWS LAb 11 Cloudfront CDN
{
"AWSTemplateFormatVersion" : "2010-09-09",
"Description" : "CloudFront Lab-Caching Static Files",
"Parameters" : {
"AWSAmiId" : {
"Description": "AMI Id to find",
"Type": "String",
"Default": "x86_64,amzn-ami-pv-2014.03.1.x86_64-ebs,amazon,ebs,paravirtual"
},
"KeyName": {
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "CCA Lab 13 - v3.1: Route 53 Failover",
"Parameters": {
"VPCCIDR": {
"Description": "CIDR Block for VPC",
"Type": "String",
"Default": "10.10.0.0/16",
"AllowedValues": [
"10.10.0.0/16"
@jipengxiang
jipengxiang / gist:c796e278c4c8ea15d8fefd5b6e5723cb
Created July 14, 2018 06:04
Embrace failure root cause invent elb was born
user experience
server overloaded
web api access
provisioning of resources
School of Digital Media & Infocomm Technology (DMIT)
ST1012 Programming Fundamentals
Tutorial 7
Objects and classes
1. What is wrong with the following codes?
a)
public class Square {