aws-amplify / aws-amplify/amplify-cli

custom cloudformation parameters for environments

Open
#3,240 35 comments 1 reaction 0 assignees View on GitHub
cloudformation feature-request p3 strategic
Dominant language
TypeScript
Stars
2.9k
Forks
825
Avg merge
11d 23h
Merged PRs (30d)
2

Description

How can I pass custom cloudformation parameters whose values change for different environments? I'd like to leverage Amplify Environments but I don't know what I need to do to get environment specific CF parameters passed to each CF stack. Does the Amplify CI/CD Console help?

I discovered if I create the "parameters.json" file in my Function stack folder, the values are passed to CF deploy. What happens when I define another environment? Does the "parameters.json" file get replaced?

Also, I only discovered "parameters.json" on a wild guess. Is there a bug in the code generator for Functions that this file is not created automatically?

** Which Category is your question related to? **

I want to give my **Function** stack custom Cloudformation parameters that are specific to the environment. For example, my API may have a dependency URI different in DEV and PROD environments.

** What AWS Services are you utilizing? **

AWS AppSync, Lambda, Cognito, Amplify CI/CD, etc

** Provide additional details e.g. code snippets **

E.g. Sample code, versions of Amplify you are using

```bash
npm list -g --depth=0 | grep -i amplify
@aws-amplify/cli@4.12.0
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.