Reputation: 1861
As it is described here, there is a way to create and deploy a stack using a cloudformation template. What I do not understand is how to supply custom parameters, e.g., userPoolName
, autoVerifiedAttributes
, or mfaConfiguration
.
I would greatly appreciate your help?
Upvotes: 0
Views: 995
Reputation: 1624
The tool thatyou will use to create and deploy stack will expose this functionality.
For eg. If you are using AWS CLI, you can do it in the following manner:
aws cloudformation create-stack --stack-name startmyinstance
--template-body file://home/ec2-user/templates/startmyinstance.json
--parameters ParameterKey=KeyPairName,ParameterValue=MyKey ParameterKey=InstanceType,ParameterValue=t1.micro
Read more about this in this blog post or the official CLI docs.
To learn more about parameters themself, you can refer the AWS Cloudformation docs.
If you are using AWS Python SDK, Boto3 you can find it accessable as a parameter like so:
response = client.update_stack(
StackName='string',
Parameters=[
{
'ParameterKey': 'string',
'ParameterValue': 'string',
'UsePreviousValue': True|False,
'ResolvedValue': 'string'
},
],
)
Read more about this in the official docs here. Same goes for SDK for any other language.
Edit 1: Added example for Python - Boto3
Upvotes: 2