-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaws_script.json
More file actions
27 lines (27 loc) · 951 Bytes
/
aws_script.json
File metadata and controls
27 lines (27 loc) · 951 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{
"schemaVersion": "2.2",
"description": "Install Dashboard App",
"mainSteps": [
{
"inputs": {
"runCommand": [
" #!/bin/sh",
" # Install Apache Web Server and PHP",
" yum install -y httpd",
" amazon-linux-extras install -y php7.2",
" # Turn on web server",
" systemctl enable httpd.service",
" systemctl start httpd.service",
" # Download and install the AWS SDK for PHP",
" wget https://github.com/aws/aws-sdk-php/releases/download/3.62.3/aws.zip",
" unzip aws -d /var/www/html",
" # Download Application files",
" wget https://aws-tc-largeobjects.s3-us-west-2.amazonaws.com/CUR-TF-200-RESOPS/lab1vocareum/widget-app.zip",
" unzip widget-app.zip -d /var/www/html/"
]
},
"name": "InstallDashboardApp",
"action": "aws:runShellScript"
}
]
}