sparse-intern-71089
02/04/2024, 6:31 PMlittle-cartoon-10569
02/04/2024, 6:38 PMlittle-cartoon-10569
02/04/2024, 6:40 PMpulumi.Output.all()ecr_repo_arn.apply( .... )little-cartoon-10569
02/04/2024, 6:41 PMchilly-thailand-69363
02/04/2024, 6:58 PMchilly-thailand-69363
02/04/2024, 7:26 PMimport pulumi_aws as awsecr_repo_arn = "arn:aws:ecr:us-east-1:*****:repository/app_dev"# Asynchronously get the policy documentdef get_policy_document(args):ecr_policy_document = aws.iam.get_policy_document(statements=[aws.iam.GetPolicyDocumentStatementArgs(actions=["ecr:GetDownloadUrlForLayer","ecr:BatchGetImage","ecr:BatchCheckLayerAvailability",],resources=args,)])return ecr_policy_document.jsonapplypolicy_json = pulumi.Output.all(ecr_repo_arn).apply(get_policy_document)# Export the policypulumi.export("policy", policy_json)little-cartoon-10569
02/04/2024, 8:09 PMlittle-cartoon-10569
02/04/2024, 8:10 PMlittle-cartoon-10569
02/04/2024, 8:11 PMecr_repo_arnecr_repo_armlittle-cartoon-10569
02/04/2024, 8:12 PMlittle-cartoon-10569
02/04/2024, 8:13 PMlittle-cartoon-10569
02/04/2024, 8:16 PMjson_dumpschilly-thailand-69363
02/04/2024, 10:06 PMlittle-cartoon-10569
02/04/2024, 10:45 PMchilly-thailand-69363
02/04/2024, 10:58 PMlittle-cartoon-10569
02/04/2024, 11:00 PMeksClusterchilly-thailand-69363
02/04/2024, 11:03 PMlittle-cartoon-10569
02/04/2024, 11:03 PMeksClusteraws.eks.Clusterlittle-cartoon-10569
02/04/2024, 11:04 PMlittle-cartoon-10569
02/04/2024, 11:04 PMeks_clusterchilly-thailand-69363
02/04/2024, 11:14 PM