Skip to content

copilot variables (secrets: under manifest.yml) are not available in Dockerfile #2794

@sojanthomas-st

Description

@sojanthomas-st

We are trying to deploy our java/spring application using copilot.

The variable passing from manifest.yml file is NOT accessible from .dockerfile. Please see below.

Manifest.yml:

secrets: # Pass secrets from AWS Systems Manager (SSM) Parameter Store.
IWE_ENV: "<arn…IWE_ENV>'"

Dockerfile:

RUN echo $IWE_ENV

If the variable is available in .dockerfile, application will work fine.

Application structure as follows:

application
copilot
manifest.yml
src
Dockerfile
pom.xml
README.md

Please let me know if I need to add more details.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/manifestIssues about infrastructure-as-code templates.type/enhancementIssues that are improvements for existing features.type/requestIssues that are created by customers.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions