Ravi Sir's Cards › AWS
Parameters, mappings, outputs
This revision card explains Parameters, mappings, outputs. It starts from the need that hardcoding AMI and account IDs makes one template unusable across envs. It describes parameters input values; mappings look up by region/env; outputs export values for other stacks. The how-to section notes parameterize InstanceType; map AMI by region; export VPC Id for app stacks. An example on the card is staging passes t3.micro; prod passes m5.large via the same template.
Read card text
What this card says
Why do we need it?
Hardcoding AMI and account IDs makes one template unusable across envs.
What is it?
Parameters input values; mappings look up by region/env; outputs export values for other stacks.
Fn::ImportValue
How to do it
Parameterize InstanceType; map AMI by region; export VPC Id for app stacks.
Example
Staging passes t3.micro; prod passes m5.large via the same template.