diff --git a/Jenkinsfile b/Jenkinsfile index 74a5974..be34b4d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -111,10 +111,13 @@ pipeline { --key-schema AttributeName=LockID,KeyType=HASH \ --billing-mode PAY_PER_REQUEST - echo "Enabling point-in-time recovery..." + echo "Waiting for DynamoDB table to become ACTIVE..." + aws dynamodb wait table-exists --table-name $TF_DDB_TABLE + + echo "Enabling point‑in‑time recovery..." aws dynamodb update-continuous-backups \ --table-name $TF_DDB_TABLE \ - --point-in-time-recovery-specification Enabled=true + --point-in-time-recovery-specification PointInTimeRecoveryEnabled=true else echo "DynamoDB table $TF_DDB_TABLE already exists." fi