forked from nigelpoulton/pluralsight-docker-CI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompile.json
More file actions
34 lines (33 loc) · 907 Bytes
/
compile.json
File metadata and controls
34 lines (33 loc) · 907 Bytes
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
{
"variables": {
"aws_access_key": "{{env `AWS_ACCESS_KEY_ID`}}",
"aws_secret_key": "{{env `AWS_SECRET_KEY`}}",
"artifact_token": "{{env `ARTIFACT_TOKEN`}}",
"private_key": "{{env `AWS_SSH_KEY`}}"
},
"builders": [
{
"type": "amazon-ebs",
"access_key": "{{user `aws_access_key`}}",
"secret_key": "{{user `aws_secret_key`}}",
"region": "us-west-2",
"source_ami": "ami-5189a661",
"instance_type": "t2.micro",
"ssh_username": "ubuntu",
"ssh_keypair_name": "vagrant",
"ssh_private_key_file": "{{user `private_key`}}",
"ami_name": "packer2 {{timestamp}}"
}
],
"post-processors": [
{
"type": "atlas",
"token": "{{user `artifact_token`}}",
"artifact": "kyawthetsein/packer2",
"artifact_type": "amazon.ami",
"metadata": {
"created_at": "{{timestamp}}"
}
}
]
}