Skip to content

Publish to Iot from Lambda #2118

Answered by Lacutas82
Lacutas82 asked this question in Q&A
Discussion options

You must be logged in to vote

The below works from within a lambda and have messages being published

        public void FunctionHandler(object input, ILambdaContext context)
        {
            try
            {
                var amazonIotDataConfig = new AmazonIotDataConfig
                {
                    RegionEndpoint = RegionEndpoint.USEast1,
                    UseHttp = true,
                    SignatureVersion = "4"
                };

                var serviceUrl = "https://************-ats.iot.us-east-1.amazonaws.com";
                amazonIotDataConfig.ServiceURL = serviceUrl;

                context.Logger.LogLine("Creating AmazonIotDataClient...");
                var amazonIotDataClient = …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Lacutas82
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant