<?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: Asis Sethi</title>
    <description>The latest articles on DEV Community by Asis Sethi (@asethi93).</description>
    <link>https://dev.to/asethi93</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%2F497649%2F478dd074-cba4-4339-8602-14f333d10afa.png</url>
      <title>DEV Community: Asis Sethi</title>
      <link>https://dev.to/asethi93</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/asethi93"/>
    <language>en</language>
    <item>
      <title>Amazon Managed Service for Grafana (AMG)</title>
      <dc:creator>Asis Sethi</dc:creator>
      <pubDate>Fri, 29 Jan 2021 03:09:35 +0000</pubDate>
      <link>https://dev.to/aws-builders/amazon-managed-service-for-grafana-amg-3mgo</link>
      <guid>https://dev.to/aws-builders/amazon-managed-service-for-grafana-amg-3mgo</guid>
      <description>&lt;ol&gt;
&lt;li&gt;Amazon Managed Service Grafana is available for Preview as of Jan 2021 in Europe (Ireland)eu-west-1 and US East (N. Virginia)us-east-1
&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%2Fi%2Fmflcbquple90vgbojh76.png" alt="Alt Text"&gt;
&lt;/li&gt;
&lt;li&gt;Give a unique name to your workspace.
&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%2Fi%2Foc79h0k7z7kfkobxlw7y.png" alt="Alt Text"&gt;
&lt;/li&gt;
&lt;li&gt;And yes AWS Sign-On (SSO) is MANDATORY! Come SIGN up for it OR GET LOST!
&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%2Fi%2Fs62lz3oaxdrwvnj8y95a.png" alt="Alt Text"&gt;
&lt;/li&gt;
&lt;li&gt;Integration with Amazon Managed Service for Prometheus, Amazon TimeStream is 1 click away not just for CURRENT ACCOUNT but for Your Entire Organization.
&lt;a href="https://grafana.com/grafana/plugins/grafana-timestream-datasource" rel="noopener noreferrer"&gt;https://grafana.com/grafana/plugins/grafana-timestream-datasource&lt;/a&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%2Fi%2Fu6feo7rwuiiadczl8eza.png" alt="Alt Text"&gt;
&lt;/li&gt;
&lt;li&gt;Create your Grafana workspace hassle-free.
&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%2Fi%2Fh3shrxinm7gvo8hnfm5b.png" alt="Alt Text"&gt;
&lt;/li&gt;
&lt;li&gt;Grafana 7.3.5 Workspace URL is all READY.
&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%2Fi%2Fp0xe2mmtumdj5i43v5p6.png" alt="Alt Text"&gt;
&lt;/li&gt;
&lt;li&gt;Assign Users + Assign User Groups BONUS BONUS BONUS …..
&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%2Fi%2Ftgampm60z812cobrcqjv.png" alt="Alt Text"&gt;
&lt;/li&gt;
&lt;li&gt;LOGIN via AWS SSO
&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%2Fi%2F5ymijtzl0i1wwnwfdpnx.png" alt="Alt Text"&gt;
&lt;/li&gt;
&lt;/ol&gt;

</description>
    </item>
    <item>
      <title>Error: AmazonS3Exception “Access Denied with Status Code: 403” in Amazon Athena when I query a bucket in another account</title>
      <dc:creator>Asis Sethi</dc:creator>
      <pubDate>Sat, 16 Jan 2021 01:15:59 +0000</pubDate>
      <link>https://dev.to/aws-builders/error-amazons3exception-access-denied-with-status-code-403-in-amazon-athena-when-i-query-a-bucket-in-another-account-3495</link>
      <guid>https://dev.to/aws-builders/error-amazons3exception-access-denied-with-status-code-403-in-amazon-athena-when-i-query-a-bucket-in-another-account-3495</guid>
      <description>&lt;p&gt;&lt;strong&gt;Assumptions:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Account A (S3 Bucket )&lt;/li&gt;
&lt;li&gt;Account B (Athena query)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Let's start with Account A:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Locate the S3 Bucket Object Permissions Tab&lt;/li&gt;
&lt;li&gt;Either edit ACL of the S3 Bucket Object or add a Bucket policy&lt;/li&gt;
&lt;li&gt;Under ACL add External AWS Account Canonical ID&lt;/li&gt;
&lt;li&gt;Edit Bucket policy by Using Policy Generator [&lt;a href="https://awspolicygen.s3.amazonaws.com/policygen.html"&gt;https://awspolicygen.s3.amazonaws.com/policygen.html&lt;/a&gt;]
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{
 “Version”: “2012–10–17”,
 “Id”: “Policy1604525342797”,
 “Statement”: [
 {
 “Sid”: “Cross-Account-Permissions”,
 “Effect”: “Allow”,
 “Principal”: {
 “AWS”: [
 “arn:aws:iam::xaccountbxx:root”,
 “arn:aws:iam::xaccountbxx:user/cross-account-access-user”
 ]
 },
 “Action”: “s3:*”,
 “Resource”: “arn:aws:s3:::analytics-cross-account-s3access”
 },
 {
 “Sid”: “Cross-Account-Permissions”,
 “Effect”: “Allow”,
 “Principal”: {
 “AWS”: [
 “arn:aws:iam::xaccountbxx:root”,
 “arn:aws:iam::xaccountbxx:user/cross-account-access-user”
 ]
 },
 “Action”: “s3:GetObject”,
 “Resource”: “arn:aws:s3:::analytics-cross-account-s3access/*”
 }
 ]
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;If KMS is Enabled on S3 Bucket, Add Key policy to Customer managed key
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{
 “Version”: “2012–10–17”,
 “Id”: “key-default-1”,
 “Statement”: [
 {
 “Sid”: “Enable IAM User Permissions”,
 “Effect”: “Allow”,
 “Principal”: {
 “AWS”: “arn:aws:iam::xaccountaxx:root”
 },
 “Action”: “kms:*”,
 “Resource”: “*”
 },
 {
 “Sid”: “Allow use of the key”,
 “Effect”: “Allow”,
 “Principal”: {
 “AWS”: “arn:aws:iam::xaccountbxx:user/cross-account-access-user”
 },
 “Action”: [
 “kms:Encrypt”,
 “kms:Decrypt”,
 “kms:ReEncrypt*”,
 “kms:GenerateDataKey*”,
 “kms:DescribeKey”
 ],
 “Resource”: “*”
 }
 ]
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Let’s start with Account B:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Attach below Policy to IAM User in Account B
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{
 “Version”: “2012–10–17”,
 “Statement”: [
 {
 “Sid”: “VisualEditor0”,
 “Effect”: “Allow”,
 “Action”: [
 “s3:GetAccessPoint”,
 “s3:PutAccountPublicAccessBlock”,
 “s3:GetAccountPublicAccessBlock”,
 “s3:ListAllMyBuckets”,
 “s3:ListAccessPoints”,
 “s3:ListJobs”,
 “s3:CreateJob”
 ],
 “Resource”: “*”
 },
 {
 “Sid”: “VisualEditor1”,
 “Effect”: “Allow”,
 “Action”: “s3:*”,
 “Resource”: [
 “arn:aws:s3:::analytics-cross-account-s3access”,
 “arn:aws:s3:::analytics-cross-account-s3access/*”
 ]
 }
 ]
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;2.If KMS is enabled attach another inline policy&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{
 “Version”: “2012–10–17”,
 “Statement”: [
 {
 “Sid”: “VisualEditor0”,
 “Effect”: “Allow”,
 “Action”: [
 “kms:DescribeCustomKeyStores”,
 “kms:ListKeys”,
 “kms:DeleteCustomKeyStore”,
 “kms:GenerateRandom”,
 “kms:UpdateCustomKeyStore”,
 “kms:ListAliases”,
 “kms:DisconnectCustomKeyStore”,
 “kms:CreateKey”,
 “kms:ConnectCustomKeyStore”,
 “kms:CreateCustomKeyStore”
 ],
 “Resource”: “*”
 },
 {
 “Sid”: “VisualEditor1”,
 “Effect”: “Allow”,
 “Action”: “kms:*”,
 “Resource”: “arn:aws:kms:ca-central-1:xaccountbxx:key/4bb–452e-8885”
 }
 ]
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>aws</category>
      <category>devops</category>
      <category>codequality</category>
      <category>architecture</category>
    </item>
    <item>
      <title>Online tools for drawing AWS Architecture Diagrams</title>
      <dc:creator>Asis Sethi</dc:creator>
      <pubDate>Wed, 11 Nov 2020 04:05:57 +0000</pubDate>
      <link>https://dev.to/aws-builders/online-tools-for-drawing-aws-architecture-diagrams-4nko</link>
      <guid>https://dev.to/aws-builders/online-tools-for-drawing-aws-architecture-diagrams-4nko</guid>
      <description>&lt;ol&gt;
&lt;li&gt;AWS Architecture Icons &lt;a href="https://aws.amazon.com/architecture/icons" rel="noopener noreferrer"&gt;https://aws.amazon.com/architecture/icons&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;LucidCharts — &lt;a href="https://lucid.co/" rel="noopener noreferrer"&gt;https://lucid.co/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Hava — &lt;a href="https://www.hava.io/" rel="noopener noreferrer"&gt;https://www.hava.io/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Draw — &lt;a href="https://draw.io" rel="noopener noreferrer"&gt;https://draw.io&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;CloudCraft — &lt;a href="https://cloudcraft.co" rel="noopener noreferrer"&gt;https://cloudcraft.co&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Diagrams — &lt;a href="https://diagrams.mingrammer.com" rel="noopener noreferrer"&gt;https://diagrams.mingrammer.com&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;CloudSkew — &lt;a href="https://www.cloudskew.com" rel="noopener noreferrer"&gt;https://www.cloudskew.com&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;cfn-diagram-github — &lt;a href="https://github.com/mhlabs/cfn-diagram-github" rel="noopener noreferrer"&gt;https://github.com/mhlabs/cfn-diagram-github&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt; cfn-diagram-ci — &lt;a href="https://github.com/mhlabs/cfn-diagram-ci" rel="noopener noreferrer"&gt;https://github.com/mhlabs/cfn-diagram-ci&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;cfn-diagram — &lt;a href="https://github.com/mhlabs/cfn-diagram" rel="noopener noreferrer"&gt;https://github.com/mhlabs/cfn-diagram&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Visual Paradigm Online — &lt;a href="https://online.visual-paradigm.com" rel="noopener noreferrer"&gt;https://online.visual-paradigm.com&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Terraform AWS Icons — &lt;a href="https://github.com/TabbedOut/terraform-aws-icons" rel="noopener noreferrer"&gt;https://github.com/TabbedOut/terraform-aws-icons&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Micro - &lt;a href="https://miro.com" rel="noopener noreferrer"&gt;https://miro.com&lt;/a&gt;
&lt;/li&gt;
&lt;/ol&gt;

</description>
    </item>
  </channel>
</rss>
