DevOps Classroom notes 07/Jan/2025

Datasources contd

Replace

  • Taint is deprecated and is replaced with terraform apply --replace <resource-id>
  • Taint during apply will delete and create the resource

Terraform Steps to create infra

  1. terraform creates a plan (calculating drift)
  2. terraform performs refresh to get current state of what we have on the provider
  3. now terraform looks at difference between what is written in tf files vs latest refresh
  4. difference becomes a plan
  5. Summary Apply = refresh + plan + apply

Activity 3 contd

  • Use datasource to fetch the ami id
  • Refer Here for the changes done
Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a ReplyCancel reply

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

Please turn AdBlock off
Social Media Icons Powered by Acurax Web Design Company

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Exit mobile version
%%footer%%