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 comment

Turn on JavaScript to leave a comment.

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
Exit mobile version
%%footer%%