add example

This commit is contained in:
Malte Brodersen 2017-10-10 16:57:18 +02:00
parent 11f3571538
commit fcb15dc552
2 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,18 @@
resource "aws_db_instance" "wordpress" {
# worng spaces # to much spaces
allocated_storage = 10
storage_type = "gp2"
engine = "mariadb"
engine_version = "10.0.24"
instance_class = "db.t2.micro"
identifier = "db-${var.env}"
name = "wordpress"
username = "wordpress"
password = "${var.wordpress_db_pass}"
db_subnet_group_name = "${aws_db_subnet_group.default.name}"
vpc_security_group_ids = ["${aws_security_group.RuleWebServerIn.id}"]
apply_immediately = true
}

View File

@ -0,0 +1,21 @@
resource "aws_db_instance" "wordpress" {
# worng spaces
# to much spaces
allocated_storage = 10
storage_type = "gp2"
engine = "mariadb"
engine_version = "10.0.24"
instance_class = "db.t2.micro"
identifier = "db-${var.env}"
name = "wordpress"
username = "wordpress"
password = "${var.wordpress_db_pass}"
db_subnet_group_name = "${aws_db_subnet_group.default.name}"
vpc_security_group_ids = ["${aws_security_group.RuleWebServerIn.id}"]
apply_immediately = true
}