GithubHelp home page GithubHelp logo

cloudposse / terraform-aws-codebuild Goto Github PK

View Code? Open in Web Editor NEW
111.0 23.0 131.0 1.21 MB

Terraform Module to easily leverage AWS CodeBuild for Continuous Integration

Home Page: https://cloudposse.com/accelerate

License: Apache License 2.0

HCL 85.80% Makefile 5.48% Go 8.72%
terraform codebuild terraform-modules continuous-integration cicd aws hcl2

terraform-aws-codebuild's Introduction

Project Banner

Latest ReleaseLast UpdatedSlack Community

Terraform module to create AWS CodeBuild project for AWS CodePipeline.

Tip

๐Ÿ‘ฝ Use Atmos with Terraform

Cloud Posse uses atmos to easily orchestrate multiple environments using Terraform.
Works with Github Actions, Atlantis, or Spacelift.

Watch demo of using Atmos with Terraform
Example of running atmos to manage infrastructure from our Quick Start tutorial.

Usage

Include this module in your existing terraform code:

module "build" {
  source = "cloudposse/codebuild/aws"
  # Cloud Posse recommends pinning every module to a specific version
  # version     = "x.x.x"
  namespace           = "eg"
  stage               = "staging"
  name                = "app"

  # https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-available.html
  build_image         = "aws/codebuild/standard:2.0"
  build_compute_type  = "BUILD_GENERAL1_SMALL"
  build_timeout       = 60

  # These attributes are optional, used as ENV variables when building Docker images and pushing them to ECR
  # For more info:
  # http://docs.aws.amazon.com/codebuild/latest/userguide/sample-docker.html
  # https://www.terraform.io/docs/providers/aws/r/codebuild_project.html

  privileged_mode     = true
  aws_region          = "us-east-1"
  aws_account_id      = "xxxxxxxxxx"
  image_repo_name     = "ecr-repo-name"
  image_tag           = "latest"

  # Optional extra environment variables
  environment_variables = [
    {
      name  = "JENKINS_URL"
      value = "https://jenkins.example.com"
      type  = "PLAINTEXT"
    },
    {
      name  = "COMPANY_NAME"
      value = "Amazon"
      type  = "PLAINTEXT"
    },
    {
      name = "TIME_ZONE"
      value = "Pacific/Auckland"
      type  = "PLAINTEXT"
    }
  ]
}

Important

In Cloud Posse's examples, we avoid pinning modules to specific versions to prevent discrepancies between the documentation and the latest released versions. However, for your own projects, we strongly advise pinning each module to the exact version you're using. This practice ensures the stability of your infrastructure. Additionally, we recommend implementing a systematic approach for updating versions to avoid unexpected changes.

Makefile Targets

Available targets:

  help                                Help screen
  help/all                            Display help for all targets
  help/short                          This help short screen
  lint                                Lint terraform code

Requirements

Name Version
terraform >= 1.3
aws >= 5.0
random >= 2.1

Providers

Name Version
aws >= 5.0
random >= 2.1

Modules

Name Source Version
this cloudposse/label/null 0.25.0

Resources

Name Type
aws_codebuild_project.default resource
aws_codebuild_source_credential.authorization resource
aws_iam_policy.default resource
aws_iam_policy.default_cache_bucket resource
aws_iam_role.default resource
aws_iam_role_policy_attachment.default resource
aws_iam_role_policy_attachment.default_cache_bucket resource
aws_s3_bucket.cache_bucket resource
aws_s3_bucket_acl.default resource
aws_s3_bucket_lifecycle_configuration.default resource
aws_s3_bucket_logging.default resource
aws_s3_bucket_ownership_controls.s3_bucket_acl_ownership resource
aws_s3_bucket_public_access_block.default resource
aws_s3_bucket_server_side_encryption_configuration.default resource
aws_s3_bucket_versioning.default resource
random_string.bucket_prefix resource
aws_caller_identity.default data source
aws_iam_policy_document.combined_permissions data source
aws_iam_policy_document.permissions data source
aws_iam_policy_document.permissions_cache_bucket data source
aws_iam_policy_document.role data source
aws_iam_policy_document.vpc_permissions data source
aws_region.default data source
aws_s3_bucket.secondary_artifact data source

Inputs

Name Description Type Default Required
access_log_bucket_name Name of the S3 bucket where s3 access log will be sent to string "" no
additional_tag_map Additional key-value pairs to add to each map in tags_as_list_of_maps. Not added to tags or id.
This is for some rare cases where resources want additional configuration of tags
and therefore take a list of maps with tag key, value, and additional configuration.
map(string) {} no
artifact_location Location of artifact. Applies only for artifact of type S3 string "" no
artifact_type The build output artifact's type. Valid values for this parameter are: CODEPIPELINE, NO_ARTIFACTS or S3 string "CODEPIPELINE" no
attributes ID element. Additional attributes (e.g. workers or cluster) to add to id,
in the order they appear in the list. New attributes are appended to the
end of the list. The elements of the list are joined by the delimiter
and treated as a single ID element.
list(string) [] no
aws_account_id (Optional) AWS Account ID. Used as CodeBuild ENV variable when building Docker images. For more info: http://docs.aws.amazon.com/codebuild/latest/userguide/sample-docker.html string "" no
aws_region (Optional) AWS Region, e.g. us-east-1. Used as CodeBuild ENV variable when building Docker images. For more info: http://docs.aws.amazon.com/codebuild/latest/userguide/sample-docker.html string "" no
badge_enabled Generates a publicly-accessible URL for the projects build badge. Available as badge_url attribute when enabled bool false no
build_compute_type Instance type of the build instance string "BUILD_GENERAL1_SMALL" no
build_image Docker image for build environment, e.g. 'aws/codebuild/standard:2.0' or 'aws/codebuild/eb-nodejs-6.10.0-amazonlinux-64:4.0.0'. For more info: http://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref.html string "aws/codebuild/standard:2.0" no
build_image_pull_credentials_type Type of credentials AWS CodeBuild uses to pull images in your build.Valid values: CODEBUILD, SERVICE_ROLE. When you use a cross-account or private registry image, you must use SERVICE_ROLE credentials. string "CODEBUILD" no
build_timeout How long in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait until timing out any related build that does not get marked as completed number 60 no
build_type The type of build environment, e.g. 'LINUX_CONTAINER' or 'WINDOWS_CONTAINER' string "LINUX_CONTAINER" no
buildspec Optional buildspec declaration to use for building the project string "" no
cache_bucket_suffix_enabled The cache bucket generates a random 13 character string to generate a unique bucket name. If set to false it uses terraform-null-label's id value. It only works when cache_type is 'S3 bool true no
cache_expiration_days How many days should the build cache be kept. It only works when cache_type is 'S3' number 7 no
cache_type The type of storage that will be used for the AWS CodeBuild project cache. Valid values: NO_CACHE, LOCAL, and S3. Defaults to NO_CACHE. If cache_type is S3, it will create an S3 bucket for storing codebuild cache inside string "NO_CACHE" no
concurrent_build_limit Specify a maximum number of concurrent builds for the project. The value specified must be greater than 0 and less than the account concurrent running builds limit. number null no
context Single object for setting entire context at once.
See description of individual variables for details.
Leave string and numeric variables as null to use default value.
Individual variable settings (non-null) override settings in context object,
except for attributes, tags, and additional_tag_map, which are merged.
any
{
"additional_tag_map": {},
"attributes": [],
"delimiter": null,
"descriptor_formats": {},
"enabled": true,
"environment": null,
"id_length_limit": null,
"label_key_case": null,
"label_order": [],
"label_value_case": null,
"labels_as_tags": [
"unset"
],
"name": null,
"namespace": null,
"regex_replace_chars": null,
"stage": null,
"tags": {},
"tenant": null
}
no
custom_policy JSON encoded IAM policy to add to the IAM service account permissions. list(string) [] no
default_permissions_enabled When 'true' default base IAM permissions to get up and running with CodeBuild are attached. Those who want a least privileged policy can instead set to false and use the custom_policy variable. bool true no
delimiter Delimiter to be used between ID elements.
Defaults to - (hyphen). Set to "" to use no delimiter at all.
string null no
description Short description of the CodeBuild project string "Managed by Terraform" no
descriptor_formats Describe additional descriptors to be output in the descriptors output map.
Map of maps. Keys are names of descriptors. Values are maps of the form
{<br> format = string<br> labels = list(string)<br>}
(Type is any so the map values can later be enhanced to provide additional options.)
format is a Terraform format string to be passed to the format() function.
labels is a list of labels, in order, to pass to format() function.
Label values will be normalized before being passed to format() so they will be
identical to how they appear in id.
Default is {} (descriptors output will be empty).
any {} no
enabled Set to false to prevent the module from creating any resources bool null no
encryption_enabled When set to 'true' the resource will have AES256 encryption enabled by default bool false no
encryption_key AWS Key Management Service (AWS KMS) customer master key (CMK) to be used for encrypting the build project's build output artifacts. string null no
environment ID element. Usually used for region e.g. 'uw2', 'us-west-2', OR role 'prod', 'staging', 'dev', 'UAT' string null no
environment_variables A list of maps, that contain the keys 'name', 'value', and 'type' to be used as additional environment variables for the build. Valid types are 'PLAINTEXT', 'PARAMETER_STORE', or 'SECRETS_MANAGER'
list(object(
{
name = string
value = string
type = string
}
))
[
{
"name": "NO_ADDITIONAL_BUILD_VARS",
"type": "PLAINTEXT",
"value": "TRUE"
}
]
no
extra_permissions List of action strings which will be added to IAM service account permissions. Only used if default_permissions_enabled is set to true. list(string) [] no
fetch_git_submodules If set to true, fetches Git submodules for the AWS CodeBuild build project. bool false no
file_system_locations A set of file system locations to to mount inside the build. File system locations are documented below. any {} no
git_clone_depth Truncate git history to this many commits. number null no
github_token (Optional) GitHub auth token environment variable (GITHUB_TOKEN) string "" no
github_token_type Storage type of GITHUB_TOKEN environment variable (PARAMETER_STORE, PLAINTEXT, SECRETS_MANAGER) string "PARAMETER_STORE" no
iam_permissions_boundary ARN of the policy that is used to set the permissions boundary for the role. string null no
iam_policy_path Path to the policy. string "/service-role/" no
iam_role_path Path to the role. string null no
id_length_limit Limit id to this many characters (minimum 6).
Set to 0 for unlimited length.
Set to null for keep the existing setting, which defaults to 0.
Does not affect id_full.
number null no
image_repo_name (Optional) ECR repository name to store the Docker image built by this module. Used as CodeBuild ENV variable when building Docker images. For more info: http://docs.aws.amazon.com/codebuild/latest/userguide/sample-docker.html string "UNSET" no
image_tag (Optional) Docker image tag in the ECR repository, e.g. 'latest'. Used as CodeBuild ENV variable when building Docker images. For more info: http://docs.aws.amazon.com/codebuild/latest/userguide/sample-docker.html string "latest" no
label_key_case Controls the letter case of the tags keys (label names) for tags generated by this module.
Does not affect keys of tags passed in via the tags input.
Possible values: lower, title, upper.
Default value: title.
string null no
label_order The order in which the labels (ID elements) appear in the id.
Defaults to ["namespace", "environment", "stage", "name", "attributes"].
You can omit any of the 6 labels ("tenant" is the 6th), but at least one must be present.
list(string) null no
label_value_case Controls the letter case of ID elements (labels) as included in id,
set as tag values, and output by this module individually.
Does not affect values of tags passed in via the tags input.
Possible values: lower, title, upper and none (no transformation).
Set this to title and set delimiter to "" to yield Pascal Case IDs.
Default value: lower.
string null no
labels_as_tags Set of labels (ID elements) to include as tags in the tags output.
Default is to include all labels.
Tags with empty values will not be included in the tags output.
Set to [] to suppress all generated tags.
Notes:
The value of the name tag, if included, will be the id, not the name.
Unlike other null-label inputs, the initial setting of labels_as_tags cannot be
changed in later chained modules. Attempts to change it will be silently ignored.
set(string)
[
"default"
]
no
local_cache_modes Specifies settings that AWS CodeBuild uses to store and reuse build dependencies. Valid values: LOCAL_SOURCE_CACHE, LOCAL_DOCKER_LAYER_CACHE, and LOCAL_CUSTOM_CACHE list(string) [] no
logs_config Configuration for the builds to store log data to CloudWatch or S3. any {} no
name ID element. Usually the component or solution name, e.g. 'app' or 'jenkins'.
This is the only ID element not also included as a tag.
The "name" tag is set to the full id string. There is no tag with the value of the name input.
string null no
namespace ID element. Usually an abbreviation of your organization name, e.g. 'eg' or 'cp', to help ensure generated IDs are globally unique string null no
private_repository Set to true to login into private repository with credentials supplied in source_credential variable. bool false no
privileged_mode (Optional) If set to true, enables running the Docker daemon inside a Docker container on the CodeBuild instance. Used when building Docker images bool false no
regex_replace_chars Terraform regular expression (regex) string.
Characters matching the regex will be removed from the ID elements.
If not set, "/[^a-zA-Z0-9-]/" is used to remove all characters other than hyphens, letters and digits.
string null no
report_build_status Set to true to report the status of a build's start and finish to your source provider. This option is only valid when the source_type is BITBUCKET or GITHUB bool false no
s3_cache_bucket_name Use an existing s3 bucket name for cache. Relevant if cache_type is set to S3. string null no
secondary_artifact_encryption_enabled Set to true to enable encryption on the secondary artifact bucket bool false no
secondary_artifact_identifier Secondary artifact identifier. Must match the identifier in the build spec string null no
secondary_artifact_location Location of secondary artifact. Must be an S3 reference string null no
secondary_sources (Optional) secondary source for the codebuild project in addition to the primary location
list(object(
{
git_clone_depth = number
location = string
source_identifier = string
type = string
fetch_submodules = bool
insecure_ssl = bool
report_build_status = bool
}))
[] no
source_credential_auth_type The type of authentication used to connect to a GitHub, GitHub Enterprise, or Bitbucket repository. string "PERSONAL_ACCESS_TOKEN" no
source_credential_server_type The source provider used for this project. string "GITHUB" no
source_credential_token For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket, this is the app password. string "" no
source_credential_user_name The Bitbucket username when the authType is BASIC_AUTH. This parameter is not valid for other types of source providers or connections. string "" no
source_location The location of the source code from git or s3 string "" no
source_type The type of repository that contains the source code to be built. Valid values for this parameter are: CODECOMMIT, CODEPIPELINE, GITHUB, GITHUB_ENTERPRISE, BITBUCKET or S3 string "CODEPIPELINE" no
source_version A version of the build input to be built for this project. If not specified, the latest version is used. string "" no
stage ID element. Usually used to indicate role, e.g. 'prod', 'staging', 'source', 'build', 'test', 'deploy', 'release' string null no
tags Additional tags (e.g. {'BusinessUnit': 'XYZ'}).
Neither the tag keys nor the tag values will be modified by this module.
map(string) {} no
tenant ID element _(Rarely used, not included by default)_. A customer identifier, indicating who this instance of a resource is for string null no
versioning_enabled A state of versioning. Versioning is a means of keeping multiple variants of an object in the same bucket bool true no
vpc_config Configuration for the builds to run inside a VPC. any {} no

