<?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: LADY CLOUD</title>
    <description>The latest articles on DEV Community by LADY CLOUD (@hpjm3018).</description>
    <link>https://dev.to/hpjm3018</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4282345%2F646a0f1a-428a-4ad0-86d0-7befc721ddc0.jpg</url>
      <title>DEV Community: LADY CLOUD</title>
      <link>https://dev.to/hpjm3018</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hpjm3018"/>
    <language>en</language>
    <item>
      <title>How to get 100$ +100$ for inscription in your AWS account.</title>
      <dc:creator>LADY CLOUD</dc:creator>
      <pubDate>Sun, 06 Dec 2026 17:33:35 +0000</pubDate>
      <link>https://dev.to/hpjm3018/how-to-get-100-100-for-inscription-in-your-aws-account-m4c</link>
      <guid>https://dev.to/hpjm3018/how-to-get-100-100-for-inscription-in-your-aws-account-m4c</guid>
      <description>&lt;p&gt;When you create a new AWS account today, AWS gives you &lt;strong&gt;$100 in credits right away&lt;/strong&gt;. What many beginners don't know is that you can earn &lt;strong&gt;another $100&lt;/strong&gt; by completing five small hands-on activities in the console, at &lt;strong&gt;$20 each&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4gqjzs197r4w1ayqak3f.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4gqjzs197r4w1ayqak3f.png" alt=" " width="800" height="403"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I just finished this "mission" and my console shows &lt;strong&gt;$200.00 USD of credits remaining&lt;/strong&gt;. In this article I share exactly what I did, in the order I did it, plus the concepts I learned along the way  and, more importantly, &lt;strong&gt;why&lt;/strong&gt; each step matters.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;⚠️ &lt;strong&gt;Rules to know before you start&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The offer is for &lt;strong&gt;new AWS customers only&lt;/strong&gt; (one account per person).&lt;/li&gt;
&lt;li&gt;The Free plan lasts &lt;strong&gt;6 months&lt;/strong&gt; or until your credits run out.&lt;/li&gt;
&lt;li&gt;Credits expire &lt;strong&gt;12 months&lt;/strong&gt; after account creation.&lt;/li&gt;
&lt;li&gt;If your account joins an AWS Organization, you &lt;strong&gt;lose the remaining credits&lt;/strong&gt; and can no longer earn new ones.&lt;/li&gt;
&lt;li&gt;Credits are &lt;strong&gt;consumption credits&lt;/strong&gt;, not cash: you cannot withdraw them.&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Table of contents
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Secure your account first&lt;/li&gt;
&lt;li&gt;Check your plan, region and credits&lt;/li&gt;
&lt;li&gt;The 5 activities ($20 each)&lt;/li&gt;
&lt;li&gt;Bonus: DynamoDB, a quick NoSQL detour&lt;/li&gt;
&lt;li&gt;Result&lt;/li&gt;
&lt;li&gt;Clean-up checklist&lt;/li&gt;
&lt;li&gt;Comprehension questions (test yourself)&lt;/li&gt;
&lt;li&gt;Conclusion&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Secure your account first
&lt;/h2&gt;

&lt;p&gt;Before chasing credits, &lt;strong&gt;lock the door&lt;/strong&gt;. This part does not give you money, but it is the most important.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Why first?&lt;/strong&gt; The root account owns everything: billing, credits, and the ability to create or delete any resource. If it is compromised, the attacker can spend your credits. Security before optimization.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  1. Enable MFA on the root account
&lt;/h3&gt;

&lt;p&gt;I registered an &lt;strong&gt;authenticator app&lt;/strong&gt; by scanning the QR code shown by AWS.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;What is MFA?&lt;/strong&gt; Multi-Factor Authentication adds a second proof of identity on top of your password. The password is "something you know"; the MFA device is "something you have". AWS recommends MFA on the root account  it is not optional in practice.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;How do you confirm it worked?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;In the security settings, a device now appears in the *&lt;em&gt;Multi-factor authentication *&lt;/em&gt; section.&lt;/li&gt;
&lt;li&gt;On the next sign-in, AWS asks for the MFA code &lt;strong&gt;after&lt;/strong&gt; the password.&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;A window left open during enrollment is &lt;strong&gt;not&lt;/strong&gt; proof. You must see the confirmation &lt;strong&gt;on the AWS side&lt;/strong&gt;.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  2. Create an IAM user for daily work
&lt;/h3&gt;

&lt;p&gt;Your &lt;strong&gt;AWS account 'root'&lt;/strong&gt; and an &lt;strong&gt;IAM user&lt;/strong&gt; are not the same thing:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Root account&lt;/th&gt;
&lt;th&gt;IAM user&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;What it is&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;The owner of the AWS account&lt;/td&gt;
&lt;td&gt;A separate identity inside the account&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Permissions&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Everything&lt;/td&gt;
&lt;td&gt;Only what its policies allow&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;MFA&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Its own&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Must be configured separately&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Recommended use&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Setup, billing, emergencies&lt;/td&gt;
&lt;td&gt;Daily work, labs, automation&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Why a separate IAM user?&lt;/strong&gt; The root account is too powerful to use every day. If you click the wrong button as root, there is no guardrail. An IAM user with limited permissions is a &lt;strong&gt;safety net&lt;/strong&gt;: it can only do what its policies allow.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fojff1h40qkdijzhypm7v.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fojff1h40qkdijzhypm7v.png" alt=" " width="799" height="408"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Enabling MFA on root does &lt;strong&gt;not&lt;/strong&gt; give MFA to your IAM users. Each IAM user is a distinct identity and must set up its own.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Common mistake:&lt;/strong&gt; typing the root email in the "IAM username" field. That fails, because the IAM username is &lt;code&gt;yourname-labs&lt;/code&gt;, not your email.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Why &lt;code&gt;PowerUserAccess&lt;/code&gt; is perfect for labs
&lt;/h3&gt;

&lt;p&gt;I attached the &lt;code&gt;PowerUserAccess&lt;/code&gt; managed policy to my IAM user. Its philosophy is simple:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Allow the use of resources, deny the management of identities.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That's exactly what labs need: you can create EC2 instances, databases, functions… but you &lt;strong&gt;cannot create IAM roles&lt;/strong&gt;, because roles belong to identity management.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fu3td9vh9vez1kcy6fvmm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fu3td9vh9vez1kcy6fvmm.png" alt=" " width="800" height="309"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Check your plan, region and credits
&lt;/h2&gt;

&lt;p&gt;Go to &lt;strong&gt;Billing and Cost Management&lt;/strong&gt; home. There you see:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Your plan&lt;/strong&gt;: Free or Paid. It defines how you'll be billed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Credits&lt;/strong&gt;: money you can spend on AWS services. They are &lt;strong&gt;not&lt;/strong&gt; withdrawable as cash.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Allocated vs remaining credits&lt;/strong&gt;: &lt;em&gt;allocated&lt;/em&gt; is what AWS granted you; &lt;em&gt;remaining&lt;/em&gt; is what's left after usage. At the start, both are equal.&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Three numbers to keep separate&lt;/strong&gt; :&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Credits allocated&lt;/strong&gt; ; what AWS granted ($100 sign-up + $20 per activity).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Credits still expected&lt;/strong&gt;;  activities you have not completed yet.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Remaining balance&lt;/strong&gt; ; what is actually left to spend right now.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A $198 remaining balance after $200 allocated does &lt;strong&gt;not&lt;/strong&gt; mean a reward is missing , it usually means you consumed $2 of services. Always read the &lt;strong&gt;detail of allocations&lt;/strong&gt;, not just the big number at the top.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Also note your &lt;strong&gt;region&lt;/strong&gt;. Mine was &lt;code&gt;us-east-1&lt;/code&gt; (N. Virginia).&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;What is a region?&lt;/strong&gt; A physical geographic location where AWS runs data centers (e.g. &lt;code&gt;us-east-1&lt;/code&gt; = N. Virginia, &lt;code&gt;eu-west-3&lt;/code&gt; = Paris). &lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;EC2 instances and many other resources &lt;strong&gt;live in a region&lt;/strong&gt;: if you switch regions in the console, you won't see them. A region is &lt;strong&gt;not&lt;/strong&gt; a difficulty level.&lt;/p&gt;




&lt;h2&gt;
  
  
  The 5 activities $20 each
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Activity 1 . Create a cost budget "+$20"
&lt;/h3&gt;

&lt;p&gt;This is the &lt;strong&gt;first one to do&lt;/strong&gt;, because it protects you during the others.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Template:&lt;/strong&gt; &lt;code&gt;Zero spend budget&lt;/code&gt; → you get an alert as soon as spending exceeds &lt;strong&gt;$0.01&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Recipients:&lt;/strong&gt; I added my root email and my personal email.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Why email verification?&lt;/strong&gt; AWS needs to confirm the address is reachable and that you agree to receive alerts.&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;What is a budget?&lt;/strong&gt; A monitoring setting: it &lt;strong&gt;alerts&lt;/strong&gt; you when cost crosses a threshold.&lt;br&gt;
It does &lt;strong&gt;not&lt;/strong&gt; automatically stop resources. AWS does offer &lt;em&gt;Budget Actions&lt;/em&gt; that can stop resources, but that is a separate feature  not required for this activity.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;If the budget exists but the $20 credit doesn't show up, check two things:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Did you actually &lt;strong&gt;confirm the email addresses&lt;/strong&gt;?&lt;/li&gt;
&lt;li&gt;Is the budget status active / &lt;strong&gt;verified&lt;/strong&gt;?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ft7sjlzidy3yuqera502p.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ft7sjlzidy3yuqera502p.png" alt=" " width="799" height="270"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Credits can take up to ~30 minutes to appear.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Why a zero-spend budget first?&lt;/strong&gt; Because the other four activities create real  resources. The budget is your smoke detector: it tells you if something is silently costing money.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Activity 2 . Launch an EC2 instance  "+$20"
&lt;/h3&gt;

&lt;p&gt;Three building blocks to understand:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;AMI&lt;/strong&gt;  the starting operating system image of the server.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Instance type&lt;/strong&gt;  the virtual hardware: vCPUs, memory, network performance.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Volume (EBS)&lt;/strong&gt;  the disk the system boots from. &lt;strong&gt;This is the one that contains the system data.&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;My instance ran in &lt;code&gt;us-east-1&lt;/code&gt;. I did &lt;strong&gt;not open SSH&lt;/strong&gt;: the instance had no public IP, so port 22 would be useless, and an unused open port is just an attack surface.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Why no SSH?&lt;/strong&gt; Security by default: don't open a port you don't use. An open port is a door; a closed one is a wall.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Stop vs Terminate:&lt;/strong&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Action&lt;/th&gt;
&lt;th&gt;What happens&lt;/th&gt;
&lt;th&gt;Billing&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Stop&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;The instance is turned off; its disk still exists&lt;/td&gt;
&lt;td&gt;The disk can still cost money&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Terminate&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;The instance is deleted permanently&lt;/td&gt;
&lt;td&gt;Instance billing stops; &lt;strong&gt;check for orphan EBS volumes&lt;/strong&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;After terminating, check in &lt;strong&gt;EC2 → Volumes&lt;/strong&gt; that no orphan EBS volume is left behind.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fismviyqei3v9xaibna3u.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fismviyqei3v9xaibna3u.png" alt=" " width="800" height="414"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;What is an orphan EBS volume?&lt;/strong&gt; A disk that is no longer attached to any instance. It still exists until you delete it. Terminating an instance does &lt;strong&gt;not&lt;/strong&gt; always delete its volumes it depends on the &lt;em&gt;Delete on termination&lt;/em&gt; flag.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fj5j1x8rc63di80y5dx2t.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fj5j1x8rc63di80y5dx2t.png" alt=" " width="800" height="267"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Activity 3 . Create a web app with AWS Lambda +$20
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Runtime:&lt;/strong&gt; &lt;code&gt;nodejs22.x&lt;/code&gt; (Node.js 22 is a current LTS runtime at the time of writing)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Execution role:&lt;/strong&gt; a role that Lambda assumes to run the code.&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;IAM user vs Lambda execution role:&lt;/strong&gt; an IAM user is a &lt;strong&gt;permanent&lt;/strong&gt; identity meant for humans. The execution role is a &lt;strong&gt;temporary&lt;/strong&gt; identity assumed by the Lambda service itself to call other AWS services on your behalf.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F72c40qheklwukmu625i7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F72c40qheklwukmu625i7.png" alt=" " width="800" height="200"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;What is &lt;code&gt;iam:PassRole&lt;/code&gt;?&lt;/strong&gt; It's the permission that lets an identity "hand over" a role to an AWS service. Without it, you can't attach an execution role to a function. You should restrict it to &lt;strong&gt;one role&lt;/strong&gt; and to the &lt;strong&gt;Lambda service&lt;/strong&gt; only, to prevent privilege escalation.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkfs5mq9md28w6qmlaygz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkfs5mq9md28w6qmlaygz.png" alt=" " width="799" height="309"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Why did I use root for the role?&lt;/strong&gt; Because &lt;code&gt;PowerUserAccess&lt;/code&gt; &lt;strong&gt;cannot create IAM roles&lt;/strong&gt;. That is the whole point of this policy: use resources, don't manage identities. So I created the role and policy with the root account "with MFA", then went back to the IAM user for the Lambda itself.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;How the Function URL triggers the code:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;A client sends an HTTP request to the URL.&lt;/li&gt;
&lt;li&gt;Lambda wraps it into a JSON event .&lt;/li&gt;
&lt;li&gt;The runtime passes the event to your handler, which runs your logic.&lt;/li&gt;
&lt;li&gt;The return value is converted into an HTTP response and sent back.&lt;/li&gt;
&lt;/ol&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;What is a Function URL?&lt;/strong&gt; A dedicated HTTPS endpoint for a Lambda function. It removes the need for API Gateway for simple use cases.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The &lt;strong&gt;Deploy&lt;/strong&gt; button publishes your code changes to the live environment. Without it, the URL keeps running the old version.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Auth type:&lt;/strong&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Type&lt;/th&gt;
&lt;th&gt;Meaning&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;NONE&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;No IAM authentication; anyone with the URL can call it (you still need a resource-based policy allowing public invocation).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;AWS_IAM&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Each request must be signed with SigV4, and the caller needs &lt;code&gt;lambda:InvokeFunctionUrl&lt;/code&gt; and &lt;code&gt;lambda:InvokeFunction&lt;/code&gt;, otherwise it gets a &lt;code&gt;403&lt;/code&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fq05a3yq2i2jcsapgcfys.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fq05a3yq2i2jcsapgcfys.png" alt=" " width="800" height="329"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;What is SigV4?&lt;/strong&gt; Signature Version 4 is AWS's signing protocol: every request is cryptographically signed with the caller's credentials, so AWS can verify identity without a password in the request.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Activity 4 . Create a database with Aurora &amp;amp; RDS "+$20"
&lt;/h3&gt;

&lt;p&gt;My choices:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Engine:&lt;/strong&gt; MySQL &lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Class:&lt;/strong&gt; &lt;code&gt;db.t4g.micro&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Deployment:&lt;/strong&gt; Single-AZ "one instance, no cluster, no replica"&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;RDS vs Aurora:&lt;/strong&gt; RDS is the managed service for classic engines "MySQL, PostgreSQL, MariaDB, Oracle, SQL Server". Aurora is AWS's own MySQL/PostgreSQL-compatible engine, faster but more expensive. For a credit activity, &lt;strong&gt;RDS MySQL&lt;/strong&gt; is the cheaper, simpler choice.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What does RDS handle?&lt;/strong&gt; The infrastructure administration: provisioning, backups, updates, patching, failover. MySQL itself stores and serves the data. You manage the schema and queries; AWS manages the server.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is Single-AZ vs Multi-AZ?&lt;/strong&gt; Single-AZ = one instance in one availability zone. Multi-AZ = a standby replica in another AZ . For a credit activity, Single-AZ is enough.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fz1r4um4y1jjgbrwj70i1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fz1r4um4y1jjgbrwj70i1.png" alt=" " width="800" height="337"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Public access stays disabled&lt;/strong&gt; because the goal here is only to create the database and see it reach the &lt;strong&gt;Available&lt;/strong&gt; status, not to connect to it from the internet.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Why disable public access?&lt;/strong&gt; A publicly reachable database is a target. If you don't need to connect from outside the VPC, don't expose it. This is the same "closed door" principle as the SSH port.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fogt2kqongrkprh3dabwh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fogt2kqongrkprh3dabwh.png" alt=" " width="800" height="337"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Delete the database when you're done (and decline the final snapshot if you don't need it).&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Why decline the final snapshot?&lt;/strong&gt; A final snapshot is a backup that keeps existing after the database is deleted. If you don't need to restore, skip it.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Activity 5 . Use a foundation model in Amazon Bedrock "+$20"
&lt;/h3&gt;

&lt;p&gt;The last activity is to try a foundation model in the &lt;strong&gt;Amazon Bedrock playground&lt;/strong&gt;: pick a model, send a prompt, read the answer. It takes a few minutes and completes the set.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;What is a foundation model?&lt;/strong&gt; A large pre-trained AI model "text, image, embedding" that you can use via an API without training it yourself. Bedrock is the AWS service that exposes models from several providers "Anthropic, Meta, Amazon, etc." behind a single API.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  Bonus: DynamoDB, a quick NoSQL detour
&lt;/h2&gt;

&lt;p&gt;During the mission I also played with &lt;strong&gt;DynamoDB&lt;/strong&gt; "it doesn't give credits, but it's worth knowing":&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;I created a table with the &lt;strong&gt;partition key&lt;/strong&gt; &lt;code&gt;id&lt;/code&gt;, and stored an item with the value &lt;code&gt;mission-1&lt;/code&gt;. The partition key is what DynamoDB uses to find items.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;NoSQL&lt;/strong&gt; here means a non-relational database built for high availability, scalability and performance, using key-value or document models instead of tables with joins.&lt;/li&gt;
&lt;li&gt;Vocabulary: a &lt;strong&gt;table&lt;/strong&gt; groups data of the same set, an &lt;strong&gt;item&lt;/strong&gt; is one record, an &lt;strong&gt;attribute&lt;/strong&gt; is one field of that record.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4afw3g2rcmz6fsscfi0k.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4afw3g2rcmz6fsscfi0k.png" alt=" " width="800" height="165"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Why a partition key?&lt;/strong&gt; DynamoDB distributes data across physical partitions based on the partition key's hash. A good key spreads reads/writes evenly. A bad key creates a "hot partition" and throttles.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ft16v0xpf2c75ktyq5in9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ft16v0xpf2c75ktyq5in9.png" alt=" " width="800" height="165"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Why mention DynamoDB in an article about credits?&lt;/strong&gt; Because the mission's goal is to touch the real basics of AWS compute (EC2, Lambda), data (RDS, DynamoDB), AI (Bedrock), identity (IAM), and cost control (Budgets). DynamoDB is the natural "NoSQL" complement to RDS.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  Result
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Activity&lt;/th&gt;
&lt;th&gt;Credits&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Sign-up&lt;/td&gt;
&lt;td&gt;$100&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AWS Budgets&lt;/td&gt;
&lt;td&gt;$20&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Amazon EC2&lt;/td&gt;
&lt;td&gt;$20&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AWS Lambda&lt;/td&gt;
&lt;td&gt;$20&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Amazon RDS&lt;/td&gt;
&lt;td&gt;$20&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Amazon Bedrock&lt;/td&gt;
&lt;td&gt;$20&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Total allocated&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;$200&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;My Console Home now shows &lt;strong&gt;$200.00 USD remaining&lt;/strong&gt; and &lt;strong&gt;182 days&lt;/strong&gt; left on the Free plan, with &lt;strong&gt;$0.00&lt;/strong&gt; spent this month.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Reminder:&lt;/strong&gt; "allocated" ≠ "remaining". If you see $198 remaining, read the &lt;strong&gt;Credits detail&lt;/strong&gt; page: it usually means $2 of consumption, not a missing reward. And a $100 budget is a &lt;strong&gt;monitoring amount&lt;/strong&gt;, not a $100 deposit.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  Clean-up checklist
&lt;/h2&gt;

&lt;p&gt;To avoid eating your credits for nothing:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;EC2 instance &lt;strong&gt;terminated&lt;/strong&gt; and no orphan EBS volumes &lt;/li&gt;
&lt;li&gt;RDS database &lt;strong&gt;deleted&lt;/strong&gt;  and final snapshot declined if not needed&lt;/li&gt;
&lt;li&gt;Lambda function deleted &lt;/li&gt;
&lt;li&gt;Zero-spend budget &lt;strong&gt;kept&lt;/strong&gt;  it's your safety net&lt;/li&gt;
&lt;li&gt;IAM role used by Lambda &lt;strong&gt;kept&lt;/strong&gt; &lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Why keep the budget and the role?&lt;/strong&gt; The budget protects future labs. The role is a non-billable identity; deleting it would force you to recreate it next time.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F22lyf8bq2hli7oti7cwh.png" alt=" " width="800" height="276"&gt;
&lt;/h2&gt;

&lt;h2&gt;
  
  
  Comprehension questions +test yourself+
&lt;/h2&gt;

&lt;p&gt;If you followed along, try answering these before moving on. They are the same questions I used to check my own understanding.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;What are your region's name and code? Why does it matter when looking for an EC2 instance?&lt;/li&gt;
&lt;li&gt;What is the difference between the &lt;strong&gt;account plan&lt;/strong&gt;, &lt;strong&gt;credits&lt;/strong&gt;, and &lt;strong&gt;region&lt;/strong&gt;?&lt;/li&gt;
&lt;li&gt;Which MFA type did you register? How do you prove AWS actually attached it?&lt;/li&gt;
&lt;li&gt;If root MFA is enabled, does the IAM user automatically get its own MFA? Explain.&lt;/li&gt;
&lt;li&gt;What is the difference between your &lt;strong&gt;AWS account&lt;/strong&gt; and your &lt;strong&gt;IAM user&lt;/strong&gt;?&lt;/li&gt;
&lt;li&gt;Why does &lt;code&gt;PowerUserAccess&lt;/code&gt; allow labs while still denying IAM role creation?&lt;/li&gt;
&lt;li&gt;What three pieces of information does the IAM login screen ask for &lt;strong&gt;before&lt;/strong&gt; MFA?&lt;/li&gt;
&lt;li&gt;How do you prove you are using the IAM user and not the root account?&lt;/li&gt;
&lt;li&gt;Why can an IAM user still see "Access denied" even with a billing policy?&lt;/li&gt;
&lt;li&gt;Which screen lets you confirm your plan? What is the difference between &lt;strong&gt;allocated&lt;/strong&gt; and &lt;strong&gt;remaining&lt;/strong&gt; credits?&lt;/li&gt;
&lt;li&gt;Which budget template, threshold, and recipient did you configure? What is the email verification for?&lt;/li&gt;
&lt;li&gt;If the budget exists but the credit is missing, what two &lt;strong&gt;separate&lt;/strong&gt; checks should you do?&lt;/li&gt;
&lt;/ol&gt;

&lt;blockquote&gt;
&lt;p&gt;💬 Tell me in the comments which question was the hardest , I'll answer.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;In one session you get &lt;strong&gt;$100 of extra credits&lt;/strong&gt;, but more importantly you touch the real basics of AWS: &lt;strong&gt;identity&lt;/strong&gt; , &lt;strong&gt;cost control&lt;/strong&gt; , &lt;strong&gt;compute&lt;/strong&gt;, &lt;strong&gt;data&lt;/strong&gt; and &lt;strong&gt;AI&lt;/strong&gt;. That's a solid foundation before going further.&lt;/p&gt;

&lt;p&gt;If this helped you, drop a ❤️ and tell me in the comments which activity gave you the most trouble!&lt;/p&gt;

</description>
      <category>aws</category>
      <category>beginners</category>
      <category>tutorial</category>
      <category>cloud</category>
    </item>
  </channel>
</rss>
