Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

S3 replication metrics requires eventThreshold #1117

Closed
AlexLast opened this issue Feb 2, 2022 · 0 comments · Fixed by #1129
Closed

S3 replication metrics requires eventThreshold #1117

AlexLast opened this issue Feb 2, 2022 · 0 comments · Fixed by #1129
Labels
bug Something isn't working

Comments

@AlexLast
Copy link
Contributor

AlexLast commented Feb 2, 2022

What happened?

When trying to configure an S3 bucket with the following replication spec, we encounter an error from the AWS API.

replicationConfiguration:
  role: arn:aws:iam::<redacted>:role/<redacted>
  rules:
  - status: Enabled
     destination:
       bucket: arn:aws:s3:::<redacted>
       account: "<redacted>"
       replicationTime:
         status: Disabled
         time:
           minutes: 15
       accessControlTranslation:
         ownerOverride: Destination
       metrics:
         status: Enabled
         eventThreshold:
           minutes: 15

As far as I understand it, enabling metrics, with replicationTime disabled is valid configuration, the above configuration gives us the following error:

cannot create or update: api error InvalidArgument: Metrics cannot contain an event threshold when ReplicationTime is not specified or Disabled

However, metrics.eventThreshold cannot be omitted since this is a field required by the provider.

What environment did it happen in?

Crossplane version: v1.6.1
Provider version: v0.23.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant