provider-aws icon indicating copy to clipboard operation
provider-aws copied to clipboard

Enable DynamoDB TTL

Open JasP19 opened this issue 4 years ago • 1 comments

What problem are you facing?

I have defined a DynamoDB Table using the Crossplane documentation. I would like to enable TTL based on a certain attribute as per the AWS documentation. I have provided my YAML below, for reference.

apiVersion: dynamodb.aws.crossplane.io/v1alpha1
kind: Table
metadata:
  name: testTable
spec:
  deletionPolicy: Orphan
  forProvider:
    attributeDefinitions:
      - attributeName: testCol
        attributeType: S
    keySchema:
      - attributeName: testCol
        keyType: HASH
    provisionedThroughput: 
      readCapacityUnits: 1
      writeCapacityUnits: 1
    region: eu-west-1
    tags:
      - key: environment
        value: dev
      - key: provisionedBy
        value: Crossplane

How could Crossplane help solve your problem?

Please could you add an attribute to the Table custom resource which allows TTL to be enabled and allows the user to specify which column the TTL should be measured against. I believe this may be achieved using this API call.

JasP19 avatar Jan 04 '21 14:01 JasP19

It seems that this property isn't included in the creation or update calls, so we'd need to add it manually instead of relying on ACK to generate it. The field would go to here and update calls would need to be updated here.

@JasP19 would you be interested in contributing this feature?

muvaf avatar Jan 20 '21 18:01 muvaf

+1

HenriWilliams avatar Jan 17 '23 13:01 HenriWilliams

We would also like this

dhumphries-sainsburys avatar Sep 12 '23 11:09 dhumphries-sainsburys

+1

efekete avatar Sep 21 '23 08:09 efekete

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[bot] avatar Dec 21 '23 02:12 github-actions[bot]

/fresh

mleahu avatar Jan 17 '24 08:01 mleahu