Pull Through Cache Rule
Provides an Elastic Container Registry Pull Through Cache Rule. More information about pull through cache rules, including the set of supported upstream repositories, see Using pull through cache rules.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ecr.PullThroughCacheRule;
import com.pulumi.aws.ecr.PullThroughCacheRuleArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new PullThroughCacheRule("example", PullThroughCacheRuleArgs.builder()
.ecrRepositoryPrefix("ecr-public")
.upstreamRegistryUrl("public.ecr.aws")
.build());
}
}
Content copied to clipboard
Import
Use the ecr_repository_prefix
to import a Pull Through Cache Rule. For example
$ pulumi import aws:ecr/pullThroughCacheRule:PullThroughCacheRule example ecr-public
Content copied to clipboard
Properties
Link copied to clipboard
The repository name prefix to use when caching images from the source registry.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The registry ID where the repository was created.
Link copied to clipboard
The registry URL of the upstream public registry to use as the source.