-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathVagrantfile
39 lines (35 loc) · 1.39 KB
/
Vagrantfile
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
$VAGRANT_CONFIG_VERSON = 2
Vagrant.require_plugin "vagrant-aws"
Vagrant.require_plugin "vagrant-winrm-syncedfolders"
Vagrant.configure($VAGRANT_CONFIG_VERSION) do |config|
config.vm.box = "dummy"
config.vm.box_url = "https://github.com/mitchellh/vagrant-aws/blob/master/dummy.box?raw=true"
config.vm.communicator = "winrm"
config.vm.guest = :windows
config.vm.provider :aws do |aws, override|
aws.access_key_id = ENV['AWS_ACCESS_KEY_ID']
aws.secret_access_key = ENV["AWS_SECRET_ACCESS_KEY"]
aws.keypair_name = ENV["AWS_KEYPAIR_NAME"]
aws.ami = "ami-fa05b392"
aws.tags = {
'Name' => ENV["ASSET_NAME"],
'net.matrix.orgunit' => "Matrix NOC",
'net.matrix.organization' => "Private Ops",
'net.matrix.commonname' => "cloud",
'net.matrix.locality' => "Dallas",
'net.matrix.state' => "Texas",
'net.matrix.country' => "USA",
'net.matrix.environment' => "<nonprod|production|staging>",
'net.matrix.application' => "infrastructure",
'net.matrix.role' => "application services",
'net.matrix.owner' => "[email protected]",
'net.matrix.customer' => "PVT-01",
'net.matrix.costcenter' => "INT-01"
}
aws.instance_type = "t3.medium"
aws.region = ENV["AWS_DEFAULT_REGION"]
aws.subnet_id = ENV["AWS_SUBNET"]
aws.security_groups = ENV["AWS_SECURITY_GROUPS"]
override.nfs.functional = false
end
end