mysterious-easter-78875
05/13/2024, 8:29 AMconst 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,
},
);
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'.
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by