Terraform apply#

Sumit Rawal answered on May 18, 2023 Popularity 9/10 Helpfulness 1/10

Contents


More Related Answers

  • terraform apply auto approve
  • terraform fmt
  • element function in terraform
  • check terraform state
  • terraform apply target
  • terraform output
  • aws instance creation using terraform
  • terraform aws provider
  • Terraform Azure custom_data example
  • terraform state
  • terraform locals
  • terraform apply specific module
  • Terraform data source#
  • terraform linux
  • terraform ternary
  • Terraform language#
  • terraform backed
  • set module source terraform
  • terraform define variable
  • AWS terraform provider.tf
  • terraform-docs
  • terraform state import
  • terraform apply force recreate
  • terraform
  • terraform element function
  • What is Terraform?
  • what is a module terraform
  • what is a module terraform
  • Terraform project example#
  • terraform import

  • Terraform apply#

    -1

    Once the apply has finished, you should see the message Apply complete! Resources: 1 added, 0 changed, 0 destroyed.. This is Terraform telling you that it successfully created the S3 bucket for you. Now, let’s work through the following steps:

    Log onto the aws console (website). If you go to the S3 section, you will see the bucket that Terraform created.

    Delete the bucket from the AWS console. Now go back to the terminal and run terraform apply again.

    You will notice that Terraform has worked out that the S3 bucket is not there anymore, so it needs to create it again. At no point did you tell Terraform the bucket was gone, Terraform worked it out on its own.

    Confirm the apply (by typing yes), so the S3 bucket exists again.

    Now run terraform apply again when the bucket is there. You will see Terraform output Apply complete! Resources: 0 added, 0 changed, 0 destroyed..

    Terraform realises that the state of the world is exactly how you want it to be, so Terraform is saying “nothing to do here!”

    Popularity 9/10 Helpfulness 1/10 Language whatever
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on May 18 2023
    Sumit Rawal
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.