|
| 1 | +# --------------------------------------------------------------------------------------------------------------------- |
| 2 | +# ENVIRONMENT VARIABLES |
| 3 | +# Define these secrets as environment variables |
| 4 | +# --------------------------------------------------------------------------------------------------------------------- |
| 5 | +# AWS_ACCESS_KEY_ID |
| 6 | +# AWS_SECRET_ACCESS_KEY |
| 7 | +# --------------------------------------------------------------------------------------------------------------------- |
| 8 | + |
| 9 | +# OPTIONAL PARAMETERS |
| 10 | +# These parameters have reasonable defaults. |
| 11 | +# --------------------------------------------------------------------------------------------------------------------- |
| 12 | +variable "aws_region" { |
| 13 | + description = "The AWS region to deploy into (default: us-west-2)." |
| 14 | + default = "us-west-2" |
| 15 | +} |
| 16 | + |
| 17 | +variable "organization_name" { |
| 18 | + description = "The organization name provisioning the template (e.g. acme)" |
| 19 | + default = "acme" |
| 20 | +} |
| 21 | + |
| 22 | +variable "char_delimiter" { |
| 23 | + description = "The delimiter to use for unique names (default: -)" |
| 24 | + default = "-" |
| 25 | +} |
| 26 | + |
| 27 | +variable "repo_name" { |
| 28 | + description = "The name of the CodeCommit repository (e.g. new-repo)." |
| 29 | + default = "" |
| 30 | +} |
| 31 | + |
| 32 | +variable "repo_default_branch" { |
| 33 | + description = "The name of the default repository branch (default: master)" |
| 34 | + default = "master" |
| 35 | +} |
| 36 | + |
| 37 | +variable "force_artifact_destroy" { |
| 38 | + description = "Force the removal of the artifact S3 bucket on destroy (default: false)." |
| 39 | + default = "false" |
| 40 | +} |
| 41 | + |
| 42 | +variable "environment" { |
| 43 | + description = "The environment being deployed (default: dev)" |
| 44 | + default = "dev" |
| 45 | +} |
| 46 | + |
| 47 | +variable "build_timeout" { |
| 48 | + description = "The time to wait for a CodeBuild to complete before timing out in minutes (default: 5)" |
| 49 | + default = "5" |
| 50 | +} |
| 51 | + |
| 52 | +variable "build_compute_type" { |
| 53 | + description = "The build instance type for CodeBuild (default: BUILD_GENERAL1_SMALL)" |
| 54 | + default = "BUILD_GENERAL1_SMALL" |
| 55 | +} |
| 56 | + |
| 57 | +variable "build_image" { |
| 58 | + description = "The build image for CodeBuild to use (default: aws/codebuild/nodejs:6.3.1)" |
| 59 | + default = "aws/codebuild/nodejs:6.3.1" |
| 60 | +} |
| 61 | + |
| 62 | +variable "test_buildspec" { |
| 63 | + description = "The buildspec to be used for the Test stage (default: buildspec_test.yml)" |
| 64 | + default = "buildspec_test.yml" |
| 65 | +} |
| 66 | + |
| 67 | +variable "package_buildspec" { |
| 68 | + description = "The buildspec to be used for the Package stage (default: buildspec.yml)" |
| 69 | + default = "buildspec.yml" |
| 70 | +} |
0 commit comments