<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: ccc_stc</title>
    <description>The latest articles on DEV Community by ccc_stc (@ccc_stc).</description>
    <link>https://dev.to/ccc_stc</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F374075%2F35229982-fecd-4f64-a66b-b4c7acad67ce.jpeg</url>
      <title>DEV Community: ccc_stc</title>
      <link>https://dev.to/ccc_stc</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ccc_stc"/>
    <language>en</language>
    <item>
      <title>How to subscribe Kinesis Data Firehose to SNS in other account</title>
      <dc:creator>ccc_stc</dc:creator>
      <pubDate>Fri, 25 Mar 2022 16:13:23 +0000</pubDate>
      <link>https://dev.to/ccc_stc/how-to-subscribe-kinesis-data-firehose-to-sns-in-other-account-ja9</link>
      <guid>https://dev.to/ccc_stc/how-to-subscribe-kinesis-data-firehose-to-sns-in-other-account-ja9</guid>
      <description>&lt;p&gt;This post gathers the steps how to subscribe Kinesis Data Firehose to SNS in other account via the AWS Console.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Glossary:&lt;/strong&gt;&lt;br&gt;
Kinesis Data Firehose - ETL service to deliver real-time streaming data to destinations such as S3, Redshift, OpenSearch Service, Splunk, Custom HTTP endpoints&lt;br&gt;
SNS - Amazon Simple Notification Service, a notification service&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3avaylmocl5ms4fwmrad.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3avaylmocl5ms4fwmrad.png" alt="Diagram of how SNS and Firehose connect"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step to subscribe&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Create SNS topic in Account A&lt;/li&gt;
&lt;li&gt;Setup the Access policy in SNS topic of Account A to allow Account B to subscribe
(Make sure Access policy contains)
```
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;{&lt;br&gt;
  "Effect": "Allow",&lt;br&gt;
  "Principal": {&lt;br&gt;
    "AWS": "arn:aws:iam::root"&lt;br&gt;
  },&lt;br&gt;
  "Action": "SNS:Subscribe",&lt;br&gt;
  "Resource": "arn:aws:sns:eu-west-1::"&lt;br&gt;
}&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
3. Create Kinesis Data Firehose in Account B
4. Create IAM role which will be used for subscription in Account B
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Permissions: AmazonSNSRole, AmazonKinesisFirehoseFullAccess, AmazonSNSFullAccess&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;5. In Account B, Go to SNS page &amp;gt; Subscriptions &amp;gt; Create subscription
    - Enter Topic ARN (Get this information SNS topic from Account A)
    - Select "Amazon Kinesis Data Firehose" as Protocal
    - Enter ARN of Delivery stream as Endpoint
    - Enter ARN of IAM role we created in step 4 as Subscription role ARN

**How to test**
1. Go to SNS topic in Account A, Publish a test message
2. Go to Kinesis Data Firehose in Account B, Find the S3 bucket and go the file that is recently created and click download
3. In terminal, open the file or cat the file to check the content of the message. You should see the test message we send from SNS topic in Account A

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>aws</category>
      <category>sns</category>
      <category>firehose</category>
    </item>
    <item>
      <title>My journey to learn Smart Contract</title>
      <dc:creator>ccc_stc</dc:creator>
      <pubDate>Sun, 28 Nov 2021 18:37:07 +0000</pubDate>
      <link>https://dev.to/ccc_stc/my-journey-to-learn-smart-contract-4h26</link>
      <guid>https://dev.to/ccc_stc/my-journey-to-learn-smart-contract-4h26</guid>
      <description>&lt;p&gt;This blog is to gather all the tutorials I tried as part of my learning journey.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Hello World Smart Contract by Alchemy&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://docs.alchemy.com/alchemy/tutorials/hello-world-smart-contract"&gt;https://docs.alchemy.com/alchemy/tutorials/hello-world-smart-contract&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After I read about Ethereum and Smart contract from a few books (and fall asleep many times) It is time to start learning by doing.&lt;/p&gt;

&lt;p&gt;This tutorial helps you to understand how to deploy a smart contract to a test network and how to connect it with the frontend via &lt;a href="https://web3js.readthedocs.io/en/v1.2.9/"&gt;Web3&lt;/a&gt; &lt;em&gt;- a collection of libraries that allow you to interact with a local or remote ethereum node using HTTP, IPC or WebSocket.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Alchemy is a platform that lets developers build applications on top of blockchains such as Ethereum. You can think about it as AWS for blockchain (&lt;a href="https://techcrunch.com/2021/10/28/aws-for-blockchain-alchemy-boost-valuation-to-3-5b-with-250m-raise/?guccounter=1&amp;amp;guce_referrer=aHR0cHM6Ly93d3cuZ29vZ2xlLmNvbS8&amp;amp;guce_referrer_sig=AQAAAENURnixJBNC6rBP6vgAe7emu73CEGAjQhlUU09PfJWxQTsvYUxUsQHSxB99BGpZodGX-XK_wWL5NI4nrjlmJBGLi6LSA7nIMRiqigRJakOmzsLvZMcbbeFWDDiAy3WB8doZ8liQ5cE4VWrD5MlbS3UOJ7KFfg-8ZKj9DOccnDdj"&gt;More information about the company here&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;For anyone who is interested in signing up. Please feel free to sign up &lt;a href="https://alchemy.com/?r=39d9fef308b9a64f"&gt;here&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Solidity By Example&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://solidity-by-example.org/"&gt;https://solidity-by-example.org/&lt;/a&gt;&lt;br&gt;
&amp;lt;&amp;lt; My next plan to learn from the example - will update what I learn soon. &amp;gt;&amp;gt;&lt;/p&gt;

</description>
      <category>todayilearned</category>
      <category>blockchain</category>
    </item>
  </channel>
</rss>
