Describe the bug
In the workshop on the step 2-backend/2-compositing (full URL provided below), the following commands assume environment variables to be already set
sam build
sam package --output-template-file packaged.yaml --s3-bucket $s3_deploy_bucket
sam deploy --template-file packaged.yaml --stack-name theme-park-photos --capabilities CAPABILITY_IAM --parameter-overrides "FinalBucketName"=$FINAL_BUCKET
When I was going through this lab, neither the $s3_deploy_bucket nor the $FINAL_BUCKET were set, so the command failed. I had to manually set these variables and re-run the commands. It is possible that the variables may have been set in an earlier step, but if Cloud9 has to be re-started because of auto-logout, all environment variable settings are lost. It will be good to add a step so set the variables before they are actually used.
Link to workshop URL
https://www.eventbox.dev/published/lesson/innovator-island/3-photos/2-backend/2-compositing.html
To Reproduce
Steps to reproduce the behavior:
- Before doing the step in the URL above, log out of the account.
- Log back in and restart Cloud9
- Then try running this part of the lab with the sam commands described above
Expected behavior
The variables $s3_deploy_bucket and $FINAL_BUCKET need to be reset just before being used in the sam commands, even if they were set earlier
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
Smartphone (please complete the following information):
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
Additional context
Add any other context about the problem here.