diff --git a/LocalStack/Compute/LabEc2/main.tf b/LocalStack/Compute/LabEc2/main.tf index 55183bb..0b6e4b9 100644 --- a/LocalStack/Compute/LabEc2/main.tf +++ b/LocalStack/Compute/LabEc2/main.tf @@ -8,23 +8,27 @@ # } module "TestInstance" { - source = "../../../modules/compute/ec2" + source = "terraform-aws-modules/ec2-instance/aws" + version = "6.2.0" - 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 = <