在我们的团队中,我们使用 AWS 作为我们的主要云提供商,目前,我们在他们的平台上托管了 3 个项目。
在接下来的几周里,我们将有 2 个项目,但首先,我们想组织我们的项目,因为我们目前的组织有点混乱。
我们希望我们的项目按照以下规则组织:
那么,是否可以按照前面提到的规则在 AWS 中组织项目?如果是这样,学习如何做到这一点的好资源是什么?如果没有,哪些云提供商允许以我们想要的方式组织项目?
感谢您的关注和时间。我期待着您的回复。
cloud development-environment production-environment amazon-web-services
我在两个可用区中启动了两个 ec2 实例,我需要使用 terraform 在两个实例中安装 efs。
resource "aws_efs_file_system" "magento-efs" {
creation_token = "efs-demo"
performance_mode = "generalPurpose"
throughput_mode = "bursting"
encrypted = "true"
tags = {
Name = "Magento-EFS"
}
}
resource "aws_efs_mount_target" "efs-mount" {
file_system_id = "${aws_efs_file_system.magento-efs.id}"
subnet_id = "${aws_subnet.public_subnet.0.id}"
security_groups = ["${aws_security_group.efs-sg.id}"]
}
Run Code Online (Sandbox Code Playgroud)
使用上面的代码,我可以在 us-east-1a 中创建 efs。我需要在 us-east-1a 和 us-east-1b 中都提供它
encrypting-file-system amazon-ec2 amazon-web-services terraform