Repository used as an example for the Call APIs from Step Functions using SAM article.
Clone or fork this repository and push it to your own GitHub account.
Run the following command replacing the api key value with yours
sam deploy --parameter-overrides FaunaDBSecretKey=YOUR_API_KEY
Running sam deploy --guided
will not work as expected since the FaunaDBSecretKey parameter is set with the NoEcho attribute, for security reasons, which means it will not get saved in the samconfig.yaml.
Clone or fork this repository and push it to your own GitHub account.
- Create an GitHub environment named sandbox
- Add your Pipeline Execution Role (PIPELINE_EXECUTION_ROLE), CloudFormation Execution Role (CLOUDFORMATION_EXECUTION_ROLE) and a target S3 bucket name for the artifacts (ARTIFACTS_BUCKET_NAME). Here is an explanation by Chris Ebert on how to set this up.
- Add the Base URL and the API Key for Open Weather. The Base URL is set as an Environment Variable named FaunaDbUrl and the API Key is set as a Secret named FaunaDBSecretKey
In the Actions in GitHub you can select the Deploy to Sandbox Workflow. There will be a button to Run workflow where you can now select the branch you wish to deploy.