Skip to content

Commit

Permalink
deploy: e0cc6cb
Browse files Browse the repository at this point in the history
  • Loading branch information
HarshCasper committed Nov 6, 2023
1 parent 6660c00 commit 3955871
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion categories/localstack-pro/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3669,7 +3669,7 @@ In this example, we will use the <a href="https://hivemq.github.io/mqtt-cli/d
<p>In another terminal, publish a message to this topic.</p>
<div class="highlight"><pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-text" data-lang="text"><span style="display:flex;"><span><span class="command-prefix">$ </span>mqtt publish \
</span></span><span style="display:flex;"><span> --host localhost.localstack.cloud \
</span></span><span style="display:flex;"><span> --port 4511 \
</span></span><span style="display:flex;"><span> --port 4510 \
</span></span><span style="display:flex;"><span> --topic climate \
</span></span><span style="display:flex;"><span> -m "temperature=30°C;humidity=60%"</span></span></code></pre></div>
<p>This message will be pushed to all subscribers of this topic, including the one in the first terminal.</p>
Expand Down
2 changes: 1 addition & 1 deletion sitemap.xml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion user-guide/aws/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10028,7 +10028,7 @@ In this example, we will use the <a href="https://hivemq.github.io/mqtt-cli/d
<p>In another terminal, publish a message to this topic.</p>
<div class="highlight"><pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-text" data-lang="text"><span style="display:flex;"><span><span class="command-prefix">$ </span>mqtt publish \
</span></span><span style="display:flex;"><span> --host localhost.localstack.cloud \
</span></span><span style="display:flex;"><span> --port 4511 \
</span></span><span style="display:flex;"><span> --port 4510 \
</span></span><span style="display:flex;"><span> --topic climate \
</span></span><span style="display:flex;"><span> -m "temperature=30°C;humidity=60%"</span></span></code></pre></div>
<p>This message will be pushed to all subscribers of this topic, including the one in the first terminal.</p>
Expand Down
8 changes: 4 additions & 4 deletions user-guide/aws/iot/index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!doctype html><html itemscope itemtype=http://schema.org/WebPage lang=en class=no-js><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name=generator content="Hugo 0.101.0"><meta name=robots content="index, follow"><link rel="shortcut icon" href=/favicons/favicon.ico><link rel=apple-touch-icon href=/favicons/apple-touch-icon-180x180.png sizes=180x180><link rel=icon type=image/png href=/favicons/favicon-16x16.png sizes=16x16><link rel=icon type=image/png href=/favicons/favicon-32x32.png sizes=32x32><link rel=icon type=image/png href=/favicons/android-36x36.png sizes=36x36><link rel=icon type=image/png href=/favicons/android-48x48.png sizes=48x48><link rel=icon type=image/png href=/favicons/android-72x72.png sizes=72x72><link rel=icon type=image/png href=/favicons/android-96x96.png sizes=96x96><link rel=icon type=image/png href=/favicons/android-144x144.png sizes=144x144><link rel=icon type=image/png href=/favicons/android-192x192.png sizes=192x192><title>IoT | Docs</title><meta name=description content="Get started with AWS IoT on LocalStack
"><meta property="og:title" content="IoT"><meta property="og:description" content="Get started with AWS IoT on LocalStack
"><meta property="og:type" content="article"><meta property="og:url" content="/user-guide/aws/iot/"><meta property="article:section" content="user-guide"><meta property="article:modified_time" content="2023-09-21T18:34:37+05:30"><meta property="og:site_name" content="Docs"><meta itemprop=name content="IoT"><meta itemprop=description content="Get started with AWS IoT on LocalStack
"><meta itemprop=dateModified content="2023-09-21T18:34:37+05:30"><meta itemprop=wordCount content="702"><meta itemprop=keywords content><meta name=twitter:card content="summary"><meta name=twitter:title content="IoT"><meta name=twitter:description content="Get started with AWS IoT on LocalStack
"><meta property="og:type" content="article"><meta property="og:url" content="/user-guide/aws/iot/"><meta property="article:section" content="user-guide"><meta property="article:modified_time" content="2023-11-06T15:09:46+05:30"><meta property="og:site_name" content="Docs"><meta itemprop=name content="IoT"><meta itemprop=description content="Get started with AWS IoT on LocalStack
"><meta itemprop=dateModified content="2023-11-06T15:09:46+05:30"><meta itemprop=wordCount content="702"><meta itemprop=keywords content><meta name=twitter:card content="summary"><meta name=twitter:title content="IoT"><meta name=twitter:description content="Get started with AWS IoT on LocalStack
"><link rel=preload href=/scss/main.min.da1aef37f15e6c619f4ea24392f1c1b6367fbf2acfef7370b7623840ed90d2f9.css as=style><link href=/scss/main.min.da1aef37f15e6c619f4ea24392f1c1b6367fbf2acfef7370b7623840ed90d2f9.css rel=stylesheet integrity><script src=https://code.jquery.com/jquery-3.6.0.min.js integrity=sha384-vtXRMe3mGCbOeY7l30aIg8H9p3GdeSe4IFlP6G8JMa7o7lXvnz3GFKzPxzJdPfGK crossorigin=anonymous></script>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/@docsearch/css@3><script type=text/javascript id=hs-script-loader async defer src=//js-eu1.hs-scripts.com/26596507.js></script>
<script type=text/javascript>!function(){var e,t="179335348579cf9",n=function(){Reo.init({clientID:"179335348579cf9"})};(e=document.createElement("script")).src="https://static.reo.dev/"+t+"/reo.js",e.async=!0,e.onload=n,document.head.appendChild(e)}()</script><script async src="https://www.googletagmanager.com/gtag/js?id=UA-101988473-1"></script>
Expand Down Expand Up @@ -303,7 +303,7 @@
</span></span><span style=display:flex><span> --port 4510 \
</span></span><span style=display:flex><span> --topic climate</span></span></code></pre></div><p>In another terminal, publish a message to this topic.</p><div class=highlight><pre tabindex=0 style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-text data-lang=text><span style=display:flex><span><span class=command-prefix>$ </span>mqtt publish \
</span></span><span style=display:flex><span> --host localhost.localstack.cloud \
</span></span><span style=display:flex><span> --port 4511 \
</span></span><span style=display:flex><span> --port 4510 \
</span></span><span style=display:flex><span> --topic climate \
</span></span><span style=display:flex><span> -m &#34;temperature=30°C;humidity=60%&#34;</span></span></code></pre></div><p>This message will be pushed to all subscribers of this topic, including the one in the first terminal.</p><h2 id=authentication>Authentication</h2><p>LocalStack IoT maintains its own root certificate authority which is regenerated at every run.
The root CA certificate can be retrieved from <a href=http://local.localstack.cloud:4566/_aws/iot/LocalStackIoTRootCA.pem>http://local.localstack.cloud:4566/_aws/iot/LocalStackIoTRootCA.pem</a>.</p><div class="alert alert-primary" role=alert><h4 class=alert-heading>Note</h4>AWS provides its root CA certificate at <a href=https://www.amazontrust.com/repository/AmazonRootCA1.pem>https://www.amazontrust.com/repository/AmazonRootCA1.pem</a>.
Expand Down Expand Up @@ -373,7 +373,7 @@
</span></span><span style=display:flex><span><span style=color:#000>mqtt</span><span style=color:#ce5c00;font-weight:700>.</span><span style=color:#000>connect</span><span style=color:#000;font-weight:700>()</span><span style=color:#ce5c00;font-weight:700>.</span><span style=color:#000>result</span><span style=color:#000;font-weight:700>()</span>
</span></span><span style=display:flex><span><span style=color:#000>mqtt</span><span style=color:#ce5c00;font-weight:700>.</span><span style=color:#000>subscribe</span><span style=color:#000;font-weight:700>(</span><span style=color:#ce5c00;font-weight:700>...</span><span style=color:#000;font-weight:700>)</span>
</span></span></code></pre></div><h2 id=lifecycle-events>Lifecycle Events</h2><p>LocalStack publishes the <a href=https://docs.aws.amazon.com/iot/latest/developerguide/life-cycle-events.html>lifecycle events</a> to the standard endpoints.</p><ul><li><code>$aws/events/presence/connected/clientId</code>: when a client connects</li><li><code>$aws/events/presence/disconnected/clientId</code>: when a client disconnects</li><li><code>$aws/events/subscriptions/subscribed/clientId</code>: when a client subscribes to a topic</li><li><code>$aws/events/subscriptions/unsubscribed/clientId</code>: when a client unsubscribes from a topic</li></ul><p>Currently the <code>principalIdentifier</code> and <code>sessionIdentifier</code> fields in event payload contain dummy values.</p><h2 id=registry-events>Registry Events</h2><p>LocalStack can publish the <a href=https://docs.aws.amazon.com/iot/latest/developerguide/registry-events.html>registry events</a>, if <a href=https://docs.aws.amazon.com/iot/latest/developerguide/iot-events.html#iot-events-enable>you enable it</a>.</p><div class=highlight><pre tabindex=0 style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-text data-lang=text><span style=display:flex><span><span class=command-prefix>$ </span>awslocal iot update-event-configurations \
</span></span><span style=display:flex><span> --event-configurations &#39;{&#34;THING&#34;:{&#34;Enabled&#34;: true}}&#39;</span></span></code></pre></div><p>You can then subscribe or use topic rules on the follow topics:</p><ul><li><code>$aws/events/thing/&lt;thingName>/created</code>: when a new thing is created</li><li><code>$aws/events/thing/&lt;thingName>/updated</code>: when a thing is updated</li><li><code>$aws/events/thing/&lt;thingName>/deleted</code>: when a thing is deleted</li></ul><h2 id=topic-rules>Topic Rules</h2><p>It is also possible to use advanced features like SQL queries for IoT topic rules.</p><p>For example, you can use the <a href=https://docs.aws.amazon.com/iot/latest/apireference/API_CreateTopicRule.html><code>CreateTopicRule</code></a> operation to define a topic rule with a SQL query <code>SELECT * FROM 'my/topic' where attr=123</code> which will execute a trigger whenever a message with attribute <code>attr=123</code> is received on the MQTT topic <code>my/topic</code>.</p><p>Supported triggers include Kinesis, Lambda, SQS, Firehose and DynamoDB v2.</p><br><div class="text-muted mt-5 pt-3 border-top">Last modified September 21, 2023: <a href=https://github.com/localstack/docs/commit/0876c3ecfcf19195fd37246d792fd4a39fe12b0d>Revamp IoT docs (#813) (0876c3ecf)</a></div></div></main></div></div><footer class="footer-localstack d-print-none"><div class=container-fluid><div class=row><div class=col><div class=mb-3><a href=https://localstack.cloud><img class=footer-logo src=/images/logo.svg></a></div></div><div class=col><div class="text-right link-lists"><ul class="list-inline mb-0"><li class="list-inline-item mx-2 h3" data-toggle=tooltip data-placement=top title=Twitter aria-label=Twitter><a target=_blank rel=noopener href=https://twitter.com/localstack aria-label=Twitter><i class="fab fa-twitter"></i></a></li><li class="list-inline-item mx-2 h3" data-toggle=tooltip data-placement=top title=Discussion aria-label=Discussion><a target=_blank rel=noopener href=https://discuss.localstack.cloud/ aria-label=Discussion><i class="fa fa-comments"></i></a></li><li class="list-inline-item mx-2 h3" data-toggle=tooltip data-placement=top title="Stack Overflow" aria-label="Stack Overflow"><a target=_blank rel=noopener href=https://stackoverflow.com/questions/tagged/localstack aria-label="Stack Overflow"><i class="fab fa-stack-overflow"></i></a></li></ul><ul class="list-inline mb-0"><li class="list-inline-item mx-2 h3" data-toggle=tooltip data-placement=top title=GitHub aria-label=GitHub><a target=_blank rel=noopener href=https://github.com/localstack/ aria-label=GitHub><i class="fab fa-github"></i></a></li><li class="list-inline-item mx-2 h3" data-toggle=tooltip data-placement=top title="Issue tracker" aria-label="Issue tracker"><a target=_blank rel=noopener href=https://github.com/localstack/localstack/issues aria-label="Issue tracker"><i class="fa fa-bug"></i></a></li><li class="list-inline-item mx-2 h3" data-toggle=tooltip data-placement=top title=Slack aria-label=Slack><a target=_blank rel=noopener href=https://localstack-community.slack.com/ aria-label=Slack><i class="fab fa-slack"></i></a></li></ul></div></div></div><div class=row><div class=col><hr><div class=row><div class=col><small>Copyright &copy; 2023 LocalStack All Rights Reserved</small></div><div class="col text-right"><small class=ml-1><a href=https://localstack.cloud/privacy-policy/ target=_blank rel=noopener>Privacy Policy</a></small></div></div></div></div></div></footer></div><script src=/js/main.min.1171c0d4dbac2c311ddef7a93d7145f6a82ce227d12106ba66debb77d44b9eef.js integrity="sha256-EXHA1NusLDEd3vepPXFF9qgs4ifRIQa6Zt67d9RLnu8=" crossorigin=anonymous></script>
</span></span><span style=display:flex><span> --event-configurations &#39;{&#34;THING&#34;:{&#34;Enabled&#34;: true}}&#39;</span></span></code></pre></div><p>You can then subscribe or use topic rules on the follow topics:</p><ul><li><code>$aws/events/thing/&lt;thingName>/created</code>: when a new thing is created</li><li><code>$aws/events/thing/&lt;thingName>/updated</code>: when a thing is updated</li><li><code>$aws/events/thing/&lt;thingName>/deleted</code>: when a thing is deleted</li></ul><h2 id=topic-rules>Topic Rules</h2><p>It is also possible to use advanced features like SQL queries for IoT topic rules.</p><p>For example, you can use the <a href=https://docs.aws.amazon.com/iot/latest/apireference/API_CreateTopicRule.html><code>CreateTopicRule</code></a> operation to define a topic rule with a SQL query <code>SELECT * FROM 'my/topic' where attr=123</code> which will execute a trigger whenever a message with attribute <code>attr=123</code> is received on the MQTT topic <code>my/topic</code>.</p><p>Supported triggers include Kinesis, Lambda, SQS, Firehose and DynamoDB v2.</p><br><div class="text-muted mt-5 pt-3 border-top">Last modified November 6, 2023: <a href=https://github.com/localstack/docs/commit/e0cc6cb55e4594907f6f7ba379acee8081f462a3>Fix incorrect port in example (#890) (e0cc6cb55)</a></div></div></main></div></div><footer class="footer-localstack d-print-none"><div class=container-fluid><div class=row><div class=col><div class=mb-3><a href=https://localstack.cloud><img class=footer-logo src=/images/logo.svg></a></div></div><div class=col><div class="text-right link-lists"><ul class="list-inline mb-0"><li class="list-inline-item mx-2 h3" data-toggle=tooltip data-placement=top title=Twitter aria-label=Twitter><a target=_blank rel=noopener href=https://twitter.com/localstack aria-label=Twitter><i class="fab fa-twitter"></i></a></li><li class="list-inline-item mx-2 h3" data-toggle=tooltip data-placement=top title=Discussion aria-label=Discussion><a target=_blank rel=noopener href=https://discuss.localstack.cloud/ aria-label=Discussion><i class="fa fa-comments"></i></a></li><li class="list-inline-item mx-2 h3" data-toggle=tooltip data-placement=top title="Stack Overflow" aria-label="Stack Overflow"><a target=_blank rel=noopener href=https://stackoverflow.com/questions/tagged/localstack aria-label="Stack Overflow"><i class="fab fa-stack-overflow"></i></a></li></ul><ul class="list-inline mb-0"><li class="list-inline-item mx-2 h3" data-toggle=tooltip data-placement=top title=GitHub aria-label=GitHub><a target=_blank rel=noopener href=https://github.com/localstack/ aria-label=GitHub><i class="fab fa-github"></i></a></li><li class="list-inline-item mx-2 h3" data-toggle=tooltip data-placement=top title="Issue tracker" aria-label="Issue tracker"><a target=_blank rel=noopener href=https://github.com/localstack/localstack/issues aria-label="Issue tracker"><i class="fa fa-bug"></i></a></li><li class="list-inline-item mx-2 h3" data-toggle=tooltip data-placement=top title=Slack aria-label=Slack><a target=_blank rel=noopener href=https://localstack-community.slack.com/ aria-label=Slack><i class="fab fa-slack"></i></a></li></ul></div></div></div><div class=row><div class=col><hr><div class=row><div class=col><small>Copyright &copy; 2023 LocalStack All Rights Reserved</small></div><div class="col text-right"><small class=ml-1><a href=https://localstack.cloud/privacy-policy/ target=_blank rel=noopener>Privacy Policy</a></small></div></div></div></div></div></footer></div><script src=/js/main.min.1171c0d4dbac2c311ddef7a93d7145f6a82ce227d12106ba66debb77d44b9eef.js integrity="sha256-EXHA1NusLDEd3vepPXFF9qgs4ifRIQa6Zt67d9RLnu8=" crossorigin=anonymous></script>
<script src=/js/tabpane-persist.js></script>
<script src=https://cdn.jsdelivr.net/npm/@docsearch/js@3></script>
<script type=text/javascript>docsearch({container:"#docsearch",appId:"XBW1JU7CW5",apiKey:"6b0341e2f50196d328d088dbb5cd6166",indexName:"localstack"})</script><script src=/js/global-script.js></script></body></html>

0 comments on commit 3955871

Please sign in to comment.