Ravindra BagaleCourses & study guides मराठी Track your progress

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.

Parameters, mappings, outputs Hardcoding AMI and account IDs makes one template unusable across envs. Parameters input values; mappings look up by region/env; outputs export values for other stacks. Parameterize InstanceType; map AMI by region; export VPC Id for app stacks. Staging passes t3.micro; prod passes m5.large via the same template.
Parameters, mappings, outputs · Download PNG
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.

See all AWS revision cards