https://pulumi.com logo
c

cuddly-eye-68174

07/06/2019, 3:17 PM
Hi Guys, I have some issue with Pulumi-aws-typescript. 🙂 I was trying to figure out what is happening in the last 3 hours but I can't 🙂, I have a deployment in AWS, I created an instance with aws.ec2.Instance. Everything is fine, but if I rerun the project with "pulumi up --refresh" the engine wants the replace the instance but no point I think. I cannot see any difference in the details. and I cannot imagine any difference. Do you have any idea what is happening? 🙂
here is the details
s

stocky-spoon-28903

07/06/2019, 3:36 PM
That is very unusual. Are you running in EC2 classic?
c

cuddly-eye-68174

07/06/2019, 3:38 PM
vpc
without --refresh everything is working as a charm
s

stocky-spoon-28903

07/06/2019, 3:41 PM
I assumed VPC, but the refresh of the security group ID into
securityGroups
is an EC2-classic-ism
c

cuddly-eye-68174

07/06/2019, 3:41 PM
but, sometimes I needit, because i have to test delete, create by hand so i need it to reinitialize the state
s

stocky-spoon-28903

07/06/2019, 3:41 PM
(As in,
securityGroups
is only used by classic)
c

cuddly-eye-68174

07/06/2019, 3:41 PM
ups
I am going to check it
thanks
s

stocky-spoon-28903

07/06/2019, 3:41 PM
If not, I’d be interested to see the complete CLI output (in a private gist DM’d to me is fine)
c

cuddly-eye-68174

07/06/2019, 3:42 PM
ok
i am checking this security group thing
@stocky-spoon-28903 Dude this was the problem....works as a charm with --refresh too
thanks
s

stocky-spoon-28903

07/06/2019, 3:46 PM
Great, no worries!
c

cuddly-eye-68174

07/06/2019, 3:46 PM
s

stocky-spoon-28903

07/06/2019, 3:49 PM
I’m somewhat surprised it created in the first place actually
I think the AWS API may have relaxed some restrictions there
c

cuddly-eye-68174

07/06/2019, 4:01 PM
it did...I did not notice any problem, until i wanted to use --refresh