Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I tried following this example and ran in to multiple potential issues.
MyStack.cs
class, and the run is only using that file for all of the updates. The description in Step 2, describes putting the code in toMyStack.cs
but the code snippet is putting everything inProgram.cs
.Program.cs
, it would need to beDeployment.RunAsync
, there's a compiler error with a straight copy/pasteSecurityGroupIngressArgs
, there's an extra set of curly brackets that I've removedami.Id
will not work unless you get the.Result
of theGetAmi.InvokeAsync
. Without,ami.Id
just returns1
. Is there a better way to fix this? I always try to avoid doing.Result
, but not sure how you want to approach that in this case.[Output]
properties forPublicIp
andPublicDns
SecurityGroups
which is apparently deprecated to useVpcSecurityGroupIds
. This appears to have worked like normal, but would definitely like for you to confirm.Please feel free to take another approach with this, this is just what I had to do in order to get the tutorial working as I believe it was intended to. I'm also happy to make any adjustments to this PR if that would help you out.
If I did something wrong and the tutorial is working as intended the way it is on the site right now, please let me know so I can adjust for future reference.
Thanks!