ARN attribute is null for non-existant ECR loaded as data resource #9947
Labels
bug
Addresses a defect in current functionality.
service/ecr
Issues and PRs that pertain to the ecr service.
service/iam
Issues and PRs that pertain to the iam service.
Milestone
Community Note
Terraform Version
Terraform v0.12.3
provider.aws v2.26.0
Affected Resource
Terraform Configuration Files
Debug output
Expected Behaviour
Terraform should display an error when the ECR cannot be found in the specified provider account.
Actual Behaviour
The ARN resolves to
Null
and Terraform complains that null values are not allowed in the policy documentresources
attribute value.Steps to Reproduce
terraform plan
using the config aboveThe text was updated successfully, but these errors were encountered: