-
-
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.
- Loading branch information
1 parent
a239c4e
commit 609df78
Showing
34 changed files
with
317 additions
and
175 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
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
File renamed without changes.
File renamed without changes.
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
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
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
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,21 @@ | ||
/* | ||
******************* DO NOT EDIT THIS NOTICE ***************** | ||
This legal notice is added to every supported source code | ||
file at every commit. See the README for more info! | ||
************************************************************* | ||
*/ | ||
|
||
module "globals" { | ||
source = "../../modules/globals" | ||
} | ||
|
||
module "s3_log_bucket" { | ||
source = "../../modules/s3_log_bucket" | ||
bucket_name = "${module.globals.namespace}-log-s3-${terraform.workspace}" | ||
} | ||
|
||
module "waf_acl" { | ||
source = "../../modules/waf_acl" | ||
cognito_user_pool_name = module.globals.app_environments[terraform.workspace].cognito_user_pool_name | ||
namespace = module.globals.namespace | ||
} |
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
File renamed without changes.
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,60 @@ | ||
/* | ||
******************* DO NOT EDIT THIS NOTICE ***************** | ||
This legal notice is added to every supported source code | ||
file at every commit. See the README for more info! | ||
************************************************************* | ||
*/ | ||
|
||
output "namespace" { | ||
description = "Organization token prefixed to resource names." | ||
value = "karma" | ||
} | ||
|
||
output "terraform_delegate_role_token" { | ||
description = "Combined with namespace to form terraform delegate role name." | ||
value = "terraform-delegate" | ||
} | ||
|
||
output "aws_accounts" { | ||
description = "Maps AWS account tokens to account ids." | ||
value = { | ||
dev = { | ||
id = "000000000000" | ||
} | ||
master = { | ||
id = "000000000001" | ||
} | ||
prod = { | ||
id = "000000000002" | ||
} | ||
test = { | ||
id = "000000000003" | ||
} | ||
} | ||
} | ||
|
||
output "app_environments" { | ||
description = "Maps environment tokens to AWS account tokens." | ||
value = { | ||
bali = { | ||
aws_account = "dev" | ||
cognito_user_pool_name = "api-user-v0-bali" | ||
} | ||
dev = { | ||
aws_account = "dev" | ||
cognito_user_pool_name = "api-user-v0-dev" | ||
} | ||
prod = { | ||
aws_account = "prod" | ||
cognito_user_pool_name = "api-user-v0-prod" | ||
} | ||
release = { | ||
aws_account = "test" | ||
cognito_user_pool_name = "api-user-v0-release" | ||
} | ||
seattle = { | ||
aws_account = "dev" | ||
cognito_user_pool_name = "api-user-v0-seattle" | ||
} | ||
} | ||
} |
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
File renamed without changes.
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
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
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
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
File renamed without changes.
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
Oops, something went wrong.