cloudposse / terraform-aws-cicd

Terraform Module for CI/CD with AWS Code Pipeline and Code Build
https://cloudposse.com/accelerate
Apache License 2.0
192 stars 142 forks source link

Phase context status code: Decrypted Variables Error Message: parameter does not exist: ghp_... #107

Closed Defozo closed 1 year ago

Defozo commented 1 year ago

Describe the Bug

[Container] 2022/11/23 03:53:37 Processing environment variables
[Container] 2022/11/23 03:53:37 Decrypting parameter store environment variables
[Container] 2022/11/23 03:53:39 Phase complete: DOWNLOAD_SOURCE State: FAILED
[Container] 2022/11/23 03:53:39 Phase context status code: Decrypted Variables Error Message: parameter does not exist: ghp_...

Expected Behavior

I expected the build to finish without errors.

Steps to Reproduce

Use the following code:

module "build" {
  source = "cloudposse/cicd/aws"
  version = "v0.19.5"
  namespace           = "eg"
  stage               = "staging"
  name                = "backend-app"

  # Enable the pipeline creation
  enabled             = true

  # Elastic Beanstalk
  elastic_beanstalk_application_name = "backend-app"
  elastic_beanstalk_environment_name = "dev"

  # Application repository on GitHub
  github_oauth_token  = "ghp_..."
  repo_owner          = "cloudposse"
  repo_name           = "backend-app"
  branch              = "development"

  # http://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref.html
  # http://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html
  build_image         = "aws/codebuild/standard:2.0"
  build_compute_type  = "BUILD_GENERAL1_SMALL"
}