Working through a deployment on a stack using AWS SAM and deploying via GitHub actions and was trying to use the Config TOML file and specifying a config environment in the deploy command and I am running into the issue where it seems to be just ignoring what I am specifying in the deployment command. Only thing I can only guess I am doing wrong is that I cannot actually use these or that I have it in the wrong location but I would greatly appreciate any help on the matter. Not finding much out there in terms of similar examples or documentation.
sam deploy --stack-name mySuperAwesomeStuff \
--region ${{ secrets.AWS_REGION }} \
--confirm-changeset \
--config-file ./functions/function1/function1.toml \
--config-env nonprod \
--template-file ./functions/function1/template.yaml
Ideally I would love to get the region out of there and into the TOML file as well as the stackname.
My TOML file looks like this:
[nonprod.deploy.parameters]
stack_name="super-awesome-stack-name"
region="us-east-2"
confirm_changeset=true
cababilities="CABILITIES_IAM"
Once again, just seems to be completely ignoring me trying to use the config-file and I am not sure what I am missing here.