-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuildspec.yml
44 lines (40 loc) · 1.81 KB
/
buildspec.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# All commands below are run from root directory of repository by CodeBuild
version: 0.2
env:
variables:
TF_VAR_region: "us-east-1"
TF_VAR_name: "scope-lex-handler"
TF_VAR_kms_key_arns: '["arn:aws:kms:us-east-1:982898479788:key/3dc41364-c3e6-4544-8e39-c5f4780d19cd","arn:aws:kms:us-east-1:982898479788:key/e83f1d78-5dc5-4aca-a00b-2fc2ac7bebe4"]'
TF_VAR_ssm_parameter_arns: '["arn:aws:ssm:us-east-1:982898479788:parameter/scope-lex-handler/*","arn:aws:ssm:us-east-1:982898479788:parameter/shared/*"]'
TF_VAR_build_docker_image: "jch254/docker-node-terraform-aws"
TF_VAR_build_docker_tag: "12.x"
TF_VAR_buildspec: "buildspec.yml"
TF_VAR_source_location: "https://github.com/jch254/scope-lex-handler.git"
TF_VAR_cache_bucket: "603-codebuild-cache/scope-lex-handler"
TF_VAR_artifacts_dir: "../dist"
TF_VAR_runtime: "nodejs12.x"
TF_VAR_handler: "index.handler"
REMOTE_STATE_BUCKET: "603-terraform-remote-state"
REMOTE_STATE_REGION: "ap-southeast-2"
GRAPH_API_VERSION: "v7.0"
parameter-store:
SPOTIFY_CLIENT_ID: "/scope-lex-handler/spotify-client-id"
SPOTIFY_CLIENT_SECRET: "/scope-lex-handler/spotify-client-secret"
GENIUS_ACCESS_TOKEN: "/scope-lex-handler/genius-access-token"
PAGE_ACCESS_TOKEN: "/scope-lex-handler/page-access-token"
TF_VAR_github_oauth_token: "/shared/github-token"
phases:
install:
commands:
# Workaround until CodeBuild/CodePipeline retains file permissions
- find ./infrastructure -name "*.bash" -exec chmod +x {} \;
- ./infrastructure/install.bash
build:
commands:
- ./infrastructure/build-artifacts.bash
- ./infrastructure/deploy-infrastructure.bash
cache:
paths:
- 'infrastructure/.terraform/modules/**/*'
- 'infrastructure/.terraform/plugins/**/*'
- '/usr/local/share/.cache/yarn/v1/**/*'