We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a14e47 commit 14f9467Copy full SHA for 14f9467
buildspec.yml
@@ -11,6 +11,7 @@ env:
11
TF_VAR_build_docker_tag: "6.10.0"
12
TF_VAR_buildspec: "buildspec.yml"
13
TF_VAR_source_location: "https://github.com/jch254/serverless-node-dynamodb-api.git"
14
+ TF_VAR_cache_bucket: "603-codebuild-cache/serverless-node-dynamodb-api"
15
TF_VAR_dns_name: "sls-api.603.nz"
16
TF_VAR_route53_zone_id: "Z18NTUPI1RKRGC"
17
TF_VAR_acm_arn: "arn:aws:acm:us-east-1:982898479788:certificate/65811194-cc89-4926-83c3-199c5c0b6e0c"
@@ -29,3 +30,9 @@ phases:
29
30
commands:
31
- ./infrastructure/deploy-infrastructure.bash
32
- ./infrastructure/deploy-serverless.bash
33
+
34
+cache:
35
+ paths:
36
+ - 'infrastructure/.terraform/modules/**/*'
37
+ - 'infrastructure/.terraform/plugins/**/*'
38
+ - '/usr/local/share/.cache/yarn/v1/**/*'
infrastructure/main.tf
@@ -49,7 +49,7 @@ resource "aws_codebuild_webhook" "codebuild_webhook" {
49
}
50
51
module "codebuild_project" {
52
- source = "github.com/jch254/terraform-modules//codebuild-project?ref=1.0.0"
+ source = "github.com/jch254/terraform-modules//codebuild-project?ref=1.0.4"
53
54
name = "${var.name}"
55
codebuild_role_arn = "${aws_iam_role.codebuild_role.arn}"
@@ -58,6 +58,7 @@ module "codebuild_project" {
58
source_type = "${var.source_type}"
59
buildspec = "${var.buildspec}"
60
source_location = "${var.source_location}"
61
+ cache_bucket = "${var.cache_bucket}"
62
63
64
resource "aws_api_gateway_domain_name" "domain" {
infrastructure/variables.tf
@@ -35,6 +35,11 @@ variable "source_location" {
description = "HTTPS URL of CodeCommit repo or S3 bucket to use as project source"
+variable "cache_bucket" {
39
+ description = "S3 bucket to use as build cache, the value must be a valid S3 bucket name/prefix"
40
+ default = ""
41
+}
42
43
variable "dns_name" {
44
description = "DNS name"
45
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments