skip to Main Content

Amazon web services – How to import existing ECR repository into Terraform

I've tried variations of the following tf file after reading these docs: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecr_repository to import an existing ECR repository. import { to = aws_ecr_repository.tamarack_api id = "arn:aws:ecr:us-west-2:xxxxxxxxxxxx:repository/tamarack-api" } resource "aws_ecr_repository" tamarack_api { name = "tamarack-api" } terraform plan gives me…

VIEW QUESTION
Back To Top
Search