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

DynamoDB: Add PointInTimeRecoveryEnabled #488

Closed
duncaan opened this issue Jan 8, 2021 · 6 comments
Closed

DynamoDB: Add PointInTimeRecoveryEnabled #488

duncaan opened this issue Jan 8, 2021 · 6 comments
Labels
enhancement New feature or request stale

Comments

@duncaan
Copy link

duncaan commented Jan 8, 2021

What problem are you facing?

There is no way to set the PointInTimeRecoveryEnabled value on a dynamodb table or backup. This is possible through the AWS SDK: https://docs.aws.amazon.com/sdk-for-go/api/service/dynamodb/#PointInTimeRecoverySpecification

How could Crossplane help solve your problem?

Allow the dynamodb table or backup CRD to allow setting PointInTimeRecoveryEnabled to true or false

@duncaan duncaan added the enhancement New feature or request label Jan 8, 2021
@duncaan
Copy link
Author

duncaan commented Jan 14, 2021

Looked a little deeper and seems that the PITR was enabled with this PR: https://github.com/aws/aws-sdk-go/pull/1864/files but unsure why it isn't being generated by https://github.com/crossplane/provider-aws/blob/master/CODE_GENERATION.md

@duncaan
Copy link
Author

duncaan commented Jan 15, 2021

@muvaf - Is this anything you might know about?

@hasheddan
Copy link
Member

@duncaan looks like this field is not generated because it can't actually be set at table creation (https://docs.aws.amazon.com/sdk-for-go/api/service/dynamodb/#CreateTableInput). We will likely need to add a ContinuousBackups resource as a standalone type that references a Table object, or incorporate it into the table spec https://docs.aws.amazon.com/sdk-for-go/api/service/dynamodb/#UpdateContinuousBackupsInput

@jdfalk
Copy link

jdfalk commented Feb 9, 2021

It seems like this would be pretty easy to implement if you do something like you do in the security groups. Can something like that be implemented, where you make two calls one immediately after the other on create?

https://github.com/crossplane/provider-aws/blob/97f0753230fbe2de63d234364827178d5ec1876f/pkg/controller/ec2/securitygroup/controller.go#L180-L181

@muvaf
Copy link
Member

muvaf commented Feb 12, 2021

We can have this PointInTimeRecoverySpecification struct in CustomTableParameters and make the UpdateContinuousBackups call in setup.go during Update.

@github-actions
Copy link

Crossplane does not currently have enough maintainers to address every issue and pull request. This issue has been automatically marked as stale because it has had no activity in the last 90 days. It will be closed in 14 days if no further activity occurs. Leaving a comment starting with /fresh will mark this issue as not stale.

@github-actions github-actions bot added the stale label Sep 27, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 12, 2023
tektondeploy pushed a commit to gtn3010/provider-aws that referenced this issue Mar 12, 2024
Moving transfer(2) resources to v1beta1 version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request stale
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants