Skip to content

Commit a298b36

Browse files
committed
Updated some of 4 and most of section 3
1 parent 032554e commit a298b36

File tree

121 files changed

+11580
-91
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+11580
-91
lines changed

3d_Data_sources/data_sources.tf

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
provider "aws" {
2-
access_key = "ACCESS_KEY"
3-
secret_key = "SECRET_KEY"
4-
region = "us-east-1"
2+
region = "us-east-1"
53
}
64

75
provider "aws" {
8-
alias = "us-west-1"
9-
access_key = "ACCESS_KEY"
10-
secret_key = "SECRET_KEY"
11-
region = "us-west-1"
6+
alias = "us-west-1"
7+
region = "us-west-1"
128
}
139

1410
data "aws_availability_zones" "us-east-1" {}

3g_Workspaces/workspaces.tf

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
provider "aws" {
2-
region = "us-east-1"
2+
region = "us-east-1"
33
}
44

55
locals {
6-
default_name = "${join("-", list(terraform.workspace, 'example'))"
6+
default_name = "${join("-", list(terraform.workspace, "example"))}"
77
}
88

99
resource "aws_instance" "example" {
10-
tags = {
11-
Name = "${local.default_name}"
10+
tags = {
11+
Name = "${local.default_name}"
1212
}
13+
1314
ami = "ami-2757f631"
1415
instance_type = "t2.micro"
1516
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
server {
2+
listen 80 default_server;
3+
listen [::]:80 default_server;
4+
server_name localhost;
5+
root /var/www/frontend;
6+
index index.php;
7+
8+
location ~* \.php$ {
9+
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
10+
include fastcgi_params;
11+
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
12+
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
13+
}
14+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php
2+
3+
require_once (dirname(__FILE__) . '/require/Requests.php');
4+
5+
$msg = 'Its cool';
6+
7+
Requests::register_autoloader();
8+
9+
$url = 'http://127.0.0.1:8000/api/v1/response/?msg=';
10+
11+
12+
$url_list = array('insert_your_urls_here_as_you_see_above_like_$url');
13+
14+
$headers = array('Accept' => 'application/json');
15+
$options = array('auth' => array('user', 'pass'));
16+
17+
18+
foreach ($url_list as $url) {
19+
20+
$request = Requests::get($url . $msg, $headers, $options);
21+
22+
print($request->body);
23+
print(PHP_EOL);
24+
25+
// var_dump($request->body);
26+
};
27+
28+
29+
?>

0 commit comments

Comments
 (0)