File tree Expand file tree Collapse file tree 6 files changed +267
-202
lines changed Expand file tree Collapse file tree 6 files changed +267
-202
lines changed Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 1+ version : 0.0
2+ os : linux
3+ files :
4+ - source : /index.html
5+ destination : /var/www/html/
6+ hooks :
7+ BeforeInstall :
8+ - location : scripts/install_dependencies
9+ timeout : 300
10+ runas : root
11+ - location : scripts/start_server
12+ timeout : 300
13+ runas : root
14+ ApplicationStop :
15+ - location : scripts/stop_server
16+ timeout : 300
17+ runas : root
18+
Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < html >
3+ < head >
4+ < meta charset ="utf-8 ">
5+ < title > Sample Deployment</ title >
6+ < style >
7+ body {
8+ color : # ffffff ;
9+ background-color : # 007f3f ;
10+ font-family : Arial, sans-serif;
11+ font-size : 14px ;
12+ }
13+
14+ h1 {
15+ font-size : 500% ;
16+ font-weight : normal;
17+ margin-bottom : 0 ;
18+ }
19+
20+ h2 {
21+ font-size : 200% ;
22+ font-weight : normal;
23+ margin-bottom : 0 ;
24+ }
25+ </ style >
26+ </ head >
27+ < body >
28+ < div align ="center ">
29+ < h1 > Congratulations!</ h1 >
30+ < h2 > You have successfully created a pipeline that retrieved this source application from an Amazon S3 bucket and deployed it
31+ to three Amazon EC2 instances using AWS CodeDeploy.</ h2 >
32+ < p > For next steps, read the AWS CodePipeline Documentation.</ p >
33+ </ div >
34+ </ body >
35+ </ html >
36+
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ yum install -y httpd
3+
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ service httpd start
3+
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ isExistApp = ` pgrep httpd`
3+ if [[ -n $isExistApp ]]; then
4+ service httpd stop
5+ fi
6+
You can’t perform that action at this time.
0 commit comments