Skip to content

Headless amplify pull without modifying the backend #5275

@MrHertal

Description

@MrHertal

Note: If your feature-request is regarding the AWS Amplify Console service, please log it in the
official AWS Amplify Console forum

Is your feature request related to a problem? Please describe.

There seems to be no way to answer No to the question:
Do you plan on modifying this backend?
When running headless amplify pull.

I find this annoying in the case of React Native app CI/CD building scripts. I want to build my app on git push, so I need to include the aws-exports.js file which I don't have in the git repo. This feature would allow me to retrieve the amplify project meta data only, in the building script, without updating the project in the cloud.

Describe the solution you'd like
I would like a new argument to the headless amplify pull (https://docs.amplify.aws/cli/usage/headless#amplify-pull-parameters) that answers Yes or No to the question: Do you plan on modifying this backend?

Describe alternatives you've considered
I can still commit the aws-exports.js file, but it's really annoying when working with teammates on several environments.
The solution I am considering is to host the aws-exports.js files somewhere and download them with a curl in the CI/CD scripts. But that would mean updating those files when amplify project is updated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestRequest a new featureheadlessHeadless mode for CI/CDmultienvIssues tied to multiple environment feature in the CLIp3platformIssues tied to the general CLI platformstrategic

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions