Skip to content

Commit

Permalink
Update platform query logic to support deprecated (#882)
Browse files Browse the repository at this point in the history
  • Loading branch information
gcbeattyAWS authored Nov 12, 2024
1 parent d0464a1 commit cc33364
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
11 changes: 11 additions & 0 deletions .autover/changes/721a3463-3ad9-413d-b2b6-11efb7575fac.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"Projects": [
{
"Name": "AWS.Deploy.CLI",
"Type": "Patch",
"ChangelogMessages": [
"Update beanstalk platform resolution logic to additionally use 'Deprecated' versions in order to continue supporting .NET 6."
]
}
]
}
8 changes: 6 additions & 2 deletions src/AWS.Deploy.Orchestration/CDK/CDKBootstrapTemplate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,11 @@ Resources:
- Id: CleanupOldVersions
Status: Enabled
NoncurrentVersionExpiration:
NoncurrentDays: 365
NoncurrentDays: 30
- Id: AbortIncompleteMultipartUploads
Status: Enabled
AbortIncompleteMultipartUpload:
DaysAfterInitiation: 1
UpdateReplacePolicy: Delete
DeletionPolicy: Delete
StagingBucketPolicy:
Expand Down Expand Up @@ -611,7 +615,7 @@ Resources:
Type: String
Name:
Fn::Sub: /cdk-bootstrap/${Qualifier}/version
Value: "23"
Value: "25"
Outputs:
BucketName:
Description: The name of the S3 bucket owned by the CDK toolkit stack
Expand Down
2 changes: 1 addition & 1 deletion src/AWS.Deploy.Orchestration/Data/AWSResourceQueryer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ public async Task<List<PlatformSummary>> GetElasticBeanstalkPlatformArns(string?
if (string.IsNullOrEmpty(version.PlatformCategory) || string.IsNullOrEmpty(version.PlatformBranchLifecycleState))
continue;

if (!version.PlatformBranchLifecycleState.Equals("Supported"))
if (!(version.PlatformBranchLifecycleState.Equals("Supported") || version.PlatformBranchLifecycleState.Equals("Deprecated")))
continue;

platformVersions.Add(version);
Expand Down

0 comments on commit cc33364

Please sign in to comment.