AWS Classroom Series – 09/Feb/2021

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 Preview Preview
  • Now our template doesnot show any outputs Preview
  • 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 Preview
  • Now to make our outputs show the necesary details lets use cloudformation functions Refer Here
  • Refer Here for the formatted output added Preview
  • Problems still to be solved
    • Create reusable templates
    • Solve the apache installation issue.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

About learningthoughtsadmin