├── .gitignore ├── CHANGELOG.md ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── Dojofile ├── LICENSE ├── README.md ├── cicd ├── buildspec_checkov.yml ├── buildspec_test.yml ├── buildspec_tf_apply.yml ├── buildspec_tf_linters.yml ├── buildspec_tf_plan.yml └── terraform-pipeline │ ├── backend.tf │ ├── codebuild.tf │ ├── data.tf │ ├── kms.tf │ ├── locals.tf │ ├── pipeline.tf │ ├── pipeline_trigger.tf │ ├── provider.tf │ ├── tf_iam_roles.tf │ └── variables.tf ├── docs └── img │ ├── edit-kms-production-tf1.png │ ├── edit-kms-production-tf2.png │ ├── edit-kms-production1.png │ ├── edit-kms-production2.png │ ├── edit-kms-production3.png │ ├── edit-kms-testing1.png │ ├── edit-kms-testing2.png │ ├── edit-kms-testing3.png │ ├── pipeline.png │ ├── s3-buckets-custom.png │ ├── s3-buckets-default.png │ ├── terraform-dojo-codepipeline.drawio │ ├── terraform-dojo-codepipeline.png │ └── tf-plan-no-changes.png ├── tasks ├── terraform ├── backend.tf ├── data.tf ├── main.py ├── main.tf ├── production.tfvars ├── provider.tf ├── testing.tfvars └── variables.tf └── terraform_backend ├── backend.tf ├── data.tf ├── main.tf ├── outputs.tf ├── provider.tf └── variables.tf /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/devsecops-terraform-dojo-codepipeline/HEAD/.gitignore -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/devsecops-terraform-dojo-codepipeline/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/devsecops-terraform-dojo-codepipeline/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/devsecops-terraform-dojo-codepipeline/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /Dojofile: -------------------------------------------------------------------------------- 1 | DOJO_DOCKER_IMAGE="kudulab/terraform-dojo:1.6.0" 2 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/devsecops-terraform-dojo-codepipeline/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/devsecops-terraform-dojo-codepipeline/HEAD/README.md -------------------------------------------------------------------------------- /cicd/buildspec_checkov.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/devsecops-terraform-dojo-codepipeline/HEAD/cicd/buildspec_checkov.yml -------------------------------------------------------------------------------- /cicd/buildspec_test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/devsecops-terraform-dojo-codepipeline/HEAD/cicd/buildspec_test.yml -------------------------------------------------------------------------------- /cicd/buildspec_tf_apply.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/devsecops-terraform-dojo-codepipeline/HEAD/cicd/buildspec_tf_apply.yml -------------------------------------------------------------------------------- /cicd/buildspec_tf_linters.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/devsecops-terraform-dojo-codepipeline/HEAD/cicd/buildspec_tf_linters.yml -------------------------------------------------------------------------------- /cicd/buildspec_tf_plan.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/devsecops-terraform-dojo-codepipeline/HEAD/cicd/buildspec_tf_plan.yml -------------------------------------------------------------------------------- /cicd/terraform-pipeline/backend.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/devsecops-terraform-dojo-codepipeline/HEAD/cicd/terraform-pipeline/backend.tf -------------------------------------------------------------------------------- /cicd/terraform-pipeline/codebuild.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/devsecops-terraform-dojo-codepipeline/HEAD/cicd/terraform-pipeline/codebuild.tf -------------------------------------------------------------------------------- /cicd/terraform-pipeline/data.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/devsecops-terraform-dojo-codepipeline/HEAD/cicd/terraform-pipeline/data.tf -------------------------------------------------------------------------------- /cicd/terraform-pipeline/kms.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/devsecops-terraform-dojo-codepipeline/HEAD/cicd/terraform-pipeline/kms.tf -------------------------------------------------------------------------------- /cicd/terraform-pipeline/locals.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/devsecops-terraform-dojo-codepipeline/HEAD/cicd/terraform-pipeline/locals.tf -------------------------------------------------------------------------------- /cicd/terraform-pipeline/pipeline.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/devsecops-terraform-dojo-codepipeline/HEAD/cicd/terraform-pipeline/pipeline.tf -------------------------------------------------------------------------------- /cicd/terraform-pipeline/pipeline_trigger.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/devsecops-terraform-dojo-codepipeline/HEAD/cicd/terraform-pipeline/pipeline_trigger.tf -------------------------------------------------------------------------------- /cicd/terraform-pipeline/provider.tf: -------------------------------------------------------------------------------- 1 | provider "aws" { 2 | region = "eu-west-1" 3 | } 4 | -------------------------------------------------------------------------------- /cicd/terraform-pipeline/tf_iam_roles.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/devsecops-terraform-dojo-codepipeline/HEAD/cicd/terraform-pipeline/tf_iam_roles.tf -------------------------------------------------------------------------------- /cicd/terraform-pipeline/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/devsecops-terraform-dojo-codepipeline/HEAD/cicd/terraform-pipeline/variables.tf -------------------------------------------------------------------------------- /docs/img/edit-kms-production-tf1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/devsecops-terraform-dojo-codepipeline/HEAD/docs/img/edit-kms-production-tf1.png -------------------------------------------------------------------------------- /docs/img/edit-kms-production-tf2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/devsecops-terraform-dojo-codepipeline/HEAD/docs/img/edit-kms-production-tf2.png -------------------------------------------------------------------------------- /docs/img/edit-kms-production1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/devsecops-terraform-dojo-codepipeline/HEAD/docs/img/edit-kms-production1.png -------------------------------------------------------------------------------- /docs/img/edit-kms-production2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/devsecops-terraform-dojo-codepipeline/HEAD/docs/img/edit-kms-production2.png -------------------------------------------------------------------------------- /docs/img/edit-kms-production3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/devsecops-terraform-dojo-codepipeline/HEAD/docs/img/edit-kms-production3.png -------------------------------------------------------------------------------- /docs/img/edit-kms-testing1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/devsecops-terraform-dojo-codepipeline/HEAD/docs/img/edit-kms-testing1.png -------------------------------------------------------------------------------- /docs/img/edit-kms-testing2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/devsecops-terraform-dojo-codepipeline/HEAD/docs/img/edit-kms-testing2.png -------------------------------------------------------------------------------- /docs/img/edit-kms-testing3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/devsecops-terraform-dojo-codepipeline/HEAD/docs/img/edit-kms-testing3.png -------------------------------------------------------------------------------- /docs/img/pipeline.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/devsecops-terraform-dojo-codepipeline/HEAD/docs/img/pipeline.png -------------------------------------------------------------------------------- /docs/img/s3-buckets-custom.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/devsecops-terraform-dojo-codepipeline/HEAD/docs/img/s3-buckets-custom.png -------------------------------------------------------------------------------- /docs/img/s3-buckets-default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/devsecops-terraform-dojo-codepipeline/HEAD/docs/img/s3-buckets-default.png -------------------------------------------------------------------------------- /docs/img/terraform-dojo-codepipeline.drawio: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/devsecops-terraform-dojo-codepipeline/HEAD/docs/img/terraform-dojo-codepipeline.drawio -------------------------------------------------------------------------------- /docs/img/terraform-dojo-codepipeline.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/devsecops-terraform-dojo-codepipeline/HEAD/docs/img/terraform-dojo-codepipeline.png -------------------------------------------------------------------------------- /docs/img/tf-plan-no-changes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/devsecops-terraform-dojo-codepipeline/HEAD/docs/img/tf-plan-no-changes.png -------------------------------------------------------------------------------- /tasks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/devsecops-terraform-dojo-codepipeline/HEAD/tasks -------------------------------------------------------------------------------- /terraform/backend.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/devsecops-terraform-dojo-codepipeline/HEAD/terraform/backend.tf -------------------------------------------------------------------------------- /terraform/data.tf: -------------------------------------------------------------------------------- 1 | data "aws_caller_identity" "current" {} 2 | -------------------------------------------------------------------------------- /terraform/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/devsecops-terraform-dojo-codepipeline/HEAD/terraform/main.py -------------------------------------------------------------------------------- /terraform/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/devsecops-terraform-dojo-codepipeline/HEAD/terraform/main.tf -------------------------------------------------------------------------------- /terraform/production.tfvars: -------------------------------------------------------------------------------- 1 | my_param1 = "abc" 2 | -------------------------------------------------------------------------------- /terraform/provider.tf: -------------------------------------------------------------------------------- 1 | provider "aws" { 2 | region = "eu-west-1" 3 | } 4 | -------------------------------------------------------------------------------- /terraform/testing.tfvars: -------------------------------------------------------------------------------- 1 | my_param1 = "123" 2 | -------------------------------------------------------------------------------- /terraform/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/devsecops-terraform-dojo-codepipeline/HEAD/terraform/variables.tf -------------------------------------------------------------------------------- /terraform_backend/backend.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/devsecops-terraform-dojo-codepipeline/HEAD/terraform_backend/backend.tf -------------------------------------------------------------------------------- /terraform_backend/data.tf: -------------------------------------------------------------------------------- 1 | data "aws_caller_identity" "current" {} 2 | -------------------------------------------------------------------------------- /terraform_backend/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/devsecops-terraform-dojo-codepipeline/HEAD/terraform_backend/main.tf -------------------------------------------------------------------------------- /terraform_backend/outputs.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/devsecops-terraform-dojo-codepipeline/HEAD/terraform_backend/outputs.tf -------------------------------------------------------------------------------- /terraform_backend/provider.tf: -------------------------------------------------------------------------------- 1 | provider "aws" { 2 | region = "eu-west-1" 3 | } 4 | -------------------------------------------------------------------------------- /terraform_backend/variables.tf: -------------------------------------------------------------------------------- 1 | variable "project_name" { 2 | type = string 3 | } 4 | --------------------------------------------------------------------------------