Deploying and testing an ECS cluster
You have now completed the configuration of your CloudFormation template, and it's time to deploy the changes you made in the previous section. Recall that you created a separate configuration file, called dev.cfg
, to store values for each stack parameter. The following example demonstrates how you can now use the aws cloudformation deploy
command to deploy your updated stack and reference your input parameter values:
> aws cloudformation deploy --template-file stack.yml \ --stack-name todobackend --parameter-overrides $(cat dev.cfg) \ --capabilities CAPABILITY_NAMED_IAM Waiting for changeset to be created.. Waiting for stack create/update to complete Successfully created/updated stack - todobackend
Deploying a CloudFormation Stack with parameter overrides
In the preceding example, you use the --parameter-overrides
flag to specify values for each of the parameters your template expects. Rather than type these out manually each time, you simply...