@Sheikh_Dawood
I was trying to deploy on AWS using terraform and in the terraform resource “aws_instance” user_data = file("isaac-sim-oige.sh")
cannot properly run the script “isaac-sim-oige.sh”. The weird behaviour is that sometimes it runs, sometimes it runs partially and sometimes dont run at all.
The behaviour might be because of execution time, so I was thinking to implement Ansible. I would like to know what other alternatives you reccomend or if Nvidia has Ansible playbooks to setup its images, would be useful to come with a robust strategy to deploy OIGE at scale.
resource "aws_instance" "isaac_sim_oige" {
# ami = local.nvidia_ami
ami = data.aws_ami_ids.nvidia_omniverse_ami.ids[0]
instance_type = local.instance_type
key_name = "isaac-sim-oige-key"
user_data = file("isaac-sim-oige.sh")
# user_data = file("isaac-sim-oige-v2.sh")
security_groups = [ aws_security_group.sg_isaac_sim_oige.id ]
# We Gonna pick the first availability zone that has the Instance Type we want
availability_zone = keys({ for az, details in data.aws_ec2_instance_type_offerings.my_ins_type :
az => details.instance_types if length(details.instance_types) != 0 })[0]
subnet_id = aws_subnet.subnet.id
# Env = "isaac-sim"
ebs_block_device {
device_name = "/dev/sda1"
volume_size = 200
}
tags = {
Name = local.instance_name
Env = var.env
}
depends_on = [
aws_security_group.sg_isaac_sim_oige,
aws_key_pair.isaac-sim-oige-public-key
]
}
The entire code can be found here: