Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Ninir committed Nov 16, 2017
1 parent 1533258 commit 1318ed5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions examples/cognito-user-pool/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Cognito User Pool example

This example shows how to create
This example shows how to create

This creates a Cognito User Pool, IAM roles and lambdas.

To run, configure your AWS provider as described in https://www.terraform.io/docs/providers/aws/index.html

Running the example

For planning phase
For planning phase

```
terraform plan
Expand Down
6 changes: 3 additions & 3 deletions examples/cognito-user-pool/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ EOF
}

resource "aws_lambda_function" "main" {
filename = "lambda_function.zip"
filename = "lambda.zip"
function_name = "terraform-example"
role = "${aws_iam_role.main.arn}"
handler = "exports.example"
Expand Down Expand Up @@ -53,7 +53,7 @@ POLICY

resource "aws_iam_role_policy" "main" {
name = "terraform-example-cognito-idp"
role = "${aws_iam_role.main2.id}"
role = "${aws_iam_role.cidp.id}"

policy = <<EOF
{
Expand Down Expand Up @@ -136,7 +136,7 @@ resource "aws_cognito_user_pool" "pool" {

sms_configuration {
external_id = "12345"
sns_caller_arn = "${aws_iam_role.main2.arn}"
sns_caller_arn = "${aws_iam_role.cidp.arn}"
}

tags {
Expand Down

0 comments on commit 1318ed5

Please sign in to comment.