Using AWS Toolkit in Visual Studio 2019 for LocalStack? - amazon-web-services

Can the AWS Toolkit in Visual Studio 2019 be used to access LocalStack running on my development machine?

I have been trying to do this for a long time now. But unfortunately, I have gone through a significant number of configuration permutations without luck.
I believe that as long as custom endpoints are not allowed on AWS Toolkit, the answer will be "no."
Keep an eye on https://github.com/aws/aws-toolkit-vscode/issues/2007

Related

Visual Studio 2022 - AWS Toolkit does not support Step Functions

There is support for Step Function in Visual Studio Code using AWS Toolkit. I could not find anything similar for Visual Studio 2022.
Is there any way for having Step Functions in Visual Studio 2022?
AWS Step Functions is not supported in the AWS Toolkit for Visual Studio today. The toolkit's team is interested in learning more about your use case and what features would add value to your workflow. Please create an issue on Github at https://github.com/aws/aws-toolkit-visual-studio/issues to share any relevant details.
You do not need AWS Toolkit to code logic using AWS SDK for .NET v3. What you need to do is to install the required .NET Assemblies using NuGET in Visual Studio. Install AWSSDK.StepFunctions - as shown here:
Install AWSSDK.Core too.
Then you can write a .NET APP that uses the .NET Step Functions Service Client.
https://docs.aws.amazon.com/sdkfornet/v3/apidocs/items/StepFunctions/TStepFunctionsClient.html

Publish option missing in visual studio

I am trying to deploy an application to aws from within visual studio (2017), but the publish and publish to aws beanstalk options do not appear when I right click the project in the solution explorer. I have installed the aws toolkit, and when working with other projects, the options are present. I'm still new to visual studio, so it's possible I'm missing a simple step, but any help would be appreciated, as I have spent several hours searching for an answer.

On Visual Studio load, AWS Toolkit posts get instance metadata and gets timeout (502). How do I disable that?

When I have the AWS Toolkit installed, it takes a long time for Visual Studio (2015 update 2) to open.
Why? Because (as I saw using Fiddler) it's posting to 169.254.169.254/latest/dynamic/instance-identity/document like 9 times, and timing out every time.
I found this article which explains what that's all about.
But how do I turn it off? I really don't want to wait for so long for Visual Studio to load every time I open it.
The underlying SDK that the toolkit uses had a bug, fixed last week, where it was attempting to always fetch instance metadata to try and determine the AWS region (even when not running on an EC2 instance). I don't recall the version of the toolkit being built on that SDK version but it's possible.
A colleague posted an updated toolkit (1.9.6.21) this evening for an unrelated change - can you install this and see if you still see an issue? If so I'll take a look when I get into the office.

Is it possible to use Web Deploy from Visual Studio Online?

I would like to build in Visual Studio Online and then Web Publish to Amazon.
Is this possible? Or does it only publish to Azure?
It publishes to wherever you like.
Use the PowerShell, Batch, or ShellScript task to deploy to whatever system you like in whatever way that you want.
Better yet, create a professional release pipeline with release management and deploy to many environments.
I ran MSBuild with the following parameters added...
/P:DeployOnBuild=True
/P:DeployTarget=MSDeployPublish
/P:DeployIISAppPath=MyWebsite
/P:AllowUntrustedCertificate=True
/P:MSDeployPublishMethod=WMSvc
/P:CreatePackageOnPublish=True
/P:MsDeployServiceUrl=https://DOMAIN/MsDeploy.axd
/P:UserName=User1
/P:Password=******

C++ in the cloud. Casablanca REST Service on Microsoft Azure

Hello fellow Azure users. I have created quite an extensive C++ REST service using the CasaBlanca REST SDK. When I began working on this project I as lead to believe that I could run it in the Cloud (Azure) . Please explain how best I can get this service to run on Microsoft Azure. I can't afford to re-program the entire project in another language like C# or Java. Thanks in advance!
If you're wondering why I believed CasaBlanca was meant for the Cloud:
http://channel9.msdn.com/Events/TechEd/Australia/2012/AZR331
-Seth
Looking at the TechEd video I can see that they are using the SpeechService demo which you can find the source of here: https://hg.codeplex.com/microsoftcasablanca so you can understand how they performed the deployment to Azure.
Looking at the code I can see the solution is designed to be deployed to a Cloud Service Worker Role and includes a "Cloud Service" project in the Visual Studio solution - this is the project type which gives the "Deploy To Cloud" option which you see in the video.
Given that the demo is from 2012 there will have been many Azure SDK releases since then so the demo code may require an update, but the deployment method from Visual Studio 2012 and 2013 remains essentially unchanged.
Regardless how you're using casablanca, c++ applications can be run on Virtual Machines, web/worker role (stateless) VMs in cloud services, probably websites... Choosing between these is a matter of opinion (or at least dependent on the app you're building), and there's no single right answer.