Skip to content

Commit c0d9388

Browse files
committed
AWS marketplace approved configuration
1 parent 424eeb8 commit c0d9388

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

amazon.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,20 @@
33
"aws_access_key": "",
44
"aws_secret_key": "",
55
"region": "",
6+
"ami": "",
67
"name": ""
78
},
89
"builders": [{
910
"type": "amazon-ebs",
1011
"access_key": "{{user `aws_access_key`}}",
1112
"secret_key": "{{user `aws_secret_key`}}",
1213
"region": "{{user `region`}}",
13-
"source_ami": "ami-0f7719e8b7ba25c61",
14-
"instance_type": "t2.micro",
14+
"source_ami": "{{user `ami`}}",
15+
"instance_type": "t2.large",
1516
"ssh_username": "ubuntu",
1617
"ami_name": "{{user `name`}}",
1718
"launch_block_device_mappings": [{
1819
"device_name": "/dev/sda1",
19-
"encrypted": true,
20-
"kms_key_id": "44e7e739-21f1-4678-829e-d1ac63d121b4",
2120
"iops": 400,
2221
"volume_type": "io1",
2322
"volume_size": 8,
@@ -35,6 +34,7 @@
3534
"type": "shell",
3635
"scripts": [
3736
"scripts/01-test",
37+
"scripts/02-credentials_cleanup.sh",
3838
"scripts/90-cleanup.sh",
3939
"scripts/91-log_cleanup.sh",
4040
"scripts/99-img_check.sh"

scripts/02-credentials_cleanup.sh

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sudo rm /home/ubuntu/.ssh/authorized_keys

0 commit comments

Comments
 (0)