Skip to content

(cli): Watch mode doesn't assume-role for cross-account deploysΒ #876

@mikestopcontinues

Description

@mikestopcontinues

Describe the bug

Simply adding --watch breaks cross-account deploys.

Expected Behavior

πŸš€

Current Behavior

❌  SomeStack failed: Error: Need to perform AWS calls for account 000000000000, but the current credentials are for 111111111111

Reproduction Steps

Take any cross-account deploy and try to watch for changes. I reproduced the effect in two projects.

Possible Solution

My only guess is that it was simply forgotten in the watch implementation. Or that it was excluded for speed?

Additional Information/Context

Thanks!

CDK CLI Version

2.29.1

Framework Version

No response

Node.js Version

16.x

OS

OSX 12.3.1

Language

Typescript

Language Version

No response

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions