-
Notifications
You must be signed in to change notification settings - Fork 4k
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
chore(ecs-patterns): ScheduledFargateTaskProps is exposing unused props from FargateServiceBaseProps #26737
Conversation
…ops from FargateServiceBaseProps
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately, our dear friend backwards compatibility raises its ugly head again (let me reformat to make this more readable):
API elements with incompatible changes:
err - IFACE aws-cdk-lib.aws_ecs_patterns.ScheduledFargateTaskProps:
not assignable to all base types anymore:
aws-cdk-lib.aws_ecs_patterns.ScheduledFargateTaskProps does not extend aws-cdk-lib.aws_ecs_patterns.FargateServiceBaseProps
err - PROP aws-cdk-lib.aws_ecs_patterns.ScheduledFargateTaskProps.cpu:
has been removed
err - PROP aws-cdk-lib.aws_ecs_patterns.ScheduledFargateTaskProps.memoryLimitMiB:
has been removed
err - PROP aws-cdk-lib.aws_ecs_patterns.ScheduledFargateTaskProps.runtimePlatform:
has been removed
err - PROP aws-cdk-lib.aws_ecs_patterns.ScheduledFargateTaskProps.taskDefinition:
has been removed
Once an API has been locked in, the only way to deal with this is by using runtime validation.
And we can't really break any currently succeeding synths either, so we'd have to add a warning.
@rix0rrr |
Yep! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cheers!
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
ScheduledFargateTaskProps
was extending theFargateServiceBaseProps
interface.The only property used from that interface is
platformVersion
.This change adds warning messages if the unused properties are specified:
taskDefinition
cpu
memoryLimitMiB
runtimePlatform
Closes #26702.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license