-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
feat(cfnspec): cloudformation spec v18.3.0 #10385
Conversation
@@ -328,6 +328,32 @@ export class TaskDefinition extends TaskDefinitionBase { | |||
return this._executionRole; | |||
} | |||
|
|||
private renderVolumes(): CfnTaskDefinition.VolumeProperty[] { |
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.
See #10201 (comment)
@@ -713,7 +739,7 @@ export interface DockerVolumeConfiguration { | |||
* | |||
* @default No labels | |||
*/ | |||
readonly labels?: string[]; | |||
readonly labels?: { [key: string]: string; } |
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.
See #10201 (comment)
@@ -1006,8 +1006,8 @@ export = { | |||
Family: 'Ec2TaskDef', | |||
Volumes: [{ | |||
Name: 'scratch', | |||
EfsVolumeConfiguration: { | |||
FileSystemId: 'local', | |||
EFSVolumeConfiguration: { |
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.
See #10201 (comment)
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.
Approved with do-not-merge. Wanted to give @RomainMuller a chance to check this out.
Thank you for contributing! Your pull request will be updated from master 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 master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
Patches partially inspired by:
BREAKING CHANGE: Fixed ECS task definition within the L1 layer. Fixed the casing of the
efsVolumeConfiguration
property to match the spec published by cloudformation. Fixed the type of theDockerVolumeConfiguration.labels
property to allow users to properly apply labels.efsVolumeConfiguration
will incur a resource replacement due to wrong casing of the underlying resources introduced in this PR. This replacement will in turn cause a rolling update to any running tasks that use that definition.DockerVolumeConfiguration.labels
changed from an array to a map. This was a long standing latent bug and in fact configuring labels in the old format would have resulted in the wrong behavior.