Repository

class Repository : KotlinCustomResource

Provides a Public Elastic Container Registry Repository.

NOTE: This resource can only be used in the us-east-1 region.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.Provider;
import com.pulumi.aws.ProviderArgs;
import com.pulumi.aws.ecrpublic.Repository;
import com.pulumi.aws.ecrpublic.RepositoryArgs;
import com.pulumi.aws.ecrpublic.inputs.RepositoryCatalogDataArgs;
import com.pulumi.resources.CustomResourceOptions;
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 usEast1 = new Provider("usEast1", ProviderArgs.builder()
.region("us-east-1")
.build());
var foo = new Repository("foo", RepositoryArgs.builder()
.repositoryName("bar")
.catalogData(RepositoryCatalogDataArgs.builder()
.aboutText("About Text")
.architectures("ARM")
.description("Description")
.logoImageBlob(Base64.getEncoder().encodeToString(Files.readAllBytes(Paths.get(image.png()))))
.operatingSystems("Linux")
.usageText("Usage Text")
.build())
.tags(Map.of("env", "production"))
.build(), CustomResourceOptions.builder()
.provider(aws.us_east_1())
.build());
}
}

Import

ECR Public Repositories can be imported using the repository_name, e.g.,

$ pulumi import aws:ecrpublic/repository:Repository example example

Properties

Link copied to clipboard
val arn: Output<String>

Full ARN of the repository.

Link copied to clipboard

Catalog data configuration for the repository. See below for schema.

Link copied to clipboard
val forceDestroy: Output<Boolean>?
Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val registryId: Output<String>

The registry ID where the repository was created.

Link copied to clipboard
val repositoryName: Output<String>

Name of the repository.

Link copied to clipboard
val repositoryUri: Output<String>

The URI of the repository.

Link copied to clipboard
val tags: Output<Map<String, String>>?

Key-value mapping of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Link copied to clipboard
val tagsAll: Output<Map<String, String>>

Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard
val urn: Output<String>