-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Discussion] User input Parameters #2
Comments
I really like this idea. So for your specific example - the dynamodb table name - The table name must be defined in CloudFormation resources, so your awsm mod would expose this resource in Here is an initial proposal to get the ball rolling:
Obviously alot more thought needs to be put into this, but just an idea |
Yeah this sounds like a really good start. Maybe this is also related, but when a resource is created I don't not know its full ARN, I can wild card it but that be error prone. For example in here I want to update the IAM Role with the new resource created. I almost want a reference to that resource ARN described a few lines later. |
@dekz too bad @doapp-ryanp That sounds like a good proposal. When do you see prompting for these values? If we prompt on Seems like it might be best to prompt for these values on Deploy. To that end it might be best to make the replacement syntax a bit more unique to try and avoid conflicts. Also seems like it might be helpful to store the answers to these questions in the This is definitely something we need to figure out though, every module I've thought of creating so far needs this. |
Also, we should consider whether we can avoid creating our own substitution mechanism. Would be cool to just use CloudFormation parameters for this. We specify in We could then store a set of parameters for each stage, and maybe even allow using env variables if the names match. Using environment variables would be great for something like Dynamo Table where you want to specify it in the Resources template and in the code. Thoughts on using CloudFormation parameters for this? Thoughts on using environment variables as the storage mechanism for this? Maybe not the only storage mechanism, but might be a good enough start. |
Currently I can supply additional CloudFormation resources in an Awsm module. For example a DynamoDB resource. I do not want to dictate the Table Name and would prefer the input to come from the user either during
jaws module install
orjaws deploy resources
.Do you have any thoughts on exposing Parameter References to allow configuration? Perhaps similar to
envVars
for a lambda?An example of this would be the DynamoDB table name perhaps. Or the number of RWThroughput.
The text was updated successfully, but these errors were encountered: