我在 Bluemix 上查看 Amazon ec2 实例模板的预定义 LAMP 堆栈,发现以下代码:
"awsPHPInstance": {
"source": "git::https://github.com/camc-experimental/terraform-modules.git?ref=master//aws/ami_instance",
"aws_ami": "${module.find_ami.aws_ami}",
"aws_instance_type": "t2.micro",
"aws_subnet_id": "${module.awsNetwork.subnet_id}",
"aws_security_group_id": "${module.awsNetwork.application_security_group_id}",
"aws_cam_public_key_id": "${aws_key_pair.cam_lamp_public_key.id}",
"hostname": "${var.php_instance_name}",
"module_script": "files/createCAMUser.sh",
"module_script_name": "createCAMUser.sh",
"module_script_variable_1": "${var.cam_user}",
"module_script_variable_2": "${var.cam_pwd}"
}
我不是很清楚"module_script": "files/createCAMUser.sh"
。该文件的确切包含 shell 脚本的文件夹在哪里?据我了解,我们只能有单页独立 terraform 模板。