Back to articles
March 30, 2025
capability, aws, awscli, create-stack

AWS create-stack aws cli capabilities and parameters

https://aws.amazon.com/blogs/devops/passing-parameters-to-cloudformation-stacks-with-the-aws-cli-and-powershell/

for i in clients inventory renting resource;
  do echo ${i}-api;     
    aws cloudformation create-stack --stack-name development-iam-policy-${i}-api
    --template-body file://${i}-api/infra/cloudformation/iam-policy.json
    --parameters ParameterKey=Namespace,ParameterValue=development
    --capabilities CAPABILITY_NAMED_IAM;
    echo =====; 
  done
Loading comments...