-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Add] Terraform module for AWS cognito user pool
- Loading branch information
Showing
3 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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`)" | ||
} |