Skip to content

Commit 2a9cc2c

Browse files
hard code ec2 ami ids (#708)
1 parent 4152e31 commit 2a9cc2c

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

terraform/bastion-host.nix

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,18 @@
99
"github.com/cloudposse/terraform-aws-ec2-bastion-server?ref=7f8fc52095ef466fedd1c06876e281a1ac6bb75b";
1010
enabled = true;
1111
instance_type = "t4g.micro";
12-
# ami = "ami-03190fe20ef6b1419";
12+
13+
# TODO Make this more flexible
14+
ami = if config.setup.stage == "prod"
15+
then "ami-037d882b31eae26a2"
16+
else if config.setup.stage == "uat"
17+
then "ami-03190fe20ef6b1419"
18+
else "ami-0d1c8113ba7b8b12a";
19+
1320
# ami_filter = {
14-
# name = [ "amzn2-ami-kernel-5.10-hvm-*-arm64-gp2" ]
15-
# }
21+
# name = [ "amzn2-ami-*-hvm-*-arm64-gp2" ]
22+
# };
23+
1624

1725
# ID will be constructed from these namespace, stage, and name for some reason.
1826
namespace = "dailp";

0 commit comments

Comments
 (0)