Skip to content
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

Update ecs types #616

Merged
merged 2 commits into from
Dec 30, 2020
Merged

Update ecs types #616

merged 2 commits into from
Dec 30, 2020

Conversation

lukehoban
Copy link
Contributor

@lukehoban lukehoban commented Dec 29, 2020

The awsx.ecs types have drifted a little relative to the aws.ecs types. This change brings them up to date with the latest types in the AWS package. In particular this adds:

  • Container#interactive
  • ServiceArgs#forceNewDeployment
  • TaskDefinitionArgs#inferenceAccelerators
  • TaskDefinitionArgs#ipcMode
  • TaskDefinitionArgs#pidMode
  • TaskDefinitionArgs#proxyConfiguration

Aside: The implementation includes an Override type that attempts to derive the correct type from the upstream types. If this had been used directly, it would have avoided the need for this maintenance. But documentation and error message experiences in TypeScript are not good for these derived types, so we instead also manually maintain a copy of the types. We then attempt to verify that the manually maintained copy is compatible, but that attempt only verifies required properties, leaving the possibility that drift in optional properties (which in practice is the only kind of drift that can happen) will not be caught. We likely need to revisit the overall strategy here.

Fixes #615.

@lukehoban lukehoban requested review from leezen and stack72 December 29, 2020 10:06
The awsx.ecs types have drifted a little relative to the aws.ecs types.  This change brings them up to date with the latest types in the AWS package.  In particular this adds:
* Container#interactive
* ServiceArgs#forceNewDeployment
* TaskDefinitionArgs#inferenceAccelerators
* TaskDefinitionArgs#ipcMode
* TaskDefinitionArgs#pidMode
* TaskDefinitionArgs#proxyConfiguration

Aside: The implementation includes an Override type that attempts to derive the correct type from the upstream types.  If this had been used directly, it would have avoided the need for this maintenance.  But documentation and error message experiences in TypeScript are not good for these derived types, so we instead also manually maintain a copy of the types.  We then attempt to verify that the manually maintained copy is compatible, but that attempt only verifies required properties, leaving the possibility that drift in optional properties (which in practice is the only kind of drift that can happen) will not be caught.  We likely need to revisit the overall strategy here.

Fixes #615.
@lukehoban lukehoban merged commit 4c411af into master Dec 30, 2020
@pulumi-bot pulumi-bot deleted the lukehoban/615 branch December 30, 2020 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use AppMesh with ecs FargateService
2 participants