diff --git a/LocalStack/Compute/LabEc2/main.tf b/LocalStack/Compute/LabEc2/main.tf new file mode 100644 index 0000000..55183bb --- /dev/null +++ b/LocalStack/Compute/LabEc2/main.tf @@ -0,0 +1,52 @@ +# resource "aws_instance" "Test" { +# ami = data.aws_ami.this.id +# instance_type = "t4g.large" +# +# tags = { +# Name : "TestInstance001" +# } +# } + +module "TestInstance" { + source = "../../../modules/compute/ec2" + + additional-tags = {} + ami-id = data.aws_ami.this.id + asso-eip = false + asso-public-ip = false + data-volumes = {} + instance-name = "TestInstance001" + instance-type = "t4g.large" + kms-key-id = module.KmsKeys.cmks["allpurpose"].arn + root-volume-size = 20 + security-groups = [] + subnet-id = data.terraform_remote_state.vpc.outputs.private_subnets[0] + user-data = <