Skip to content

Commit

Permalink
[Add] Terraform module for AWS cognito user pool
Browse files Browse the repository at this point in the history
  • Loading branch information
sahil21 committed Dec 13, 2018
1 parent a168460 commit 634cfbe
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
12 changes: 12 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Define composite variables for resources
module "label" {
source = "git::https://github.com/cloudposse/terraform-terraform-label.git?ref=tags/0.2.1"
namespace = "${var.namespace}"
name = "${var.name}"
stage = "${var.stage}"
tags = "${var.tags}"
}

resource "aws_cognito_user_pool" "pool" {
name = "${module.label.id}"
}
Empty file added outputs.tf
Empty file.
20 changes: 20 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
variable "namespace" {
type = "string"
description = "Namespace, which could be your organization name/project, e.g. 'mithoo' or 'intomix'"
}

variable "stage" {
type = "string"
description = "Stage, e.g. 'prod', 'staging', 'dev', or 'test'"
}

variable "name" {
default = "app"
description = "Solution name, e.g. 'polly-pool'"
}

variable "tags" {
type = "map"
default = {}
description = "Additional tags (e.g. `map('BusinessUnit`,`XYZ`)"
}

0 comments on commit 634cfbe

Please sign in to comment.