File tree Expand file tree Collapse file tree
terragrunt/non-prod/dev/ap-southeast-2/ec2_bastion Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11terraform {
2- source = " git::ssh://git@github.com/intersective/devops-infrastructure-common.git//modules/aws_ec2_bastion/?ref=v0.0.1 "
2+ source = " git::ssh://git@github.com/intersective/devops-infrastructure-common.git//modules/aws_ec2_bastion/?ref=v0.0.12 "
33}
44
55include "root" {
@@ -29,13 +29,29 @@ inputs = {
2929 aws_region = local.region_vars.locals.aws_region
3030 stack_name = local.account_vars.locals.stack_name
3131 tags = local.tags_vars.locals.common_tags
32+ user_data_script = local.user_data_final
3233 ami_name = " ubuntu/images/hvm-ssd-gp3/ubuntu-noble-24.04-amd64-server-*"
3334 ami_owners = " 099720109477"
34- instance_type = " t2.micro"
35- user_data_script = local.user_data_final
3635 vpc_name = " ${ local . account_vars . locals . stack_name } -vpc-${ local . account_vars . locals . environment } "
3736 public_subnet_name_wildcard = " *public*"
3837 db_server_sg_name = " ${ local . account_vars . locals . stack_name } -DBServerSecurityGroup-${ local . account_vars . locals . environment } "
39- bastion_sg_name = " ${ local . account_vars . locals . stack_name } -ProjectHubBastion-${ local . account_vars . locals . environment } "
40- sg_inbound_ports = [5432 ]
38+ bastion_sg_name = " ${ local . account_vars . locals . stack_name } -projecthub-bastion-${ local . account_vars . locals . environment } "
39+ instance_type = " t2.micro"
40+ ingress_rules = [
41+ {
42+ from_port = 22
43+ to_port = 22
44+ protocol = " tcp"
45+ description = " SSH from anywhere"
46+ cidr_blocks = [" 0.0.0.0/0" ]
47+ }
48+ ]
49+ egress_rules = [
50+ {
51+ from_port = 0
52+ to_port = 0
53+ protocol = " -1"
54+ cidr_blocks = [" 0.0.0.0/0" ]
55+ }
56+ ]
4157}
You can’t perform that action at this time.
0 commit comments