-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathDay1_History
157 lines (157 loc) · 3.62 KB
/
Day1_History
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
1 ls
2 git clone https://github.com/amitvashisttech/terraform-mindtree-28Oct2020.git
3 ls
4 cd terraform-mindtree-28Oct2020/
5 ls
6 mkdir 00-Install-Terraform
7 ls
8 vim 00-Install-Terraform/terraform-bootstrap.sh
9 ls
10 cd 00-Install-Terraform/
11 ls
12 rm -rf /root/terraform_0.12.28_linux_amd64.zip
13 ls
14 chmod +x terraform-bootstrap.sh
15 ./terraform-bootstrap.sh
16 ls
17 cd ..
18 ls
19 git add . ; git commit -m "00-Install-Terraform"; git push
20 ls
21 git config --list
22 ,s
23 ls
24 vim README.md
25 git add .
26 git commit -m "Update: ReadMe"
27 git config --global --edit
28 git config credential.helper store
29 git commit -m "Update: ReadMe"
30 git push
31 cd
32 ls
33 ls -a
34 exit
35 grep -i AWS .bashrc
36 ls
37 cd terraform-mindtree-28Oct2020/
38 ls
39 cd 01-First-Deployment/
40 ls
41 cat first_deployment.tf
42 ls
43 cd ..
44 ls
45 cp -rf 01-First-Deployment 02-CLI-Excutions
46 ls
47 cd 02-CLI-Excutions/
48 ls
49 ls -a
50 rm -rf .terraform*
51 ls
52 rm -rf terraform.tfstate*
53 ls
54 ls -a
55 terraform init
56 ls -a
57 vim first_deployment.tf
58 terraform plan
59 terraform plan -out build-plan
60 ls
61 file build-plan
62 cat build-plan
63 vim first_deployment.tf
64 rm -rf build-plan
65 terraform plan -out build-plan
66 ls
67 terraform show build-plan
68 terraform apply build-plan
69 terraform show
70 ls
71 file terraform.tfstate
72 cat terraform.tfstate
73 cat first_deployment.tf
74 terraform refresh
75 cat terraform.tfstate
76 terraform apply
77 terraform plan --destroy -out destroy-plan
78 terraform apply "destroy-plan"
79 ls
80 cat terraform.tfstate
81 ls
82 terraform validate
83 vim first_deployment.tf
84 terraform validate
85 vim first_deployment.tf
86 terraform validate
87 ls
88 history
89 ls
90 history > ../Day1_History
91 ls
92 cd ..
93 ls
94 git add . ; git commit -m "02-CLI-Excutions"; git push
95 ls
96 cp -rf 01-First-Deployment 03-Resources
97 ls
98 df -h
99 ls
100 free -m
101 ls
102 cd 03-Resources/
103 ls
104 rm -rf terraform.tfstate*
105 ls
106 sl
107 ls
108 mv first_deployment.tf resource.tf
109 ls
110 vim resource.tf
111 ls
112 ls -a
113 terraform plan
114 vim resource.tf
115 terraform plan
116 vim resource.tf
117 terraform plan
118 vim resource.tf
119 terraform plan
120 ls
121 vim resource.tf
122 terraform apply
123 terraform destroy
124 ls
125 vim resource.tf
126 terraform apply
127 terraform destroy
128 ls
129 vim resource.tf
130 terraform apply
131 vim resource.tf
132 terraform apply
133 vim resource.tf
134 terraform apply
135 vim resource.tf
136 terraform apply
137 terraform show
138 ls
139 cat terraform.tfstate | more
140 cat terraform.tfstate.backup | more
141 ls
142 vim resource.tf
143 terraform destroy --auto-approve
144 terraform plan
145 terraform destroy --auto-approve -traget aws_instance.frontend
146 terraform destroy --auto-approve -target aws_instance.frontend
147 vim resource.tf
148 terraform destroy --auto-approve
149 ls
150 vim resource.tf
151 terraform validate
152 vim resource.tf
153 terraform validate
154 ls
155 cd ..
156 ls
157 history > Day1_History