-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy-ansible-command.ps1
52 lines (45 loc) · 1.74 KB
/
deploy-ansible-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
$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]"
$pemToInject = ""
} 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]"
$pemToInject = "eddy-scratchintappcom.pem"
}
& "$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 "ansible" `
-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 ansible `
-stackStemName "ansible" `
-deploymentBucket $deploymentBucket `
-ec2AnsibleInstanceType t2.medium `
-keyName $keyName `
-ec2AsgInstanceType t2.micro `
-ec2AsgMultiAz False `
-ec2AsgImage amzn-ami-hvm-*-x86_64-gp2* `
-confirmWhenStackComplete `
-pemToInject $pemToInject