You can reference a resource created with for_each using a Splat ( *) expression.
You corrected a typo in a resource name, changing it from aws_s3_bucket.photoes to aws_s3_bucket.photos. You want to update the Terraform state so that the existing resource is recognized under the new name, without destroying and recreating it. Which configuration should you use?
Which two steps are required to provision new infrastructure in the Terraform workflow? (Pick the 2 correct responses below.)
Which of these actions will prevent two Terraform runs from changing the same state file at the same time?
Which command must you first run before performing further Terraform operations in a working directory?
You’ve just finished refactoring part of your Terraform workspace’s configuration to use a module to manage some of your resources. When you plan your changes, you notice that Terraform will destroy and recreate the affected resources. Doing so could cause unintended downtime in the application your workspace manages. What supported approach should you take to complete the refactor without destroying and recreating your resources?