I recently started using AWS Amplify and I've had experience using vanilla cloudformation. Most of it makes sense except for the parameters.json part.
It seems that Amplify generates cloudformation templates for the resources we use, but it also generates a parameters.json file, which I thought was the equivalent of the Parameters section of cloudformation, but it doesn't seem to be.
In Amplify parameters.json the content is just on object with key-value pairs. Whereas in cloudformation, parameters has a defined syntax as noted in the docs.
Also in parameters.json it seems to be able to make a Ref call in the same manner as cloudformation templates. Does anyone know what is parsing the parameters.json file and replacing Ref with actual value?
For example in the storage category, the parameters.json file has key like this
"authRoleName": {
"Ref": "AuthRoleName"
},
AuthRoleName seems to be defined in both amplify-meta.json under the backend directory, but it's also defined in team-provider-info.json under the amplify directory.
Does anyone know which AuthRoleName file it's using? From what I read in the docs, both amplify-meta.json and team-provider-info.json is auto generated.
A lot of these questions came up because I was curious if I could execute the autogenerated CF templates in CF manually in cloudformation UI. When I tried and copied the Parameters section in and the Metadata section in, I got invalid syntax.
This led me to think amplify is using it's own parser to generate a finalized CF template and executing it in CF. I tried searching through the cli repo, but couldn't find it.