Skip to content

Commit

Permalink
use a module instead of an inline terraform plan for reusability.
Browse files Browse the repository at this point in the history
  • Loading branch information
woodhull committed Sep 5, 2019
1 parent afcde74 commit 775676e
Show file tree
Hide file tree
Showing 16 changed files with 32 additions and 529 deletions.
1 change: 0 additions & 1 deletion .gitignore
Expand Up @@ -8,4 +8,3 @@
# .tfvars files
*.tfvars
.idea/
receiver/receiver.zip
38 changes: 0 additions & 38 deletions batches_table.tf

This file was deleted.

24 changes: 0 additions & 24 deletions config_item.json

This file was deleted.

75 changes: 0 additions & 75 deletions config_table.tf

This file was deleted.

4 changes: 0 additions & 4 deletions gateway.tf

This file was deleted.

132 changes: 0 additions & 132 deletions iam.tf

This file was deleted.

32 changes: 0 additions & 32 deletions loader.tf

This file was deleted.

13 changes: 13 additions & 0 deletions main.tf
@@ -0,0 +1,13 @@
module "terraform-aws-controlshift-redshift-sync" {
source = "controlshift/controlshift-redshift-sync/aws"
redshift_username = var.redshift_username
redshift_password = var.redshift_password
receiver_bucket_name = var.receiver_bucket_name
manifest_bucket_name = var.manifest_bucket_name
manifest_prefix = var.manifest_prefix
failed_manifest_prefix = var.failed_manifest_prefix
aws_region = var.aws_region
redshift_database_name = aws_redshift_cluster.default.database_name
redshift_dns_name = aws_redshift_cluster.default.dns_name
redshift_port = aws_redshift_cluster.default.port
}
2 changes: 1 addition & 1 deletion output.tf
@@ -1,3 +1,3 @@
output "webhook_url" {
value = "${aws_api_gateway_deployment.deployment.invoke_url}/webhook"
value = module.terraform-aws-controlshift-redshift-sync.webhook_url
}
13 changes: 0 additions & 13 deletions processed_files_table.tf

This file was deleted.

5 changes: 0 additions & 5 deletions providers.tf
Expand Up @@ -2,8 +2,3 @@ provider "aws" {
version = "~> 2.0"
region = var.aws_region
}

provider "archive" { }
provider "template" { }
provider "random" { }
provider "http" { }

0 comments on commit 775676e

Please sign in to comment.