Skip to content

Commit 5fd7752

Browse files
committed
ami: upgrade to alinux2
1 parent 64b6482 commit 5fd7752

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ami.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"region": "{{user `region`}}",
1212
"source_ami_filter": {
1313
"filters": {
14-
"name": "amzn-ami-hvm-*-gp2",
14+
"name": "amzn2-ami-hvm-*-gp2",
1515
"architecture": "x86_64",
1616
"owner-alias": "amazon",
1717
"root-device-type": "ebs",
@@ -20,6 +20,7 @@
2020
"sriov-net-support": "simple",
2121
"virtualization-type": "hvm"
2222
},
23+
"owners": ["137112412989"],
2324
"most_recent": true
2425
},
2526
"instance_type": "c5.xlarge",
@@ -39,6 +40,7 @@
3940
"inline": [
4041
"sudo yum -y clean all",
4142
"sudo yum -y upgrade",
43+
"sudo yum search java",
4244
"sudo yum install -y java-1.8.0-openjdk-devel",
4345
"sudo yum remove -y java-1.7.0-openjdk",
4446
"sudo /usr/sbin/alternatives --config java && sudo /usr/sbin/alternatives --config javac",

0 commit comments

Comments
 (0)