hello, i have a issue with S3 replication on my pr...
# aws
m
hello, i have a issue with S3 replication on my project. I need to create replication on OVH S3 bucket. and my account id is not the same of OVH, it possible to ignore a error ? who i can deal with that thank for your help
Copy code
const destinationBucket = new aws.s3.BucketV2(
  "destinationBucket",
  {
    bucket: bucketName,
  },
  {
    provider: ovhProvider,
  },
);

new aws.s3.BucketVersioningV2(
  "destinationBucket-versioning",
  {
    bucket: destinationBucket.id,

    versioningConfiguration: {
      status: "Enabled",
    },
  },
  {
    provider: ovhProvider,
  },
);

new aws.s3.BucketReplicationConfig(
  "replication",
  {
    bucket: destinationBucket.id,
    role: "arn:aws:iam::c752f68c73b140c49c1a1f877b96e52d:role/s3-replication",
    rules: [
      {
        id: "test-replication",
        status: "Enabled",
        priority: 1,
        filter: {},
        deleteMarkerReplication: { status: "Enabled" },
        destination: {
          bucket: `arn:aws:s3:::${replicationBucketName}`,
        },
      },
      {
        id: "test-with-no-delete-marker",
        status: "Enabled",
        priority: 2,
        filter: {},
        destination: {
          bucket: `arn:aws:s3:::${replicationBucketNameZone2}`,
        },
      },
    ],
  },
  {
    provider: ovhProvider,
    deleteBeforeReplace: true,
  },
);
Copy code
aws:s3:BucketReplicationConfig (replication):
    error: aws:s3/bucketReplicationConfig:BucketReplicationConfig resource 'replication' has a problem: "role" (arn:aws:iam::c752f68c73b140c49c1a1f877b96e52d:role/s3-replication) is an invalid ARN: invalid account ID value (expecting to match regular expression: ^(aws|aws-managed|third-party|\d{12}|cw.{10})$). Examine values at 'replication.role'.