/terraform-aws-cd-codepipeline

Primary LanguageHCLApache License 2.0Apache-2.0

AWS CD CodePipeline Terraform module

Labyrinth Labs logo

We help companies build, run, deploy and scale software and infrastructure by embracing the right technologies and principles. Check out our website at https://lablabs.io/


Terraform validation pre-commit

Description

A terraform module to create AWS CodeBuild and CodePipeline resources.

Requirements

Name Version
terraform >= 1.0
aws >= 4.0

Modules

No modules.

Resources

Name Type
aws_codebuild_project.default resource
aws_codepipeline.default resource
aws_iam_policy.pipeline resource
aws_iam_role.pipeline resource
aws_iam_role_policy_attachment.pipeline resource
aws_s3_bucket.codepipeline_bucket resource
aws_caller_identity.current data source
aws_codecommit_repository.charts data source
aws_codecommit_repository.main data source
aws_codecommit_repository.scripts data source
aws_iam_policy_document.pipeline data source
aws_iam_policy_document.pipeline_assume data source
aws_region.current data source

Inputs

Name Description Type Default Required
codebuild_image_repository_arn n/a string n/a yes
codebuild_image_url n/a string n/a yes
codebuild_security_group_ids n/a list(string) n/a yes
codebuild_subnets n/a list(string) n/a yes
codebuild_var_chart_name n/a string n/a yes
codebuild_var_eks_cluster_id n/a string n/a yes
codebuild_var_environment n/a string n/a yes
codebuild_var_k8s_namespace n/a string n/a yes
codebuild_var_ssm_path_access_key n/a string n/a yes
codebuild_var_ssm_path_basicauth_pass n/a string n/a yes
codebuild_var_ssm_path_basicauth_user n/a string n/a yes
codebuild_var_ssm_path_secret_key n/a string n/a yes
codebuild_var_stack_name n/a string n/a yes
codebuild_vpc_id n/a string n/a yes
codecommit_charts_repo_name n/a string n/a yes
codecommit_main_repo_name n/a string n/a yes
codecommit_scripts_repo_name n/a string n/a yes
name n/a string n/a yes
codebuild_build_timeout n/a string "120" no
codebuild_compute_type n/a string "BUILD_GENERAL1_SMALL" no
codebuild_image_tag n/a string "latest" no
codebuild_source_version n/a string "refs/heads/master" no
codepipeline_soapui_run n/a bool false no
tags n/a map(string) {} no

Outputs

Name Description
pipeline_iam_role_arn n/a

Contributing and reporting issues

Feel free to create an issue in this repository if you have questions, suggestions or feature requests.

Validation, linters and pull-requests

We want to provide high quality code and modules. For this reason we are using several pre-commit hooks and GitHub Actions workflow. A pull-request to the master branch will trigger these validations and lints automatically. Please check your code before you will create pull-requests. See pre-commit documentation and GitHub Actions documentation for further details.

License

License

See LICENSE for full details.

Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.  See the NOTICE file
distributed with this work for additional information
regarding copyright ownership.  The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License.  You may obtain a copy of the License at

  https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied.  See the License for the
specific language governing permissions and limitations
under the License.