Bird
0
0

You ran:

medium📝 Debug Q7 of 15
AWS - CloudFormation
You ran:
aws cloudformation create-stack --stack-name MyStack --template-body file://template.yaml
and received an error: "Parameter validation failed: Missing required parameter in input: 'StackName'". What is the likely cause?
AThe AWS CLI version is outdated
BThe template.yaml file is empty
CThe --stack-name parameter was misspelled or missing
DAWS credentials are invalid
Step-by-Step Solution
Solution:
  1. Step 1: Analyze the error message

    The error says 'Missing required parameter: StackName', meaning the CLI did not receive this parameter.
  2. Step 2: Identify common causes

    Misspelling or omitting --stack-name causes this error.
  3. Final Answer:

    The --stack-name parameter was misspelled or missing -> Option C
  4. Quick Check:

    Check parameter spelling carefully [OK]
Quick Trick: Always double-check parameter names in CLI commands [OK]
Common Mistakes:
  • Assuming template file issues cause this error
  • Blaming credentials or CLI version

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes