<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>aws on Eric&#39;s Note</title>
    <link>https://eric.nz/tags/aws/</link>
    <description>Recent content in aws on Eric&#39;s Note</description>
    <image>
      <url>https://eric.nz/%3Clink%20or%20path%20of%20image%20for%20opengraph,%20twitter-cards%3E</url>
      <link>https://eric.nz/%3Clink%20or%20path%20of%20image%20for%20opengraph,%20twitter-cards%3E</link>
    </image>
    <generator>Hugo -- gohugo.io</generator>
    <lastBuildDate>Sat, 27 Nov 2021 20:45:21 +0000</lastBuildDate><atom:link href="https://eric.nz/tags/aws/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Cost Optimisation for AWS Resources</title>
      <link>https://eric.nz/posts/aws-cost-optimisation/</link>
      <pubDate>Sat, 27 Nov 2021 20:45:21 +0000</pubDate>
      
      <guid>https://eric.nz/posts/aws-cost-optimisation/</guid>
      <description>Reference AWS Workshop: Cost Optimisation </description>
    </item>
    
    <item>
      <title>Building Modern Data Lake on AWS</title>
      <link>https://eric.nz/posts/sys-design-data-lake-on-aws/</link>
      <pubDate>Tue, 10 Nov 2020 10:16:29 +0000</pubDate>
      
      <guid>https://eric.nz/posts/sys-design-data-lake-on-aws/</guid>
      <description>Reference https://aws.amazon.com/blogs/architecture/lets-architect-modern-data-architectures/ https://garystafford.medium.com/building-a-simple-data-lake-on-aws-df21ca092e32 https://medium.com/pythonistas/complete-guide-to-aws-data-lake-4cc85259deb0 </description>
    </item>
    
    <item>
      <title>AWS SysOps Exam Preparation</title>
      <link>https://eric.nz/posts/aws-cert-sysops-prep/</link>
      <pubDate>Sat, 08 Aug 2020 12:40:14 +0000</pubDate>
      
      <guid>https://eric.nz/posts/aws-cert-sysops-prep/</guid>
      <description>Billing and Cost Management User-Defined Cost Allocation Tags User-defined tags are tags that you define, create and apply to resources.After you have create and applied them, you can activate them on the Billing and Cost Management console for cost allocation tracking.
The detailed steps are:
Log in to the AWS Management Console of the new account Use the Tag Editor to create the new user-defined tags Use the Cost Allocation Tag manager in the payer account to mark the tags as cost allocation tags Certificate Manager (ACM) When you request a public certificate, AWS Certificate Manager (ACM) generates a public/private key pair</description>
    </item>
    
    <item>
      <title>AWS Cloud Practitioner Exam Preparation</title>
      <link>https://eric.nz/posts/aws-cloud-practitioner/</link>
      <pubDate>Fri, 17 Jan 2020 14:00:34 +0000</pubDate>
      
      <guid>https://eric.nz/posts/aws-cloud-practitioner/</guid>
      <description>General Information Introduction to AWS Certified Cloud Practitioner Examination time is around 90 minutes. Examination score is between 100-1000, and the minimum passing score is 700. Exam Content Outline Domain 1 - Cloud Concepts (26%) 1.1 Define the AWS Cloud and it&amp;rsquo;s value proposition 1.2 Identify aspects of AWS Cloud economics 1.3 List the different cloud architecture design principles
Domain 2 - Security and Compliance (25%) 2.1 Define the AWS Cloud shared responsibility model 2.</description>
    </item>
    
    <item>
      <title>Setup DataGrip Connection to AWS Athena with IAM Role Profile</title>
      <link>https://eric.nz/posts/aws-athena-with-datagrip/</link>
      <pubDate>Wed, 11 Dec 2019 08:36:00 +0000</pubDate>
      
      <guid>https://eric.nz/posts/aws-athena-with-datagrip/</guid>
      <description>Instructions Step 0 - Check Local AWS CLI Config Before you start to configure DataGrip, please ensure your AWS CLI config is EXACTLY like following screenshot
IAM Role Profile needs to store in the credentials You can refer to this official AWS document: Configuration basics - AWS command-Line Interface Step 1 - Install DataGrip For Mac User
Option 1: If you have brew installed on your workstation, you could execute the following command in your favourite terminal 1 brew install --cask datagrip Option 2: Download the executable at https://www.</description>
    </item>
    
    <item>
      <title>AWS Storage Comparison</title>
      <link>https://eric.nz/posts/aws-storage-comparison/</link>
      <pubDate>Sun, 03 Nov 2019 15:13:43 +0000</pubDate>
      
      <guid>https://eric.nz/posts/aws-storage-comparison/</guid>
      <description>Block Storage vs Object Storage Block Storage:
block level operations are possible one block changed, e.g piece of the file, that contains the changed data can be updated in block level Object Storage:
Entire file must be removed and new file needs to be put there S3 vs EBS vs EFS S3:
S3 to be used for WORM operations, e.g. Write once Read many times Scalable, size not be planned not suitable for hosting OS or Database EBS:</description>
    </item>
    
    <item>
      <title>Common AWS S3 CLI command examples</title>
      <link>https://eric.nz/posts/aws-cli-s3-command/</link>
      <pubDate>Sat, 02 Feb 2019 19:34:49 +0000</pubDate>
      
      <guid>https://eric.nz/posts/aws-cli-s3-command/</guid>
      <description>Reference TheGeekStuff: 28 Essential AWS S3 CLI Command Examples to Manage Buckets and Objects </description>
    </item>
    
    <item>
      <title>RequestTimeTooSkewed Error with AWS CLI</title>
      <link>https://eric.nz/posts/aws-cli-request-time-too-skewed-error/</link>
      <pubDate>Sat, 02 Feb 2019 19:34:49 +0000</pubDate>
      
      <guid>https://eric.nz/posts/aws-cli-request-time-too-skewed-error/</guid>
      <description>This morning I was about to kickoff some typical jobs with AWS CLI on an Linux EC2 instance. The AWS CLI command always raised the error,
1 2 3 [user@host ~]$ aws s3 ls An error occurred (RequestTimeTooSkewed) when calling the ListBuckets operation: The difference between the request time and the current time is too large. even with the simplest list object command the error were still there!!!
By querying Stack Overflow, some people had the same problem with S3 upload, and suggested to compare the local time with Amazon server-side time.</description>
    </item>
    
    <item>
      <title>Get AWS EMR Cluster Info with Powershell</title>
      <link>https://eric.nz/posts/aws-emr-get-cluster-info-with-powershell/</link>
      <pubDate>Wed, 21 Nov 2018 03:11:48 +0000</pubDate>
      
      <guid>https://eric.nz/posts/aws-emr-get-cluster-info-with-powershell/</guid>
      <description>In order to get information from an existing EMR cluster, we can use
1 PS S:\ Get-EMRCluster -ClusterId $ClusterId The command will then return a system object in Amazon.ElasticMapReduce.Model.Cluster type.
The Cluster object provides the following attributes that maybe useful
MasterPublicDnsName. The DNS name of the master node. NormalizedInstanceHours. An approximation of the cost of the cluster. ReleaseLabel. The release label of Amazon EMR. Status. The current status details about the cluster.</description>
    </item>
    
    <item>
      <title>EMR JobFlow Arguments Error</title>
      <link>https://eric.nz/posts/aws-emr-jobflow-error/</link>
      <pubDate>Tue, 30 Oct 2018 00:00:22 +0000</pubDate>
      
      <guid>https://eric.nz/posts/aws-emr-jobflow-error/</guid>
      <description>I came across this error this morning with EMR and Spark steps.
1 An error occurred (ValidationException) when calling the RunJobFlow operation: 1 validation error detected: Value &amp;#39;[ &amp;lt;YOUR-SPARK-JOB&amp;gt; ]&amp;#39; at &amp;#39;steps.45.member.hadoopJarStep.args&amp;#39; failed to satisfy constraint: Member must satisfy constraint: [Member must have length less than or equal to 10280, Member must have length greater than or equal to 0, Member must satisfy regular expression pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*] Or
1 botocore.exceptions.ClientError: An error occurred (ValidationException) when calling the RunJobFlow operation: Size of step parameter length exceeded the maximum allowed.</description>
    </item>
    
    <item>
      <title>Getting All Tables Information in Redshift</title>
      <link>https://eric.nz/posts/aws-redshift-table-info/</link>
      <pubDate>Wed, 29 Aug 2018 21:57:48 +0000</pubDate>
      
      <guid>https://eric.nz/posts/aws-redshift-table-info/</guid>
      <description>According to the AWS Document , Redshift provides PG_TABLE_DEF table that contains all the table information, and you can query that table like
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 SELECT DISTINCT schemaname, tablename, column, type, encoding, distkey, sortkey, notnull FROM PG_TABLE_DEF WHERE 1=1 AND schemaname in (&amp;#39;&amp;lt;SCHEMA_NAME&amp;gt;&amp;#39;) ORDER BY schemaname ASC, tablename ASC ; However, this only returns all the information in the public schema, I assume there maybe some permission problem with my account.</description>
    </item>
    
    <item>
      <title>Redshift Pipelines</title>
      <link>https://eric.nz/posts/aws-redshift-pipeline/</link>
      <pubDate>Wed, 25 Jul 2018 06:01:42 +0000</pubDate>
      
      <guid>https://eric.nz/posts/aws-redshift-pipeline/</guid>
      <description>Reference Mark Smallcombe: 15 Examples of Data Pipelines Built with Amazon Redshift </description>
    </item>
    
    <item>
      <title>Best practices of AWS EMR</title>
      <link>https://eric.nz/posts/aws-emr-best-practice/</link>
      <pubDate>Tue, 03 Jul 2018 21:45:00 +0000</pubDate>
      
      <guid>https://eric.nz/posts/aws-emr-best-practice/</guid>
      <description>Reference AWS Big Data Blog: Best practices for resizing and automatic scaling in Amazon EMR </description>
    </item>
    
    <item>
      <title>Redshift Data Ingestion from S3</title>
      <link>https://eric.nz/posts/aws-redshift-data-ingestion-from-s3/</link>
      <pubDate>Fri, 25 May 2018 06:01:42 +0000</pubDate>
      
      <guid>https://eric.nz/posts/aws-redshift-data-ingestion-from-s3/</guid>
      <description>S3 -&amp;gt; COPY -&amp;gt; Redshift Staging Database -&amp;gt; Redshift Database
Reference Data Engineering in S3 and Redshift with Python Amazon redshift: bulk insert vs COPYing from s3 </description>
    </item>
    
    <item>
      <title>Upload Files to S3 Bucket</title>
      <link>https://eric.nz/posts/aws-upload-files-to-s3-with-boto3/</link>
      <pubDate>Wed, 23 May 2018 01:16:06 +0000</pubDate>
      
      <guid>https://eric.nz/posts/aws-upload-files-to-s3-with-boto3/</guid>
      <description>Uploading local files to AWS S3 with boto3 is quite straight forward.
You can install the AWS python SDK boto3 via
1 pip install boto3 Before any implementation, please make sure you have enough permission to interactive with S3.
In order to upload file to S3, you can do something like the the following
1 2 3 4 import boto3 s3res = boto3.resource(&amp;#34;s3&amp;#34;, region=&amp;#34;us-east-1&amp;#34;) s3.meta.client.upload_file(&amp;#34;&amp;lt;LOCAL_FILE_PATH&amp;gt;&amp;#34;, &amp;#34;&amp;lt;YOUR_BUCKET&amp;gt;&amp;#34;, &amp;#34;&amp;lt;YOUR_KEY&amp;gt;&amp;#34;) For example, you can use the above snippet like</description>
    </item>
    
    <item>
      <title>Understand AWS Redshift Query Execution Plan</title>
      <link>https://eric.nz/posts/aws-redshift-query-execution-plan/</link>
      <pubDate>Wed, 09 May 2018 03:56:59 +0000</pubDate>
      
      <guid>https://eric.nz/posts/aws-redshift-query-execution-plan/</guid>
      <description></description>
    </item>
    
    <item>
      <title>2017 AWS Summit Auckland</title>
      <link>https://eric.nz/posts/aws-summit-2017/</link>
      <pubDate>Thu, 01 Jun 2017 01:38:00 +0000</pubDate>
      
      <guid>https://eric.nz/posts/aws-summit-2017/</guid>
      <description>TL;DR There are not many valuable gifts so no need to go early Sponsor&amp;rsquo;s keynote are all like product promoting session Do check the speaker&amp;rsquo;s background before choosing any session If you just want to know technical information, try to avoid product people&amp;rsquo;s talk No need for laptop or notebook, smart phones can handle everything If you want to get more gifts, you need to talk with more sponsors If you find the keynote is boring, don&amp;rsquo;t waste your time Keynotes Modern Data Architecture on AWS / SQL Strikes Back!</description>
    </item>
    
    <item>
      <title>AWS Concept</title>
      <link>https://eric.nz/posts/aws-concept/</link>
      <pubDate>Sun, 07 May 2017 04:49:08 +0000</pubDate>
      
      <guid>https://eric.nz/posts/aws-concept/</guid>
      <description>CloudWatch CloudWatch&amp;rsquo;s Free Tier metric update frequency is 5 minutes In the Detailed monitoring data available for your EBS volumes, provisioned IOPS volumes automatically send 1 minute metrics to CloudWatch. EBS EC2 ec2-revoke RevokeSecurityGroupIngress means remove one or more rules from a security group. The value you specify in the revoke request must be existing rule&amp;rsquo;s value for the rule to be removed. ec2-create-group CreateSecurityGroup means create a security group for use with your account.</description>
    </item>
    
    <item>
      <title>Unable to SSH AWS EC2 Instance</title>
      <link>https://eric.nz/posts/aws-unable-to-ssh-ec2/</link>
      <pubDate>Tue, 13 Dec 2016 19:26:50 +0000</pubDate>
      
      <guid>https://eric.nz/posts/aws-unable-to-ssh-ec2/</guid>
      <description>Yesterday when I tried to ssh to remote EMR cluster, it raised this problem
1 2 3 4 5 6 7 8 9 10 11 12 13 14 [ec2-user@ds-uat-airflow1 ~]$ ssh -i ~/YOUR_SECRET.pem hadoop@ip-YOUR_IP_ADDRESS.us-west-2.compute.internal @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that a host key has just been changed.</description>
    </item>
    
  </channel>
</rss>
