Skip to content

Commit

Permalink
update samples for labs
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronsteers committed May 8, 2020
1 parent 2be0783 commit b4c59dc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
9 changes: 3 additions & 6 deletions samples/mysql-on-aws/01_rds_mysql.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# NOTE: Requires AWS policy 'AmazonRDSFullAccess' on the terraform account

output "summary" { value = module.rds_mysql.summary }
module "rds_mysql" {
# source = "git::https://github.com/slalom-ggp/dataops-infra.git//catalog/aws/rds?ref=master"
# source = "git::https://github.com/slalom-ggp/dataops-infra.git//catalog/aws/mysql?ref=master"
source = "../../catalog/aws/mysql"
name_prefix = "${local.project_shortname}-"
environment = module.env.environment
Expand All @@ -12,7 +13,7 @@ module "rds_mysql" {
identifier = "rds-db"
admin_username = "mysqladmin"
admin_password = "asdfASDF12"
skip_final_snapshot = true # allows simple DB deletion for POC environments
skip_final_snapshot = true # allows simple DB deletion for POC environments

/* OPTIONALLY, COPY-PASTE ADDITIONAL SETTINGS FROM BELOW:
Expand All @@ -24,7 +25,3 @@ module "rds_mysql" {
*/

}


output "summary" { value = module.rds_mysql.summary }

4 changes: 2 additions & 2 deletions samples/postgres-on-aws/01_rds_postgres.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# NOTE: Requires AWS policy 'AmazonRDSFullAccess' on the terraform account

output "summary" { value = module.rds_postgres.summary }
module "rds_postgres" {
# source = "git::https://github.com/slalom-ggp/dataops-infra.git//catalog/aws/rds?ref=master"
# source = "git::https://github.com/slalom-ggp/dataops-infra.git//catalog/aws/postgres?ref=master"
source = "../../catalog/aws/postgres"
name_prefix = "${local.project_shortname}-"
environment = module.env.environment
Expand All @@ -26,5 +27,4 @@ module "rds_postgres" {

#OPTIONAL CONFIGURATION HERE

output "summary" { value = module.rds_postgres.summary }

6 changes: 2 additions & 4 deletions samples/redshift-dw/02_redshift.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# NOTE: Requires AWS policy 'AmazonRedshiftFullAccess' on the terraform account

output "summary" { value = module.redshift_dw.summary }
module "redshift_dw" {
# source = "git::https://github.com/slalom-ggp/dataops-infra.git//catalog/aws/redshift?ref=master"
# source = "git::https://github.com/slalom-ggp/dataops-infra.git//catalog/aws/redshift?ref=master"
source = "../../catalog/aws/redshift"
name_prefix = "${local.project_shortname}-"
environment = module.env.environment
Expand All @@ -18,8 +19,5 @@ module "redshift_dw" {
num_nodes = 1
admin_password = "asdfAS12"
aws_region = local.aws_region
*/
}

output "summary" { value = module.redshift_dw.summary }

0 comments on commit b4c59dc

Please sign in to comment.