-
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
2f8d123
commit 2a5a20b
Showing
56 changed files
with
144 additions
and
586 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
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
11 changes: 0 additions & 11 deletions
11
...deployment_bucket/s3_serverless_holder.tf → ...oyment_bucket/ini_s3_serverless_holder.tf
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,5 +11,3 @@ terraform { | |
provider "aws" { | ||
region = "eu-west-1" | ||
} | ||
|
||
# TODO: Setup remote state |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
locals { | ||
tags = { | ||
environment = var.env | ||
project = "stablecaps" | ||
owner = "DevOps" | ||
created_by = "terraform" | ||
} | ||
|
||
bucket_name = "serverless-deployment-holder-${var.env}-${var.random_string}" | ||
} |
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
13 changes: 2 additions & 11 deletions
13
terraform_v1/02_DEV/setup_dev.tf → terraform_v1/02_DEV/ini_setup_dev.tf
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,3 @@ provider "aws" { | |
region = "eu-west-1" | ||
} | ||
|
||
# TODO: Setup remote state |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
locals { | ||
tags = { | ||
environment = var.env | ||
project = "stablecaps" | ||
owner = "DevOps" | ||
created_by = "terraform" | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
module "exif_buckets" { | ||
source = "../modules/exif_ripper_buckets" | ||
|
||
env = var.env | ||
random_string = var.random_string | ||
bucket_source = "stablecaps-source" | ||
bucket_dest = "stablecaps-destination" | ||
|
||
tags = local.tags | ||
|
||
ssm_root_prefix = var.ssm_root_prefix | ||
|
||
} | ||
|
||
module "lambda_role_and_policies" { | ||
source = "../modules/lambda_iam_role_and_policies" | ||
|
||
env = var.env | ||
bucket_source = module.exif_buckets.bucket_source_name | ||
bucket_dest = module.exif_buckets.bucket_dest_name | ||
|
||
tags = local.tags | ||
|
||
ssm_root_prefix = var.ssm_root_prefix | ||
} |
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 |
---|---|---|
|
@@ -12,4 +12,3 @@ provider "aws" { | |
region = "eu-west-1" | ||
} | ||
|
||
# TODO: Setup remote state |
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
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,8 @@ | ||
locals { | ||
tags = { | ||
environment = var.env | ||
project = "stablecaps" | ||
owner = "DevOps" | ||
created_by = "terraform" | ||
} | ||
} |
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,16 @@ | ||
output "iam_role_arn" { | ||
description = "Lambda IAM role arn used for serverless function" | ||
value = module.lambda_role_and_policies.iam_role_arn | ||
} | ||
|
||
output "bucket_source_name" { | ||
description = "exif-ripper s3 source bucket name" | ||
value = module.exif_buckets.bucket_source_name | ||
} | ||
|
||
output "bucket_dest_name" { | ||
description = "exif-ripper s3 destination bucket name" | ||
value = module.exif_buckets.bucket_dest_name | ||
} | ||
|
||
# NOTE: users module disabled for purposes of this example |
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.
File renamed without changes.
4 changes: 0 additions & 4 deletions
4
terraform_v1/modules/lambda_iam_role_and_policies/gen_iam_role.tf
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
locals { | ||
lambda_role_name = "exif-ripper-${var.env}-eu-west-1-lambdaRole" | ||
} |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
region = "eu-west-1" | ||
bucket = "tf-backend-dev-genomics-bhuna" | ||
dynamodb_table = "tf-backend-dev-genomics-bhuna" | ||
bucket = "tf-backend-dev-stablecaps-bhuna" | ||
dynamodb_table = "tf-backend-dev-stablecaps-bhuna" |
Oops, something went wrong.