-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy-gitlab-command.ps1
66 lines (57 loc) · 2.06 KB
/
deploy-gitlab-command.ps1
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
$awsAccount = "asds"
if ($awsAccount -eq "personal") {
$awsAccessKey = $(get-content C:\temp\snowcoAccessKey.txt -ErrorAction SilentlyContinue)
$awsSecretKey = $(get-content C:\temp\snowcoSecretKey.txt -ErrorAction SilentlyContinue)
$deploymentBucket = "722777194664-eddy-scratch"
$tagValueContact = "[email protected]"
$keyName = "[email protected]"
} else {
$awsAccessKey = $(get-content C:\temp\awsAccessKey.txt -ErrorAction SilentlyContinue)
$awsSecretKey = $(get-content C:\temp\awsSecretKey.txt -ErrorAction SilentlyContinue)
$deploymentBucket = "357128852511-eddy-scratch"
$tagValueContact = "[email protected]"
$keyName = "[email protected]"
}
& "$env:userprofile\git\labs\deploy-infra.ps1" `
-gitPath "$env:userprofile\git\labs" `
-tagValueProduct "lab" `
-tagValueContact $tagValueContact `
-awsAccessKey $awsAccessKey `
-awsSecretKey $awsSecretKey `
-region "eu-west-1" `
-components vpc `
-stackStemName "gitlab" `
-deploymentBucket $deploymentBucket `
-keyName $keyName `
-confirmWhenStackComplete
& "$env:userprofile\git\labs\deploy-infra.ps1" `
-gitPath "$env:userprofile\git\labs" `
-tagValueProduct "lab" `
-tagValueContact $tagValueContact `
-awsAccessKey $awsAccessKey `
-awsSecretKey $awsSecretKey `
-region "eu-west-1" `
-components postgresrds `
-stackStemName "gitlab" `
-deploymentBucket $deploymentBucket `
-keyName $keyName `
-confirmWhenStackComplete `
-dbSuffix gitlabDb `
-dbInstanceClass db.t2.small `
-rdsRootPass Password01 `
-rdsMultiAz False
& "$env:userprofile\git\labs\deploy-infra.ps1" `
-gitPath "$env:userprofile\git\labs" `
-tagValueProduct "lab" `
-tagValueContact $tagValueContact `
-awsAccessKey $awsAccessKey `
-awsSecretKey $awsSecretKey `
-region "eu-west-1" `
-components gitlablinuxEc2Asg `
-stackStemName "gitlab" `
-deploymentBucket $deploymentBucket `
-keyName $keyName `
-ec2AsgInstanceType t2.small `
-ec2AsgMultiAz False `
-ec2AsgImage amzn-ami-hvm-*-x86_64-gp2* `
-confirmWhenStackComplete