├── .gitignore ├── LICENSE ├── README.md ├── components ├── automation │ ├── .terraform-version │ ├── aws_data.tf │ ├── aws_provider.tf │ ├── iam-codepipeline.tf │ ├── iam-tf_deployer.tf │ ├── locals.tf │ ├── module-tf-codepipelines.tf │ ├── outputs.tf │ ├── s3_bucket.tf │ └── variables.tf └── example │ ├── .terraform-version │ ├── aws_data.tf │ ├── aws_provider.tf │ ├── locals.tf │ ├── module-example_test.tf │ ├── outputs.tf │ └── variables.tf ├── etc ├── env_eu-west-1_dev.tfvars ├── env_eu-west-1_nonprod.tfvars ├── eu-west-1.tfvars └── global.tfvars └── modules ├── example ├── aws_data.tf ├── locals.tf ├── outputs.tf └── variables.tf └── tf-codepipeline ├── aws_data.tf ├── cloudwatch_log_groups.tf ├── codebuild-planner.tf ├── codebuild-runner.tf ├── codepipeline.tf ├── iam-codebuild.tf ├── locals.tf ├── outputs.tf ├── templates └── buildspec.tpl └── variables.tf /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebolabs/codepipeline-tf/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebolabs/codepipeline-tf/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebolabs/codepipeline-tf/HEAD/README.md -------------------------------------------------------------------------------- /components/automation/.terraform-version: -------------------------------------------------------------------------------- 1 | 0.12.24 2 | -------------------------------------------------------------------------------- /components/automation/aws_data.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebolabs/codepipeline-tf/HEAD/components/automation/aws_data.tf -------------------------------------------------------------------------------- /components/automation/aws_provider.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebolabs/codepipeline-tf/HEAD/components/automation/aws_provider.tf -------------------------------------------------------------------------------- /components/automation/iam-codepipeline.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebolabs/codepipeline-tf/HEAD/components/automation/iam-codepipeline.tf -------------------------------------------------------------------------------- /components/automation/iam-tf_deployer.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebolabs/codepipeline-tf/HEAD/components/automation/iam-tf_deployer.tf -------------------------------------------------------------------------------- /components/automation/locals.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebolabs/codepipeline-tf/HEAD/components/automation/locals.tf -------------------------------------------------------------------------------- /components/automation/module-tf-codepipelines.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebolabs/codepipeline-tf/HEAD/components/automation/module-tf-codepipelines.tf -------------------------------------------------------------------------------- /components/automation/outputs.tf: -------------------------------------------------------------------------------- 1 | output "__AWS_ACCOUNT_LEVEL_IDENTIFIER__" { 2 | value = upper(local.aws_account_level_id) 3 | } 4 | -------------------------------------------------------------------------------- /components/automation/s3_bucket.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebolabs/codepipeline-tf/HEAD/components/automation/s3_bucket.tf -------------------------------------------------------------------------------- /components/automation/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebolabs/codepipeline-tf/HEAD/components/automation/variables.tf -------------------------------------------------------------------------------- /components/example/.terraform-version: -------------------------------------------------------------------------------- 1 | 0.12.24 2 | -------------------------------------------------------------------------------- /components/example/aws_data.tf: -------------------------------------------------------------------------------- 1 | data "aws_caller_identity" "current" {} 2 | -------------------------------------------------------------------------------- /components/example/aws_provider.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebolabs/codepipeline-tf/HEAD/components/example/aws_provider.tf -------------------------------------------------------------------------------- /components/example/locals.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebolabs/codepipeline-tf/HEAD/components/example/locals.tf -------------------------------------------------------------------------------- /components/example/module-example_test.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebolabs/codepipeline-tf/HEAD/components/example/module-example_test.tf -------------------------------------------------------------------------------- /components/example/outputs.tf: -------------------------------------------------------------------------------- 1 | output "__AWS_ACCOUNT_LEVEL_IDENTIFIER__" { 2 | value = upper(local.aws_account_level_id) 3 | } 4 | -------------------------------------------------------------------------------- /components/example/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebolabs/codepipeline-tf/HEAD/components/example/variables.tf -------------------------------------------------------------------------------- /etc/env_eu-west-1_dev.tfvars: -------------------------------------------------------------------------------- 1 | # 2 | # GENERAL 3 | # 4 | environment = "dev" 5 | -------------------------------------------------------------------------------- /etc/env_eu-west-1_nonprod.tfvars: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebolabs/codepipeline-tf/HEAD/etc/env_eu-west-1_nonprod.tfvars -------------------------------------------------------------------------------- /etc/eu-west-1.tfvars: -------------------------------------------------------------------------------- 1 | aws_region = "eu-west-1" 2 | -------------------------------------------------------------------------------- /etc/global.tfvars: -------------------------------------------------------------------------------- 1 | project = "lab" 2 | -------------------------------------------------------------------------------- /modules/example/aws_data.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebolabs/codepipeline-tf/HEAD/modules/example/aws_data.tf -------------------------------------------------------------------------------- /modules/example/locals.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebolabs/codepipeline-tf/HEAD/modules/example/locals.tf -------------------------------------------------------------------------------- /modules/example/outputs.tf: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /modules/example/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebolabs/codepipeline-tf/HEAD/modules/example/variables.tf -------------------------------------------------------------------------------- /modules/tf-codepipeline/aws_data.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebolabs/codepipeline-tf/HEAD/modules/tf-codepipeline/aws_data.tf -------------------------------------------------------------------------------- /modules/tf-codepipeline/cloudwatch_log_groups.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebolabs/codepipeline-tf/HEAD/modules/tf-codepipeline/cloudwatch_log_groups.tf -------------------------------------------------------------------------------- /modules/tf-codepipeline/codebuild-planner.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebolabs/codepipeline-tf/HEAD/modules/tf-codepipeline/codebuild-planner.tf -------------------------------------------------------------------------------- /modules/tf-codepipeline/codebuild-runner.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebolabs/codepipeline-tf/HEAD/modules/tf-codepipeline/codebuild-runner.tf -------------------------------------------------------------------------------- /modules/tf-codepipeline/codepipeline.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebolabs/codepipeline-tf/HEAD/modules/tf-codepipeline/codepipeline.tf -------------------------------------------------------------------------------- /modules/tf-codepipeline/iam-codebuild.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebolabs/codepipeline-tf/HEAD/modules/tf-codepipeline/iam-codebuild.tf -------------------------------------------------------------------------------- /modules/tf-codepipeline/locals.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebolabs/codepipeline-tf/HEAD/modules/tf-codepipeline/locals.tf -------------------------------------------------------------------------------- /modules/tf-codepipeline/outputs.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebolabs/codepipeline-tf/HEAD/modules/tf-codepipeline/outputs.tf -------------------------------------------------------------------------------- /modules/tf-codepipeline/templates/buildspec.tpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebolabs/codepipeline-tf/HEAD/modules/tf-codepipeline/templates/buildspec.tpl -------------------------------------------------------------------------------- /modules/tf-codepipeline/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sebolabs/codepipeline-tf/HEAD/modules/tf-codepipeline/variables.tf --------------------------------------------------------------------------------