resource "aws_ecr_repository" "myapp-repo" { name = "myapp" # defaults image_tag_mutability = "MUTABLE" image_scanning_configuration { scan_on_push = true } } data "aws_ecr_authorization_token" "token" {}