1
0

chore: adjusted provider to allow use with tofu 1.11

This commit is contained in:
xpk
2026-02-19 18:13:39 +08:00
parent d10189df7a
commit 770e43dee7
3 changed files with 25 additions and 1 deletions
+17
View File
@@ -18,6 +18,7 @@ module "TestInstance" {
instance_type = "t4g.large"
subnet_id = data.terraform_remote_state.vpc.outputs.private_subnets[0]
create_security_group = false
vpc_security_group_ids = [module.TestSg.id]
root_block_device = {
device_name = "/dev/xvda"
type = "gp3"
@@ -53,4 +54,20 @@ module "KmsKeys" {
create-secret-key = false
create-storage-key = false
deletion_window_in_days = 7
}
module "TestSg" {
source = "../../../modules/compute/security_group"
name = "example-sg"
description = "SG of EC2 bastion instances"
vpc-id = data.terraform_remote_state.vpc.outputs.vpc_id
ingress = {
r1 = "tcp,4750,4750,1.2.3.4/32,Patch Management Tool"
r2 = "tcp,22,22,1.2.3.4/32,Patch Management Tool"
}
egress = {
r1 = "-1,-1,-1,0.0.0.0/0,Allow egress ipv4"
r2 = "-1,-1,-1,::/0,Allow egress ipv6"
}
}