https://pulumi.com logo
#general
Title
# general
b

bored-river-53178

06/17/2019, 9:01 PM
I need help with adapting awsx vpc example (https://pulumi.io/reference/crosswalk/aws/vpc/#getting-the-default-vpc) to work across multiple aws profiles
it seems that setting profile has no effect here
i see the output for the same vpc twice
looks like I've found the answer https://github.com/pulumi/pulumi-awsx/issues/314
the problem is - i am experiencing this with awsx v0.18.5, though the issue is supposed to be fixed in it
w

white-balloon-205

06/17/2019, 11:24 PM
cc @lemon-spoon-91807
p

proud-alarm-92546

06/18/2019, 12:11 AM
@bored-river-53178 just to be sure, you did
npm install
and all right? I set to a dev build earlier today and spent an hour trying to figure out why I wasn't seeing any change.......doh. 🙂
l

lemon-spoon-91807

06/18/2019, 12:57 AM
Well look when I get home tonight!
b

bored-river-53178

06/18/2019, 1:40 AM
I completely removed npm_modules and then installed them from scratch, that didn't help
after that I cloned awsx repo, built it, removed
node_modules/@pulumi/awsx/
and replaced it with freshly built files from
pulumi-awsx/nodejs/awsx/bin
(unfortunately I don't know how to replace npm module with the one built from master branch properly)
that didn't help either
l

lemon-spoon-91807

06/18/2019, 2:09 AM
There may have been multiple issues, and I may have closed one out incorrectly! Will find out in a bit
yes, i closed out the wrong bug.
will fix this one tonight
apologies
b

bored-river-53178

06/18/2019, 2:53 AM
no problem, thanks a lot for a quick response!
l

lemon-spoon-91807

06/18/2019, 3:39 AM
still validating all scenarios
b

bored-river-53178

06/18/2019, 7:37 AM
do you know if there is a better way for me to use it, comparing to how I've done it before (manually replacing awsx module content from npm_modules)?
now the code snippet I provided initially produces this error message: Diagnostics: awsxec2:Vpc (default-vpc): error: Duplicate resource URN 'urnpulumimain:aws infraawsxxec2Vpc::default-vpc'; try giving it a unique name
Is there some general way to workaround https://github.com/pulumi/pulumi/issues/2647 ?
w

white-balloon-205

06/18/2019, 4:18 PM
I'll look into that issue today.
I've opened https://github.com/pulumi/pulumi-awsx/issues/335 which is the immediate cause of this. @lemon-spoon-91807 will be addressing as part of updating the PR above.
2 Views