This message was deleted.
# aws
s
This message was deleted.
w
Tags - Only on SpotFleetRequest.LaunchConfig. I know you can set tags on the SpotInstanceRequest but those apply only to the request, not the resulting Ec2 Instance but appears to be a limitation of AWS for some reason.
Yeah - this appears to be an (unfortunate) AWS limitation.
LoanBalancers, NetworkInterfaces, PrivateIP
I think these differences are really about single instance vs. multiple instances. Which scenario are you trying to accomplish? I think your high-order-bit would likely to be to align to which of those matches what you want.
imports the resulting Ec2 instance in to the stack so I can modify it
That could work. Alternatively, if tagging is the thing you want to update, you could just wait for availability and then call
create-tags
yourself using the AWS SDK. Along the lines of https://gist.github.com/lukehoban/fd0355ed5b82386bd89c0ffe2a3c916a#file-waitforjob-ts-L20.
b
@white-balloon-205 Thanks for reply!! I think you're idea of using the AWS SDK is pretty interesting. So I could use that from within the
MyStack
class after it's done running? Do you know of any C# examples that show something like that? I was looking around on how to invoke the
isDryRun
in C# but couldn't find anything.
@white-balloon-205 I was able to figure out how to get access to
IsDryRun
, but I'm still having trouble with the "waiting" part. I haven't been able to get the SpotInstanceId from the SpotInstanceRequest yet.