aws / aws-sdk

Landing page for the AWS SDKs on GitHub
https://aws.amazon.com/tools/
Other
73 stars 15 forks source link

awsbackup describe-backup-job missing BackupSizeInBytes #154

Open rrossouw01 opened 2 years ago

rrossouw01 commented 2 years ago

Confirm by changing [ ] to [x] below to ensure that it's a bug:

Describe the bug Recently we noticed that describe-backup-job API call does NOT include the BackupSizeInBytes any longer for resource type Aurora. For resource type RDS (and other types) it still does have the key. This is true for "copy jobs" as well.

SDK version number aws-cli/2.2.43 Python/3.8.8

Platform/OS/Hardware/Device Ubuntu 20.04

see below two outputs.(removed some account specific info)...

`$ aws backup describe-backup-job --backup-job-id 1CDF6B45-A11F-3579-B1D5-7DEF1976D5DF { "BackupJobId": "1CDF6B45-A11F-3579-B1D5-7DEF1976D5DF", "BackupVaultName": "CloudOpsVault", "CreationDate": "2021-12-08T03:00:00-06:00", "CompletionDate": "2021-12-08T03:21:42.734000-06:00", "State": "COMPLETED", "PercentDone": "100.0", "CreatedBy": { "BackupPlanId": "4aee0f48-687f-4d3e-80a9-d6d52daa99b1", "BackupPlanVersion": "NjljNGE5OGYtZjMwYi00ZGJkLTk5MTgtNjhiNTRmOGIzMDdh", "BackupRuleId": "930709f7-4e67-43f9-b194-2d88663493a1" }, "ResourceType": "Aurora", "BytesTransferred": 0, "StartBy": "2021-12-08T04:00:00-06:00" }

$ aws backup describe-backup-job --backup-job-id 5C8357F3-697B-A3DA-E871-4F90D62488BF { "BackupJobId": "5C8357F3-697B-A3DA-E871-4F90D62488BF", "BackupVaultName": "CloudOpsVault", "CreationDate": "2021-12-08T03:00:00-06:00", "CompletionDate": "2021-12-08T03:26:41.334000-06:00", "State": "COMPLETED", "PercentDone": "100.0", "BackupSizeInBytes": 0, "IamRoleArn": "arn:aws:iam::628275657034:role/service-role/AWSBackupDefaultServiceRole", "CreatedBy": { "BackupPlanId": "4aee0f48-687f-4d3e-80a9-d6d52daa99b1", "BackupPlanVersion": "NjljNGE5OGYtZjMwYi00ZGJkLTk5MTgtNjhiNTRmOGIzMDdh", "BackupRuleId": "930709f7-4e67-43f9-b194-2d88663493a1" }, "ResourceType": "RDS", "BytesTransferred": 0, "StartBy": "2021-12-08T04:00:00-06:00" } `

stobrien89 commented 2 years ago

Hi @rrossouw01,

Thanks for pointing this out! I was able to reproduce. I don't think this is a bug— I've had discussions with the Backup team before about the APIs they use for various resources and I think this might just be an undocumented limitation. I'll submit an internal ticket to inquire about this and will update you with any information I receive, but please feel free to reach out with any additional questions you may have.

rrossouw01 commented 2 years ago

Hi and thanks for looking at it. A) I should have noted this changed around 12/3. Before 12/2 ALL (including Aurora) type had this key in response. B) It is possible you are correct on limitation but then this should reflect on doc here https://awscli.amazonaws.com/v2/documentation/api/latest/reference/backup/describe-backup-job.html

stobrien89 commented 2 years ago

Thanks for the update, @rrossouw01. I've passed this info along to the Backup team.

stobrien89 commented 2 years ago

P56673833

stobrien89 commented 2 years ago

Hi @rrossouw01,

Just wanted to provide an update: The Backup team has advised me that this piece of information is not yet available for Aurora resource types, but I did ask why you may have seen this before. They also advised that they have an open feature request for including this information in the response for an Aurora resource type. I've asked for some clarification from them, as well as a link to their feature request so I can log your interest in this. I'll let you know as soon as I hear back from them!

stobrien89 commented 2 years ago

Hi @rrossouw01,

Thanks for your patience. The backup team is still looking into why you may have seen the field before, but because this issue is not exclusive to the AWS CLI (i.e. this is an API issue), I'll be transferring this to our shared SDKs repository for tracking. I'll reach out as soon as I have an update!

ashishdhingra commented 7 months ago

P123628246

ashishdhingra commented 6 months ago

Opened new ticket with service team. Awaiting response.

ashishdhingra commented 6 months ago

Reached out to service team requesting for an update.

ashishdhingra commented 2 months ago

Reached out to service team requesting for an update.

ashishdhingra commented 1 month ago

Reached out to service team requesting for an update.