We recommend new projects start with resources from the AWS provider.
published on Monday, Mar 30, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
published on Monday, Mar 30, 2026 by Pulumi
The AWS::ECR::ReplicationConfiguration resource creates or updates the replication configuration for a private registry. The first time a replication configuration is applied to a private registry, a service-linked IAM role is created in your account for the replication process. For more information, see Using Service-Linked Roles for Amazon ECR in the Amazon Elastic Container Registry User Guide.
When configuring cross-account replication, the destination account must grant the source account permission to replicate. This permission is controlled using a private registry permissions policy. For more information, see AWS::ECR::RegistryPolicy.
Using getReplicationConfiguration
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getReplicationConfiguration(args: GetReplicationConfigurationArgs, opts?: InvokeOptions): Promise<GetReplicationConfigurationResult>
function getReplicationConfigurationOutput(args: GetReplicationConfigurationOutputArgs, opts?: InvokeOptions): Output<GetReplicationConfigurationResult>def get_replication_configuration(registry_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetReplicationConfigurationResult
def get_replication_configuration_output(registry_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetReplicationConfigurationResult]func LookupReplicationConfiguration(ctx *Context, args *LookupReplicationConfigurationArgs, opts ...InvokeOption) (*LookupReplicationConfigurationResult, error)
func LookupReplicationConfigurationOutput(ctx *Context, args *LookupReplicationConfigurationOutputArgs, opts ...InvokeOption) LookupReplicationConfigurationResultOutput> Note: This function is named LookupReplicationConfiguration in the Go SDK.
public static class GetReplicationConfiguration
{
public static Task<GetReplicationConfigurationResult> InvokeAsync(GetReplicationConfigurationArgs args, InvokeOptions? opts = null)
public static Output<GetReplicationConfigurationResult> Invoke(GetReplicationConfigurationInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetReplicationConfigurationResult> getReplicationConfiguration(GetReplicationConfigurationArgs args, InvokeOptions options)
public static Output<GetReplicationConfigurationResult> getReplicationConfiguration(GetReplicationConfigurationArgs args, InvokeOptions options)
fn::invoke:
function: aws-native:ecr:getReplicationConfiguration
arguments:
# arguments dictionaryThe following arguments are supported:
- Registry
Id string - The account ID of the destination registry.
- Registry
Id string - The account ID of the destination registry.
- registry
Id String - The account ID of the destination registry.
- registry
Id string - The account ID of the destination registry.
- registry_
id str - The account ID of the destination registry.
- registry
Id String - The account ID of the destination registry.
getReplicationConfiguration Result
The following output properties are available:
- Registry
Id string - The account ID of the destination registry.
- Replication
Configuration Pulumi.Value Aws Native. Ecr. Outputs. Replication Configuration - The replication configuration for a registry.
- Registry
Id string - The account ID of the destination registry.
- Replication
Configuration ReplicationConfiguration Type - The replication configuration for a registry.
- registry
Id String - The account ID of the destination registry.
- replication
Configuration ReplicationConfiguration - The replication configuration for a registry.
- registry
Id string - The account ID of the destination registry.
- replication
Configuration ReplicationConfiguration - The replication configuration for a registry.
- registry_
id str - The account ID of the destination registry.
- replication_
configuration ReplicationConfiguration - The replication configuration for a registry.
- registry
Id String - The account ID of the destination registry.
- replication
Configuration Property Map - The replication configuration for a registry.
Supporting Types
ReplicationConfiguration
- Rules
List<Pulumi.
Aws Native. Ecr. Inputs. Replication Configuration Replication Rule> - An array of objects representing the replication destinations and repository filters for a replication configuration.
- Rules
[]Replication
Configuration Replication Rule - An array of objects representing the replication destinations and repository filters for a replication configuration.
- rules
List<Replication
Configuration Replication Rule> - An array of objects representing the replication destinations and repository filters for a replication configuration.
- rules
Replication
Configuration Replication Rule[] - An array of objects representing the replication destinations and repository filters for a replication configuration.
- rules
Sequence[Replication
Configuration Replication Rule] - An array of objects representing the replication destinations and repository filters for a replication configuration.
- rules List<Property Map>
- An array of objects representing the replication destinations and repository filters for a replication configuration.
ReplicationConfigurationFilterType
ReplicationConfigurationReplicationDestination
- Region string
- The Region to replicate to.
- Registry
Id string - The AWS account ID of the Amazon ECR private registry to replicate to. When configuring cross-Region replication within your own registry, specify your own account ID.
- Region string
- The Region to replicate to.
- Registry
Id string - The AWS account ID of the Amazon ECR private registry to replicate to. When configuring cross-Region replication within your own registry, specify your own account ID.
- region String
- The Region to replicate to.
- registry
Id String - The AWS account ID of the Amazon ECR private registry to replicate to. When configuring cross-Region replication within your own registry, specify your own account ID.
- region string
- The Region to replicate to.
- registry
Id string - The AWS account ID of the Amazon ECR private registry to replicate to. When configuring cross-Region replication within your own registry, specify your own account ID.
- region str
- The Region to replicate to.
- registry_
id str - The AWS account ID of the Amazon ECR private registry to replicate to. When configuring cross-Region replication within your own registry, specify your own account ID.
- region String
- The Region to replicate to.
- registry
Id String - The AWS account ID of the Amazon ECR private registry to replicate to. When configuring cross-Region replication within your own registry, specify your own account ID.
ReplicationConfigurationReplicationRule
- Destinations
List<Pulumi.
Aws Native. Ecr. Inputs. Replication Configuration Replication Destination> - An array of objects representing the destination for a replication rule.
- Repository
Filters List<Pulumi.Aws Native. Ecr. Inputs. Replication Configuration Repository Filter> - An array of objects representing the filters for a replication rule. Specifying a repository filter for a replication rule provides a method for controlling which repositories in a private registry are replicated.
- Destinations
[]Replication
Configuration Replication Destination - An array of objects representing the destination for a replication rule.
- Repository
Filters []ReplicationConfiguration Repository Filter - An array of objects representing the filters for a replication rule. Specifying a repository filter for a replication rule provides a method for controlling which repositories in a private registry are replicated.
- destinations
List<Replication
Configuration Replication Destination> - An array of objects representing the destination for a replication rule.
- repository
Filters List<ReplicationConfiguration Repository Filter> - An array of objects representing the filters for a replication rule. Specifying a repository filter for a replication rule provides a method for controlling which repositories in a private registry are replicated.
- destinations
Replication
Configuration Replication Destination[] - An array of objects representing the destination for a replication rule.
- repository
Filters ReplicationConfiguration Repository Filter[] - An array of objects representing the filters for a replication rule. Specifying a repository filter for a replication rule provides a method for controlling which repositories in a private registry are replicated.
- destinations
Sequence[Replication
Configuration Replication Destination] - An array of objects representing the destination for a replication rule.
- repository_
filters Sequence[ReplicationConfiguration Repository Filter] - An array of objects representing the filters for a replication rule. Specifying a repository filter for a replication rule provides a method for controlling which repositories in a private registry are replicated.
- destinations List<Property Map>
- An array of objects representing the destination for a replication rule.
- repository
Filters List<Property Map> - An array of objects representing the filters for a replication rule. Specifying a repository filter for a replication rule provides a method for controlling which repositories in a private registry are replicated.
ReplicationConfigurationRepositoryFilter
- Filter string
- The repository filter details. When the
PREFIX_MATCHfilter type is specified, this value is required and should be the repository name prefix to configure replication for. - Filter
Type Pulumi.Aws Native. Ecr. Replication Configuration Filter Type - The repository filter type. The only supported value is
PREFIX_MATCH, which is a repository name prefix specified with thefilterparameter.
- Filter string
- The repository filter details. When the
PREFIX_MATCHfilter type is specified, this value is required and should be the repository name prefix to configure replication for. - Filter
Type ReplicationConfiguration Filter Type - The repository filter type. The only supported value is
PREFIX_MATCH, which is a repository name prefix specified with thefilterparameter.
- filter String
- The repository filter details. When the
PREFIX_MATCHfilter type is specified, this value is required and should be the repository name prefix to configure replication for. - filter
Type ReplicationConfiguration Filter Type - The repository filter type. The only supported value is
PREFIX_MATCH, which is a repository name prefix specified with thefilterparameter.
- filter string
- The repository filter details. When the
PREFIX_MATCHfilter type is specified, this value is required and should be the repository name prefix to configure replication for. - filter
Type ReplicationConfiguration Filter Type - The repository filter type. The only supported value is
PREFIX_MATCH, which is a repository name prefix specified with thefilterparameter.
- filter str
- The repository filter details. When the
PREFIX_MATCHfilter type is specified, this value is required and should be the repository name prefix to configure replication for. - filter_
type ReplicationConfiguration Filter Type - The repository filter type. The only supported value is
PREFIX_MATCH, which is a repository name prefix specified with thefilterparameter.
- filter String
- The repository filter details. When the
PREFIX_MATCHfilter type is specified, this value is required and should be the repository name prefix to configure replication for. - filter
Type "PREFIX_MATCH" - The repository filter type. The only supported value is
PREFIX_MATCH, which is a repository name prefix specified with thefilterparameter.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
published on Monday, Mar 30, 2026 by Pulumi
