🔥 3-day streak
HashiCorp Certified: Terraform Associate (004)99 / 150
Question 99 of 150
A team originally deployed three S3 buckets using count, creating addresses like aws_s3_bucket.data[0], [1], and [2]. They refactored the configuration to use for_each with a map keyed by "logs", "backup", and "archive". Running terraform plan now shows Terraform wants to destroy the three indexed buckets and create three new keyed ones. Which action lets them adopt the new addressing without destroying and recreating the buckets?
Reviewed for accuracy · Report an issueNext question