【问题标题】:How to set 'Source version' for AWS CodeBuild project in Terraform如何在 Terraform 中为 AWS CodeBuild 项目设置“源版本”
【发布时间】:2020-03-07 02:44:19
【问题描述】:
【问题讨论】:
标签:
terraform
terraform-provider-aws
aws-codebuild
【解决方案2】:
您可以使用source_version 参数
resource "aws_codebuild_project" "example" {
name = "test-project"
description = "test_codebuild_project"
build_timeout = "5"
service_role = "${aws_iam_role.example.arn}"
source_version = "master"
environment {
compute_type = "BUILD_GENERAL1_SMALL"
image = "aws/codebuild/standard:1.0"
type = "LINUX_CONTAINER"
image_pull_credentials_type = "CODEBUILD"
...
...
source {
type = "GITHUB"
location = "https://github.com/mitchellh/packer.git"
git_clone_depth = 1
git_submodules_config {
fetch_submodules = true
}
}
}
该功能正在开发中。它现在可用,请在下面找到文档和问题。
[docs] [issue]