Outputs

Name Description
badge_url The URL of the build badge when badge_enabled is enabled
cache_bucket_arn Cache S3 bucket ARN
cache_bucket_name Cache S3 bucket name
project_arn Project ARN
project_id Project ID
project_name Project name
role_arn IAM Role ARN
role_id IAM Role ID

Related Projects

Check out these related projects.

Tip

Use Terraform Reference Architectures for AWS

Use Cloud Posse's ready-to-go terraform architecture blueprints for AWS to get up and running quickly.

โœ… We build it together with your team.
โœ… Your team owns everything.
โœ… 100% Open Source and backed by fanatical support.

Request Quote

๐Ÿ“š Learn More

Cloud Posse is the leading DevOps Accelerator for funded startups and enterprises.

Your team can operate like a pro today.

Ensure that your team succeeds by using Cloud Posse's proven process and turnkey blueprints. Plus, we stick around until you succeed.

Day-0: Your Foundation for Success

  • Reference Architecture. You'll get everything you need from the ground up built using 100% infrastructure as code.
  • Deployment Strategy. Adopt a proven deployment strategy with GitHub Actions, enabling automated, repeatable, and reliable software releases.
  • Site Reliability Engineering. Gain total visibility into your applications and services with Datadog, ensuring high availability and performance.
  • Security Baseline. Establish a secure environment from the start, with built-in governance, accountability, and comprehensive audit logs, safeguarding your operations.
  • GitOps. Empower your team to manage infrastructure changes confidently and efficiently through Pull Requests, leveraging the full power of GitHub Actions.

Request Quote

Day-2: Your Operational Mastery

  • Training. Equip your team with the knowledge and skills to confidently manage the infrastructure, ensuring long-term success and self-sufficiency.
  • Support. Benefit from a seamless communication over Slack with our experts, ensuring you have the support you need, whenever you need it.
  • Troubleshooting. Access expert assistance to quickly resolve any operational challenges, minimizing downtime and maintaining business continuity.
  • Code Reviews. Enhance your teamโ€™s code quality with our expert feedback, fostering continuous improvement and collaboration.
  • Bug Fixes. Rely on our team to troubleshoot and resolve any issues, ensuring your systems run smoothly.
  • Migration Assistance. Accelerate your migration process with our dedicated support, minimizing disruption and speeding up time-to-value.
  • Customer Workshops. Engage with our team in weekly workshops, gaining insights and strategies to continuously improve and innovate.

Request Quote

โœจ Contributing

This project is under active development, and we encourage contributions from our community.

Many thanks to our outstanding contributors:

For ๐Ÿ› bug reports & feature requests, please use the issue tracker.

In general, PRs are welcome. We follow the typical "fork-and-pull" Git workflow.

  1. Review our Code of Conduct and Contributor Guidelines.
  2. Fork the repo on GitHub
  3. Clone the project to your own machine
  4. Commit changes to your own branch
  5. Push your work back up to your fork
  6. Submit a Pull Request so that we can review your changes

NOTE: Be sure to merge the latest changes from "upstream" before making a pull request!

๐ŸŒŽ Slack Community

Join our Open Source Community on Slack. It's FREE for everyone! Our "SweetOps" community is where you get to talk with others who share a similar vision for how to rollout and manage infrastructure. This is the best place to talk shop, ask questions, solicit feedback, and work together as a community to build totally sweet infrastructure.

๐Ÿ“ฐ Newsletter

Sign up for our newsletter and join 3,000+ DevOps engineers, CTOs, and founders who get insider access to the latest DevOps trends, so you can always stay in the know. Dropped straight into your Inbox every week โ€” and usually a 5-minute read.

๐Ÿ“† Office Hours

Join us every Wednesday via Zoom for your weekly dose of insider DevOps trends, AWS news and Terraform insights, all sourced from our SweetOps community, plus a live Q&A that you canโ€™t find anywhere else. It's FREE for everyone!

License

License

Preamble to the Apache License, Version 2.0

Complete license is available in the LICENSE file.

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.

Trademarks

All other trademarks referenced herein are the property of their respective owners.


Copyright ยฉ 2017-2024 Cloud Posse, LLC

README footer

Beacon

terraform-aws-codebuild's People

Contributors

actions-user avatar aknysh avatar bsadvanon avatar bt-macole avatar cloudpossebot avatar drselump14 avatar dylanbannon avatar gausnes avatar goruha avatar gowiem avatar gui-don avatar jamie-bitflight avatar jayzalowitz avatar jhosteny avatar joe-niland avatar k911 avatar lukgerman avatar max-lobur avatar maximmi avatar nitrocode avatar osterman avatar renovate[bot] avatar robinbowes avatar rrosalia avatar sarkis avatar solairerove avatar sthomas1618 avatar stretch96 avatar tampakrap avatar vadim-hleif avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

terraform-aws-codebuild's Issues

Support for Terraform 0.12

What is this about

Looks like terraform-aws-codebuild:0.16.0 does not support Terraform 0.12

Expected behaviour

Run terraform-aws-codebuild with Terraform 0.12

Detailed errors:

Error: Missing resource instance key

  on .terraform/modules/build/main.tf line 144, in data "aws_iam_policy_document" "permissions_cache_bucket":
 144:       "${aws_s3_bucket.cache_bucket.arn}",

Because aws_s3_bucket.cache_bucket has "count" set, its attributes must be
accessed on specific instances.

For example, to correlate with indices of a referring resource, use:
    aws_s3_bucket.cache_bucket[count.index]

Or similar for lines:

  • 101
  • 144
  • 145
  • 152
  • 153
  • 159
  • 165

Those are relatively easy to fix, however when those are fixed, other ones pop up.

Error: Unsupported argument

  on .terraform/modules/build/main.tf line 174, in resource "aws_codebuild_project" "default":
 174:   cache = ["${local.cache}"]

An argument named "cache" is not expected here. Did you mean to define a block
of type "cache"?


