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

disableRollback added to cloudFormationExecuteChangeSet #494

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

bekahmark12
Copy link

@bekahmark12 bekahmark12 commented Dec 8, 2022

Description

Motivation

Related Issue(s), If Filed

Testing

Checklist

  • I have read the README document
  • I have read the CONTRIBUTING document
  • My code follows the code style of this project
  • I have added tests to cover my changes
  • A short description of the change has been added to the changelog using the script npm run newChange

License

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

rebekah.anderson@cloudcords.com added 2 commits December 8, 2022 14:11
@bekahmark12 bekahmark12 requested a review from a team as a code owner December 8, 2022 21:17
Copy link

@awschristou awschristou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the contribution!

The CI checks are failing with

src/tasks/CloudFormationExecuteChangeSet/TaskOperations.ts(57,23): error TS2769: No overload matches this call.
  Overload 1 of 2, '(params: ExecuteChangeSetInput, callback?: ((err: AWSError, data: ExecuteChangeSetOutput) => void) | undefined): Request<...>', gave the following error.
    Argument of type '{ ChangeSetName: string; StackName: string; DisableRollback: boolean; }' is not assignable to parameter of type 'ExecuteChangeSetInput'.
      Object literal may only specify known properties, and 'DisableRollback' does not exist in type 'ExecuteChangeSetInput'.
  Overload 2 of 2, '(callback?: ((err: AWSError, data: ExecuteChangeSetOutput) => void) | undefined): Request<ExecuteChangeSetOutput, AWSError>', gave the following error.
    Argument of type '{ ChangeSetName: string; StackName: string; DisableRollback: boolean; }' is not assignable to parameter of type '(err: AWSError, data: ExecuteChangeSetOutput) => void'.
      Object literal may only specify known properties, and 'ChangeSetName' does not exist in type '(err: AWSError, data: ExecuteChangeSetOutput) => void'.
src/tasks/CloudFormationExecuteChangeSet/TaskOperations.ts(106,25): error TS2339: Property 'DisableRollback' does not exist on type 'DescribeChangeSetInput'.

It looks like we're using Aws JS SDK 2.916.0, but DisableRollback was added in 2.956.0. @JadenSimon what would be required in order to safely bump the SDK version?

@JadenSimon
Copy link
Contributor

JadenSimon commented Dec 8, 2022

Hey @bekahmark12 looks like our package-lock.json file was created using npm 7.x.x, what version are you using? I'd try updating npm and running npm i --package-lock-only to rebuild the file. If that doesn't work I'll make a PR to bump the SDK version.

@bekahmark12
Copy link
Author

Okay I was indeed on npm v6, I updated to v7 and ran the npm i --package-lock-only command!

@JadenSimon
Copy link
Contributor

Okay great! Now try npm i aws-sdk@2.956.0 to fix the types.

@bekahmark12
Copy link
Author

Done!

@JadenSimon
Copy link
Contributor

JadenSimon commented Dec 8, 2022

@bekahmark12
I'm still seeing the error so maybe a later version is needed. Looking at this history, 2.979.0 should work.

@bekahmark12
Copy link
Author

Okay I updated the sdk to 2.979.0.

@JadenSimon
Copy link
Contributor

I'm still seeing issues related to package.json for some reason. I'll make a separate PR to update dependencies to debug further.

@bekahmark12
Copy link
Author

Great thank you so much! :)

@JadenSimon JadenSimon mentioned this pull request Dec 14, 2022
@JadenSimon
Copy link
Contributor

@bekahmark12

You should be able to drop your changes to package.json and package-lock.json and rebase/pull from mainline.

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.

None yet

3 participants