https://pulumi.com logo
#aws
Title
# aws
c

calm-queen-58154

06/13/2023, 11:42 AM
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'.