Error: Unsupported argument

  on .terraform/modules/build/main.tf line 182, in resource "aws_codebuild_project" "default":
 182:     environment_variable = [{

An argument named "environment_variable" is not expected here. Did you mean to
define a block of type "environment_variable"?

Add file_system_locations to CodeBuild Project to allow the mounting of EFS to the build project

Have a question? Please checkout our Slack Community or visit our Slack Archive.

Slack Community

Describe the Feature

Add file_system_locations to CodeBuild Project to allow the mounting of EFS to the build project. Example

add to main.tf

  dynamic "file_system_locations" {
    for_each = length(var.file_system_locations) > 0 ? [""] : []
    content {
      identifier  = lookup(var.file_system_locations, "identifier", null)
      location    = lookup(var.file_system_locations, "location", null)
      mount_point = lookup(var.file_system_locations, "mount_point", null)
    }
  }

add to variables.tf

variable "file_system_locations" {
  type        = any
  default     = {}
  description = "A set of file system locations to to mount inside the build"
}

Expected Behavior

EFS will be mounted to the CodeBuild Project

Use Case

This will allow build projects access to an EFS file system.

Describe Ideal Solution

Add file_system_locations to CodeBuild Project to allow the mounting of EFS to the build project. Example

add to main.tf

  dynamic "file_system_locations" {
    for_each = length(var.file_system_locations) > 0 ? [""] : []
    content {
      identifier  = lookup(var.file_system_locations, "identifier", null)
      location    = lookup(var.file_system_locations, "location", null)
      mount_point = lookup(var.file_system_locations, "mount_point", null)
    }
  }

add to variables.tf

variable "file_system_locations" {
  type        = any
  default     = {}
  description = "A set of file system locations to to mount inside the build"
}

Additional Context

Add any other context or screenshots about the feature request here.
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/codebuild_project#file_system_locations

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

terraform
examples/bitbucket/build.tf
examples/bitbucket/main.tf
examples/bitbucket/versions.tf
  • aws >= 5.0
  • hashicorp/terraform >= 1.3
examples/complete/main.tf
examples/complete/versions.tf
  • aws >= 5.0
  • random >= 2.1
  • hashicorp/terraform >= 1.3
examples/custom/main.tf
examples/custom/versions.tf
  • aws >= 5.0
  • random >= 2.1
  • hashicorp/terraform >= 1.3
examples/vpc/main.tf
  • cloudposse/dynamic-subnets/aws 2.4.1
  • cloudposse/vpc/aws 2.2.0
examples/vpc/versions.tf
  • aws >= 5.0
  • hashicorp/terraform >= 1.3
versions.tf
  • aws >= 5.0
  • random >= 2.1
  • hashicorp/terraform >= 1.3

  • Check this box to trigger a request for Renovate to run again on this repository

Add Example Usage

what

  • Add example invocation

why

  • We need this so we can soon enable automated continuous integration testing of module

mfa_enable default setting preventing apply of updated module

Found a bug? Maybe our Slack Community can help.

Slack Community

Describe the Bug

The module was updated to include a versioning configuration, with the default set to enable it, with mfa_delete also defaulted to true. I cannot seem to find a sequence of operations that allows me to apply this module cleanly. After updating the module, I encountered the initial problem:

Error: Error putting S3 versioning: AccessDenied: Mfa Authentication must be used for this request
	status code: 403, request id: AB2CBFAECF246E3B, host id: Y3bl2wZs+SeA84/5sb1cl3jahXB/a0Cv+ejQJkfeSeHX4SLce1Dyl4TpS3fSkI3eGpJC64OmBtk=

I then created a set of admin IAM keys for the root use in the production account, and attempted to update the MFA setting on the bucket:

aws s3api put-bucket-versioning --bucket <mybucket> --versioning-configuration Status=Enabled,MFADelete=Enabled --mfa "arn:aws:iam::<my-prod-acct>:mfa/root-account-mfa-device <token>"

An error occurred (InvalidBucketState) when calling the PutBucketVersioning operation: Mfa Authentication is not supported on a bucket with lifecycle configuration. Delete lifecycle configuration before enabling Mfa Authentication.

I manually removed the lifecycle rule, and was then able to update the setting. After that, I attempted to re-apply, but got the following error:

Error: Error putting S3 lifecycle: InvalidBucketState: Cannot put lifecycle configuration on a bucket that has MFA enabled
	status code: 409, request id: FYBY7PBQ9Y2Z3J6T, host id: bSWBYWc81xImMC0PTUT7xNXlGCkBw8ZwvQ01xUJKhERs9EK/QWHNhuMob02ROtd6nUwMfmhDI4E=

Finally, I tried to simply delete the build bucket, and let terraform re-create, but go the following:

Error: Error putting S3 versioning: AccessDenied: Mfa Authentication must be used for this request
	status code: 403, request id: A8ACED58533FAAD7, host id: qtnzSmWWV8g/TFbhkbfmwm84SwuTuzXEE0QK2pqfNe3mDaHPPyWjNS0ddQPe4Q4yhXwYY4QCDGk=

So, it seems the issue is that you cannot add this setting unless you are the root user on the account, which seems at odds with running in an assumed role.

Note that the accounts were created via the reference architecture, and I am applying the module in geodesic under the assume role for access to the prod account, from the MFA-enable IAM admin user in the root account.

Expected Behavior

Module will successfully apply

Steps to Reproduce

Update module on existing codebuild project, and re-apply.

Screenshots

N/A

Environment (please complete the following information):

Ubuntu 20.04
Terraform 0.13.6

Additional Context

This issue was encountered while using the module as part of the https://github.com/cloudposse/terraform-aws-ecs-web-app module.

New variable for cache s3 bucket (for reuse)

Describe the Feature

Currently when s3 cache is requested, module will create new s3 bucket. Idea is about providing s3 bucket that will be used for caching instead of creating new one

Expected Behavior

Add an optional variable s3_cache_bucket_name that will contain name of the s3 bucket to be used for caching. If s3 cache will be requested and this var will not be provided create new s3 bucket as is currently implemented. Otherwise use this s3 bucket and add required iam policy

Use Case

number of s3 buckets is limited so it makes sense to reuse them

Cache location is not valid when cache_bucket_suffix_enabled = true

Describe the Bug

When cache_bucket_suffix_enabled is True, this module raises an error:

โฏ cd terraform-aws-codebuild/examples/complete
โฏ terraform plan -var-file fixtures.us-east-2.tfvars -var cache_bucket_suffix_enabled=true
โ•ท
โ”‚ Error: cache location is required when cache type is "S3"
โ”‚ 
โ”‚   with module.codebuild.aws_codebuild_project.default[0],
โ”‚   on ../../main.tf line 292, in resource "aws_codebuild_project" "default":
โ”‚  292: resource "aws_codebuild_project" "default" {
โ”‚ 
โ•ต

โฏ terraform plan -var-file fixtures.us-east-2.tfvars                                      

Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
  + create
 <= read (data resources)

Terraform will perform the following actions:

  # module.codebuild.data.aws_iam_policy_document.permissions_cache_bucket[0] will be read during apply
  # (config refers to values not yet known)
 <= data "aws_iam_policy_document" "permissions_cache_bucket"  {
      + id   = (known after apply)
      + json = (known after apply)

      + statement {
...

This is having downstream effects. eg: cloudposse/terraform-aws-ecs-codepipeline#71

Expected Behavior

No error

Steps to Reproduce

cd terraform-aws-codebuild/examples/complete
terraform plan -var-file fixtures.us-east-2.tfvars -var cache_bucket_suffix_enabled=true

Resolve tfsec errors

Describe the Feature

Resolve tfsec security concerns with module. The first could be resolved by using a new variable for where the logging should be sent to and/or adding #tfsec:ignore:AWS002 to the resource. The second should be simple to resolve, by just adding server side encryption with AES256 or allowing the different options to be set with variables.

Problem 1

  [AWS002][ERROR] Resource 'module.build:aws_s3_bucket.cache_bucket' does not have logging enabled.
  /tmp/.terraform/modules/build/main.tf:17-35

      14 |   tags       = var.tags
      15 | }
      16 | 
      17 | resource "aws_s3_bucket" "cache_bucket" {
      18 |   count         = var.enabled && local.s3_cache_enabled ? 1 : 0
      19 |   bucket        = local.cache_bucket_name_normalised
      20 |   acl           = "private"
      21 |   force_destroy = true
      22 |   tags          = module.label.tags
      23 | 
      24 |   lifecycle_rule {
      25 |     id      = "codebuildcache"
      26 |     enabled = true
      27 | 
      28 |     prefix = "/"
      29 |     tags   = module.label.tags
      30 | 
      31 |     expiration {
      32 |       days = var.cache_expiration_days
      33 |     }
      34 |   }
      35 | }
      36 | 
      37 | resource "random_string" "bucket_prefix" {
      38 |   count   = var.enabled ? 1 : 0

   See https://tfsec.dev/docs/aws/AWS002/ for more information.

Problem 2

[AWS017][ERROR] Resource 'module.build:aws_s3_bucket.cache_bucket' defines an unencrypted S3 bucket (missing server_side_encryption_configuration block).
  /tmp/.terraform/modules/build/main.tf:17-35

      14 |   tags       = var.tags
      15 | }
      16 | 
      17 | resource "aws_s3_bucket" "cache_bucket" {
      18 |   count         = var.enabled && local.s3_cache_enabled ? 1 : 0
      19 |   bucket        = local.cache_bucket_name_normalised
      20 |   acl           = "private"
      21 |   force_destroy = true
      22 |   tags          = module.label.tags
      23 | 
      24 |   lifecycle_rule {
      25 |     id      = "codebuildcache"
      26 |     enabled = true
      27 | 
      28 |     prefix = "/"
      29 |     tags   = module.label.tags
      30 | 
      31 |     expiration {
      32 |       days = var.cache_expiration_days
      33 |     }
      34 |   }
      35 | }
      36 | 
      37 | resource "random_string" "bucket_prefix" {
      38 |   count   = var.enabled ? 1 : 0

   See https://tfsec.dev/docs/aws/AWS017/ for more information.

Expected Behavior

tfsec should return no errors

Use Case

Adding more security is always good.

Describe Ideal Solution

Tfsec is happy and does not return any errors.

Alternatives Considered

NA

Additional Context

NA

Allow optional secondary S3 artifact deploy

Have a question? Please checkout our Slack Community or visit our Slack Archive.

Slack Community

Describe the Feature

The purpose of this feature is to support a static asset deployment as a secondary artifact when using this module in conjunction with https://github.com/cloudposse/terraform-aws-ecs-web-app and https://github.com/cloudposse/terraform-aws-ecs-codepipeline. Basically, it is to add an S3 bucket (the only currently supported option for secondary artifacts), per the documentation here.

I will have a forthcoming PR, but wanted to add some context in this ticket. Since the intent is to include PRs up the chain of modules through to the web app, it should probably only be accepted if those will as well. Those changes will only pass the bucket name through to the codebuild, and seem reasonable. However, I wanted to point this out in case there is an objection to the general idea of adding this for use as a lightweight frontend deployment method for that module.

Expected Behavior

A user can specify an optional S3 bucket name, and the resources will be uploaded to it as part of the build (with a buildspec that produces the secondary artifact).

Use Case

The use case is to provide a lightweight mechanism for including a front end application CDN for https://github.com/cloudposse/terraform-aws-ecs-web-app.

Describe Ideal Solution

N/A

Alternatives Considered

  • Deploy the front end with a separate app - wanted to avoid this, as this can be easily handled as a website enabled CDN on S3
  • Set up a separate CodePipeline as part of the ECS web app module - decided this is too invasive and heavyweight for the current module

Additional Context

N/A

Environment Variable doesn't merge list of maps

https://github.com/cloudposse/terraform-aws-codebuild/blob/master/main.tf#L202

Here, where you join them, it doesn't seem like its joining right.

When specifying the following config:

environment_variables  = [{
        name  = "APP_SECRET"
        value = "some secret"
    }]

You get the error:

Error: module.build.aws_codebuild_project.default: "environment.0.environment_variable.6.name": required field is not set



Error: module.build.aws_codebuild_project.default: "environment.0.environment_variable.6.value": required field is not set

Option to enable local cache

Hello, is there any way to set the cache location as "LOCAL" ?
I need it for speeding up docker build.

I'm happy to open PR if necessary.

NO_ARTIFACTS = InvalidInputException

Hello,

I'm getting the error:

Invalid artifacts: artifact type NO_ARTIFACTS should have null output name

Maybe I'm missing something?

module "build" {
  source              = "git::https://github.com/cloudposse/terraform-aws-codebuild.git?ref=master"
  namespace           = var.environment
  stage               = var.project
  name                = var.name

  # https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-available.html
  build_image         = "aws/codebuild/standard:4.0"
  build_compute_type  = "BUILD_GENERAL1_SMALL"
  build_timeout       = 60
  artifact_type       = "NO_ARTIFACTS"

  # These attributes are optional, used as ENV variables when building Docker images and pushing them to ECR
  # For more info:
  # http://docs.aws.amazon.com/codebuild/latest/userguide/sample-docker.html
  # https://www.terraform.io/docs/providers/aws/r/codebuild_project.html

  privileged_mode     = true
  aws_region          = "us-east-1"
  aws_account_id      = var.aws_account_numbers[0]
  image_repo_name     = var.image_repo_name
  image_tag           = var.image_tag
  private_repository  = true

  source_credential_auth_type   = "PERSONAL_ACCESS_TOKEN"
  source_credential_server_type = "GITHUB"
  source_credential_token       = var.github_access_token

  buildspec = "buildspec.yml"

  # Optional extra environment variables
  environment_variables = [
    {
      name = "AWS_DEFAULT_REGION"
      value = var.aws_region
    }
  ]
}

Support of Other AWS CodeBuild Containers

Describe the Feature

AWS Code Build supports multiple "Environment Types" as listed on the AWS API Documentation under Project Environment

From this we can find that the valid values are:
WINDOWS_CONTAINER | LINUX_CONTAINER | LINUX_GPU_CONTAINER | ARM_CONTAINER

Additionally the Terraform aws_codebuild_project exposes the ability for this value to be set as well, albeit in the example they have it set to one of the valid types.

I would propose that this element be exposed in the cloudposse terraform-aws-codebuild as:
build_environment_type

Expected Behavior

When this new element is set it will impact the AWS CodeBuild Environment type.

Use Case

Will enable the ability to have AWS CodeBuild to run as:

  • WINDOWS
  • LINUX
  • LINUX_GPU
  • ARM

Describe Ideal Solution

The module supports setting build_environment_type or exposes this via some other similar element name.

Alternatives Considered

The ability to run builds that require windows specific features (i.e. PowerShell) are not supported using the CloudPosse version of Terraform AWS CodeBuild module.

S3 Bucket - acl - Argument is deprecated

Found a bug? Maybe our Slack Community can help.

Slack Community

Describe the Bug

โ•ท
โ”‚ Warning: Argument is deprecated
โ”‚
โ”‚   with module.build.aws_s3_bucket.cache_bucket,
โ”‚   on .terraform\modules\build\main.tf line 11, in resource "aws_s3_bucket" "cache_bucket":
โ”‚   11:   acl           = "private"
โ”‚
โ”‚ Use the aws_s3_bucket_acl resource instead
โ•ต

Expected Behavior

Running the module does not throw any warnings

Steps to Reproduce

Steps to reproduce the behavior:

  1. Run the module

Screenshots

If applicable, add screenshots or logs to help explain your problem.

Environment (please complete the following information):

terraform {
  required_providers {
    aws = {
      source  = "hashicorp/aws"
      version = "~> 4.16"
    }
  }

  required_version = ">= 1.2.0"
}

Cache location is required when cache type is "S3"

Found a bug? Maybe our Slack Community can help.

Slack Community

Describe the Bug

A clear and concise description of what the bug is.
Cannot create code build with following settings:
cache_type = "S3"
cache_bucket_suffix_enabled = true

Expected Behavior

A clear and concise description of what you expected to happen.

Steps to Reproduce

Steps to reproduce the behavior:
This happens for the first time planing while suffix is not available

  1. cache_type S3 and cache_bucket_suffix_enabled
  2. terraform plan

cache_bucket_suffix_enabled = false fix this

Screenshots

If applicable, add screenshots or logs to help explain your problem.

Environment (please complete the following information):

Anything that will help us triage the bug will help. Here are some ideas:

  • OS: OSX
  • Version [e.g. 10.15]

Additional Context

โ•ท
โ”‚ Error: cache location is required when cache type is "S3"
โ”‚ 
โ”‚   with module.codebuild.aws_codebuild_project.default[0],
โ”‚   on modules/codebuild/main.tf line 292, in resource "aws_codebuild_project" "default":
โ”‚  292: resource "aws_codebuild_project" "default" {
โ”‚ 

Problem destroying IAM Role while destroying resources.

Describe the Bug

Following error occurs while destroy.

Error deleting IAM Role (<role-id>): DeleteConflict: Cannot delete entity, must detach all policies first.

Expected Behavior

A clean destroy

Steps to Reproduce

It does not occur after first apply, but happens after several applies.

Screenshots

If applicable, add screenshots or logs to help explain your problem.

Environment (please complete the following information):

Mac-Os

Additional Context

Terragrunt

Notes

All other resources are destroyed completely. Only iam role is kept.

Suggestion

resource "aws_iam_role" "default" {
  count              = var.enabled ? 1 : 0
  name               = module.label.id
  assume_role_policy = data.aws_iam_policy_document.role.json
  force_detach_policies = true
}

Current code does not contain `force_detach_policies = true``

Pull Request

I've made correction adding some additional features .
#53

Support AWS Provider 3

Found a bug? Maybe our Slack Community can help.

Slack Community

Describe the Bug

The version of the AWS Provider is pinned to 2.x in versions.tf. Since an installed version of AWS provider must satisfy therequired_providers blocks of all child modules, the missing support of AWS Provider 3.x of this module blocks an upgrade for each project using it.

Expected Behavior

This module can be used with AWS Provider 3.x.

Additional Context

AWS Provider 3.0 was released on 2020-07-31. No newer versions of AWS Provider 2.x will be released. Therefore, all users of this plugin need an upgrade urgently.

Support more restrictive policy permissions

Describe the Feature

The trust relationship and default permissions for code build give the role to wide and deep of access for our production use cases.

Expected Behavior

role should only be able to be used by the resources in the module

policies should be configurable to follow least privilege practices

Use Case

these are requirements for our production systems

Describe Ideal Solution

the module supports and encourages best practice around IAM

Alternatives Considered

No response

Additional Context

No response

Allow specifying of image_pull_credentials_type

Have a question? Please checkout our Slack Community or visit our Slack Archive.

Slack Community

Describe the Feature

Presently, the module doesn't allow you to change the image_pull_credentials_type (it's not specified in the module, so it's using the AWS provider default of CODEBUILD). Specifying this and defaulting it to CODEBUILD would allow users to change the pull credentials type to SERVICE_ROLE. This is required in cases where users want to use their own build image hosted in ECR.

Expected Behavior

Users should be able to change the image_pull_credentials_type to SERVICE_ROLE which isn't currently possible.

Use Case

When hosting a custom build image within a private ECR, it's necessary to grant access to that image via service role permissions. In order to use the service role permissions for pulling the image, the value of image_pull_credentials_type must be set to SERVICE_ROLE.

Describe Ideal Solution

Add a variable such as this to the module:

variable "build_image_pull_credentials_type" {
  type        = string
  default     = "CODEBUILD"
  description = "Type of credentials AWS CodeBuild uses to pull images in your build.Valid values: CODEBUILD, SERVICE_ROLE. When you use a cross-account or private registry image, you must use SERVICE_ROLE credentials."
}

And update the environment block within the aws_codebuild_project resource to use this variable:

  environment {
    compute_type                = var.build_compute_type
    image                       = var.build_image
    image_pull_credentials_type = var.build_image_pull_credentials_type
    type                        = var.build_type
    privileged_mode             = var.privileged_mode

This will remain backwards compatible and also allow users to change the value if desired.

Alternatives Considered

Since this isn't currently exposed by the module, there aren't any other alternatives I can see.

Additional Context

N/A

Cache bucket ARN not found when cache_enabled = "false"

It seems that when cache is disabled (i.e cache_enabled = "false"), terraform plan will fail with the following output:

Error: Error running plan: 1 error(s) occurred:

* module.build.data.aws_iam_policy_document.permissions_cache_bucket: 1 error(s) occurred:

* module.build.data.aws_iam_policy_document.permissions_cache_bucket: Resource 'aws_s3_bucket.cache_bucket' not found for variable 'aws_s3_bucket.cache_bucket.arn'

my assumption is that this is due to the following aws_iam_policy_document missing a check for var.cache_enabled. I made a fork where the permissions_cache_bucket is updated like so:

data "aws_iam_policy_document" "permissions_cache_bucket" {
  count = "${var.enabled == "true" && var.cache_enabled == "true" ? 1 : 0}"

  statement {
    sid = ""

    actions = [
      "s3:*",
    ]

    effect = "Allow"

    resources = [
      "${aws_s3_bucket.cache_bucket.arn}",
      "${aws_s3_bucket.cache_bucket.arn}/*",
    ]
  }
}

Please let me know if I'm doing something wrong (I'm pretty new to Terraform so this could definitely be the case), or if it's a bug, I can submit a PR. Thanks!

Error: Unsupported block type

Describe the Bug

โ•ท
โ”‚ Error: Unsupported block type
โ”‚ 
โ”‚   on .terraform/modules/codebuild/main.tf line 414, in resource "aws_codebuild_project" "default":
โ”‚  414:     dynamic "auth" {
โ”‚ 
โ”‚ Blocks of type "auth" are not expected here.
โ•ต

Expected Behavior

Running the module does not throw this error

Steps to Reproduce

Try running terraform plan with the latest version of the Terraform AWS provider on a Macbook M2 Pro Max with the darwin_arm64 architecture.

  required_providers {
    aws = {
      source  = "hashicorp/aws"
      version = "~> 5.1.0"
    }
  }

Screenshots

No response

Environment

  • OS: Mac OS Ventura (M2 Max)
  • Version: 13.3.1
  • Module Version: 1.0.0
  • Terraform Version: 1.4.6
  • Platform: darwin_arm64
  • AWS Provider Version: 5.1.0

Additional Context

No response

namespace and stage variables are mandatory

I am using Terraform 0.12. If I don't specify the namespace and stage variables, I get the following error:

Error: Error creating CodeBuild project: InvalidParameter: 2 validation error(s) found.
- minimum field size of 1, CreateProjectInput.Tags[1].Value.
- minimum field size of 1, CreateProjectInput.Tags[2].Value.


  on .terraform/modules/codebuild/main.tf line 170, in resource "aws_codebuild_project" "default":
 170: resource "aws_codebuild_project" "default" {

My code is quite minimal, eg:

module "codebuild" {
  source  = "cloudposse/codebuild/aws"
  version = "0.17.0"

  name            = "${local.repo}-build"
  cache_enabled   = false
  artifact_type   = "NO_ARTIFACTS"
  source_type     = "CODECOMMIT"
  source_location = "https://git-codecommit.${data.aws_region.current.name}.amazonaws.com/v1/repos/${local.repo}"
  #namespace       = "test"
  #stage           = "test"
}

TF AWS provider 4.X compatibility

Describe the Bug

Current state of module is not compatible with TF AWS Provider 4.0.0 due to breaking changes introduced
https://github.com/hashicorp/terraform-provider-aws/blob/main/CHANGELOG.md#400-february-10-2022

Expected Behavior

Module should work in aws provider version 4.x.x

Steps to Reproduce

  1. Set aws provider version to
aws = {
      source  = "hashicorp/aws"
      version = "4.2.0"
    }
  1. Try to init and apply any example

Screenshots

โ•ท
โ”‚ Error: Value for unconfigurable attribute
โ”‚
โ”‚   with module.test.aws_s3_bucket.cache_bucket,
โ”‚   on .terraform/main.tf line 7, in resource "aws_s3_bucket" "cache_bucket":
โ”‚    7: resource "aws_s3_bucket" "cache_bucket" {
โ”‚
โ”‚ Can't configure a value for "server_side_encryption_configuration": its value will be decided automatically based on the result of applying this configuration.
โ•ต
โ•ท
โ”‚ Error: Value for unconfigurable attribute
โ”‚
โ”‚   with module.test.aws_s3_bucket.cache_bucket,
โ”‚   on .terraform/main.tf line 7, in resource "aws_s3_bucket" "cache_bucket":
โ”‚    7: resource "aws_s3_bucket" "cache_bucket" {
โ”‚
โ”‚ Can't configure a value for "versioning": its value will be decided automatically based on the result of applying this configuration.
โ•ต
โ•ท
โ”‚ Error: Value for unconfigurable attribute
โ”‚
โ”‚   with module.test.aws_s3_bucket.cache_bucket,
โ”‚   on .terraform/main.tf line 7, in resource "aws_s3_bucket" "cache_bucket":
โ”‚    7: resource "aws_s3_bucket" "cache_bucket" {
โ”‚
โ”‚ Can't configure a value for "logging": its value will be decided automatically based on the result of applying this configuration.
โ•ต
โ•ท
โ”‚ Error: Value for unconfigurable attribute
โ”‚
โ”‚   with module.test.aws_s3_bucket.cache_bucket,
โ”‚   on .terraform/main.tf line 13, in resource "aws_s3_bucket" "cache_bucket":
โ”‚   13:   acl           = "private"
โ”‚
โ”‚ Can't configure a value for "acl": its value will be decided automatically based on the result of applying this configuration.
โ•ต

Environment (please complete the following information):

terraform -v
Terraform v1.1.6
on darwin_arm64
+ provider registry.terraform.io/hashicorp/aws v4.2.0
+ provider registry.terraform.io/hashicorp/cloudinit v2.2.0
+ provider registry.terraform.io/hashicorp/external v2.2.0
+ provider registry.terraform.io/hashicorp/helm v2.4.1
+ provider registry.terraform.io/hashicorp/kubernetes v2.8.0
+ provider registry.terraform.io/hashicorp/local v2.1.0
+ provider registry.terraform.io/hashicorp/random v3.1.0
+ provider registry.terraform.io/terraform-aws-modules/http v2.4.1

source_type = CODECOMMIT generates error

If you set source_type = CODECOMMIT

You will get the following error.

  • aws_codebuild_project.default: [ERROR] Error creating CodeBuild project: InvalidInputException: Invalid input: when using CodePipeline both sourceType, and artifactType must be set to: CODEPIPELINE

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.