Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

188
Views
Get value from parameter store via code pipeline output '***'

Base on AWS Code Build documentation, we can pass EnvironmentVariables with PARAMETER_STORE type.

I've ensure the parameter store name is typed correctly and the parameter is exists.

I've tried to login via aws cli but it seem not related and still get wrong result.

Here is my cloudformation yaml snippet:

- Name: Build
  Actions:
    - Name: HelloWord
      ActionTypeId:
        Category: Build
        Owner: AWS
        Provider: CodeBuild
        Version: "1"
      Configuration:
        ProjectName: HelloWoldBuild
        EnvironmentVariables: 
          Fn::Sub:
            - '[{"name": "NGINX_BASE_IMAGE_TAG","value": "${NGINX_BASE_IMAGE_TAG}","type": "PARAMETER_STORE"}]
            - NGINX_BASE_IMAGE_TAG: "/nginx/base"

and here is my buildspec.yaml snippet:

version: 0.2

phases:
  install:
    runtime-versions:
      docker: 18
  pre_build:
    commands:
      - echo "${NGINX_BASE_IMAGE_TAG}"

When I see the CodeBuild log, the output was '***'. The correct one should be value from my parameter store.

How could it happen ? I still don't get it. I've test with PLAINTEXT type and works well.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

This is by design.

Values from parameter store are considers as sensitive.

So CodeBuild masks them so they don't appear in plain text in its logs.

To deal with that, you can assign it to different variable, and print that. The following would be my first try to deal with that:

  pre_build:
    commands:
      - NEW_VAR=${NGINX_BASE_IMAGE_TAG}
      - echo "${NEW_VAR}"

Alternative. Save it to file and print out a file:

  pre_build:
    commands:
      - echo ${NGINX_BASE_IMAGE_TAG} > /tmp/test.value
      - cat /tmp/test.value
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!