Add support for Policy Documents for ECR Lifecycle Policies #6765
Labels
new-data-source
Introduces a new data source.
service/ecr
Issues and PRs that pertain to the ecr service.
Community Note
Description
Would be good to allow ECR lifecycle policies to make use of IAM policy document data blocks.
This would allow for policies to be validated (fail as early as possible), rather than having to wait until an apply to see if they are valid, etc.
Perhaps an iam policy document isn't the best resource? Do we need a different one?
New or Affected Resource(s)
Data aws_iam_policy_document
Resource aws_ecr_lifecycle_policy
Potential Terraform Configuration
Example:
The text was updated successfully, but these errors were encountered: