Commit e99aa6f
Alena Kastsiukavets
Update install\update script to use information about region from instance metadata
# Why is this change needed?
Titan zone has a different format of AZ-region
# How does it address the issue?
Extract information about region from region metadata
# How was this tested ?
```
sudo ./install auto
```
OUTPUT:
```
INFO -- : Starting Ruby version check.
INFO -- : Starting update check.
INFO -- : Attempting to automatically detect supported package manager type for
INFO -- : Checking AWS_REGION environment variable for region information...
INFO -- : Checking EC2 metadata service for region information...
INFO -- : Downloading version file from bucket aws-codedeploy-eu-west-1 and key
INFO -- : Downloading version file from bucket aws-codedeploy-eu-west-1 and key
INFO -- : Downloading package from bucket aws-codedeploy-eu-west-1 and key releases/codedeploy-agent-1.0-1.1597.noarch.rpm...
```
```
unset AWS_REGION
sudo ./update auto
```
OUTPUT:
```
INFO -- : Starting Ruby version check.
INFO -- : Starting update check.
INFO -- : Attempting to automatically detect supported package manager type for
INFO -- : Checking AWS_REGION environment variable for region information...
INFO -- : Checking EC2 metadata service for region information...
INFO -- : Downloading version file from BUCKET aws-codedeploy-eu-west-1 and key latest/VERSION...
```
cr https://code.amazon.com/reviews/CR-226053551 parent aaadc81 commit e99aa6f
2 files changed
+10
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
198 | 199 | | |
199 | 200 | | |
200 | 201 | | |
201 | | - | |
202 | | - | |
203 | | - | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
204 | 206 | | |
205 | 207 | | |
206 | 208 | | |
207 | 209 | | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | 210 | | |
216 | 211 | | |
217 | 212 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
270 | 271 | | |
271 | 272 | | |
272 | 273 | | |
273 | | - | |
274 | | - | |
275 | | - | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
276 | 278 | | |
277 | 279 | | |
278 | 280 | | |
279 | 281 | | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | 282 | | |
288 | 283 | | |
289 | 284 | | |
| |||
0 commit comments