Anyone managed to get ECR lifecycle policy working...
# aws
c
Anyone managed to get ECR lifecycle policy working in conjunction with aws crosswalk repository creation? I tried (python):
Copy code
repository = awsx.ecr.Repository(
    APP_NAME,
    tags={
        "Name": APP_NAME,
        "Environment": environment,
        "Service": SERVICE_NAME,
    },
)

aws.ecr.LifecyclePolicy(
    f"{APP_NAME}_ecr_policy",
    repository=repository.name,
    policy={
        "rules": [
to no avail. I get the following error
Copy code
The argument "repository" is required, but no definition was found.. Examine values at 'LifecyclePolicy.Repository'.