We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4152e31 commit 2a9cc2cCopy full SHA for 2a9cc2c
1 file changed
terraform/bastion-host.nix
@@ -9,10 +9,18 @@
9
"github.com/cloudposse/terraform-aws-ec2-bastion-server?ref=7f8fc52095ef466fedd1c06876e281a1ac6bb75b";
10
enabled = true;
11
instance_type = "t4g.micro";
12
- # ami = "ami-03190fe20ef6b1419";
+
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
20
# ami_filter = {
- # name = [ "amzn2-ami-kernel-5.10-hvm-*-arm64-gp2" ]
- # }
21
+ # name = [ "amzn2-ami-*-hvm-*-arm64-gp2" ]
22
+ # };
23
24
25
# ID will be constructed from these namespace, stage, and name for some reason.
26
namespace = "dailp";
0 commit comments