Cloud formation contd
Problem 1: AMI id is hard coded
- We need to give ubuntu 20 ami id in such a way so that it works in every region.
- Refer Here for the changes done
- Refer Here to use fn::findinmap function
- Execute the stack
- Now our template doesnot show any outputs
- Now lets add output section as mentioned Refer Here and to get outputs we would be using fn::getatt Refer Here
- Refer Here for initial set of changes
- Now to make our outputs show the necesary details lets use cloudformation functions Refer Here
- Refer Here for the formatted output added
- Problems still to be solved
- Create reusable templates
- Solve the apache installation issue.