infrastructure

'Not a valid output for module' when using output variable with terraform

对着背影说爱祢 提交于 2019-11-28 05:28:55
问题 I'm trying to setup some IaC for a new project using Hashicorp Terraform on AWS. I'm using modules because I want to be able to reuse stuff across multiple environments (staging, prod, dev, etc.) I'm struggling to understand where I have to set an output variable within a module, and how I then use that in another module. Any pointers to this would be greatly appreciated! I need to use some things created in my VPC module (subnet IDs) when creating EC2 machines. My understanding is that you

Why is it not advisable to have the database and web server on the same machine?

☆樱花仙子☆ 提交于 2019-11-28 02:37:10
Listening to Scott Hanselman's interview with the Stack Overflow team ( part 1 and 2 ), he was adamant that the SQL server and application server should be on separate machines. Is this just to make sure that if one server is compromised, both systems aren't accessible? Do the security concerns outweigh the complexity of two servers (extra cost, dedicated network connection between the two, more maintenance, etc.), especially for a small application, where neither piece is using too much CPU or memory? Even with two servers, with one server compromised, an attacker could still do serious

Why is it not advisable to have the database and web server on the same machine?

元气小坏坏 提交于 2019-11-27 04:56:10
问题 Listening to Scott Hanselman's interview with the Stack Overflow team (part 1 and 2), he was adamant that the SQL server and application server should be on separate machines. Is this just to make sure that if one server is compromised, both systems aren't accessible? Do the security concerns outweigh the complexity of two servers (extra cost, dedicated network connection between the two, more maintenance, etc.), especially for a small application, where neither piece is using too much CPU or