Set Up An AWS Account¶
| Category | Cloud & AWS Networking |
| Status | ✅ Completed |
| Repo | nextwork-set-up-an-aws-account |
| Original NextWork guide | nextwork.ai |
| Proof | Official NextWork write-up: web · PDF |
Learning project
Practice work following a NextWork guide, separate from my production projects.
📚 NextWork learning project. This is a practice project I built while working through NextWork's Set Up An AWS Account guide. It is part of my Learning portfolio and is fully separate from my production projects.
Category: Learning › Cloud & AWS Networking
Status: ✅ Completed
Proof: Official NextWork write-up: web · PDF
Overview¶
This is the first step for every AWS project: get an account and make sure it can never surprise you with a bill. Everything that can be automated (budgets with email alerts, an IAM admin user so root can be locked away, a strong password policy) is Terraform. The human-only steps are in a checklist.
Summary¶
Created a real, dedicated AWS learning account on the Basic (free) support plan with Free Tier usage alerts on. It has an admin IAM user for daily work (not root) and a $50/month budget with email alerts at $5, $20 and $40 actual spend plus a $50 forecast. Root MFA (the secret mission) is left for the account owner to turn on with their own device.
The checks behind this are in docs/verification.txt.
Skills & tools¶
AWS account setup, AWS Budgets, Billing alerts, AWS Free Tier, IAM, MFA, Terraform, moto (AWS mock)
What I built¶
main.tf:aws_budgets_budget($0.01 zero-spend budget plus a $10 monthly budget with an 80% forecast alert), an IAM admin user, and an account password policy.ACCOUNT-CHECKLIST.md: sign-up, support plan, root MFA (secret mission), billing preferences, Free Tier notes.create_budgets.py: the same two budgets via boto3. On the mock, Terraform skips the budget resources because moto's Budgets API lacks calls the provider needs, and this script creates them instead.checks.py: verifies the budgets, admin user, and password policy on the mock. The email-alert notification blocks are covered only byterraform validate.
How to run¶
pip install -r requirements-dev.txt # moto (local AWS mock) + boto3
./local-test.sh # terraform apply against the mock, run checks.py, then destroy
# Real AWS (costs money; use your own IAM user/profile):
terraform init && terraform apply -var alert_email=you@yourdomain.com # mock_endpoint defaults to "" = real AWS
terraform destroy # clean up when done
Verification¶
I ran the verification command on 2026-12-02. The full output is in docs/verification.txt.
PATH=/workspace/nextwork-portfolio/.venv/bin:$PATH TF_PLUGIN_CACHE_DIR=/workspace/nextwork-portfolio/tf-plugin-cache ./local-test.sh
Real AWS deployment (2026-12-02)¶
I set up a real, dedicated AWS learning account for the whole NextWork AWS series, kept separate from everything else I run.
The account was created by hand (sign-up needs a card, a phone code and a person), so this repo's Terraform wasn't applied. Applying it would have duplicated the admin user and budgets that already exist. The evidence below is read from the live account.
Evidence (read from the live account; account ID redacted):
=== REAL AWS ACCOUNT EVIDENCE 2026-12-02 20:04 CST ===
Account created 2026-12-02 (isolated learning account, paid pay-as-you-go plan, Basic support plan).
$ aws sts get-caller-identity --query Arn
arn:aws:iam::<ACCOUNT_ID>:user/nextwork-cli
$ aws iam list-attached-user-policies --user-name nextwork-cli
AdministratorAccess
$ aws budgets describe-budgets
nextwork-50-cap 50.0 USD MONTHLY COST
$ aws budgets describe-notifications-for-budget --budget-name nextwork-50-cap (thresholds are % of $50 -> $5 / $20 / $40 actual, $50 forecast)
ACTUAL GREATER_THAN 10.0 None
ACTUAL GREATER_THAN 40.0 None
ACTUAL GREATER_THAN 80.0 None
FORECASTED GREATER_THAN 100.0 None
$ aws iam get-account-summary (AccountMFAEnabled = root MFA)
0
Free Tier usage alerts: enabled in Billing preferences during sign-up (console setting, no CLI read API).
Teardown¶
Nothing to tear down. The account, the admin IAM user and the budget are the guardrails that every other AWS project in this series relies on.
Cost¶
Estimated cost of the real run: $0.00. The account has a $50/month budget with email alerts at $5, $20 and $40, and the whole AWS series is logged in a private spend ledger.
What isn't done, and why¶
Root-user MFA (the secret mission) needs the account owner's authenticator app or passkey, so I left it for them. The account summary currently shows AccountMFAEnabled = 0.
Original project: https://nextwork.ai/projects/90e42921-e1f4-5c44-8a1f-394b21d79093 · Part of my NextWork Learning portfolio (hub).
Verification output¶
From docs/verification.txt:
$ PATH=/workspace/nextwork-portfolio/.venv/bin:$PATH TF_PLUGIN_CACHE_DIR=/workspace/nextwork-portfolio/tf-plugin-cache ./local-test.sh
Success! The configuration is valid.
Apply complete! Resources: 3 added, 0 changed, 0 destroyed.
admin_user = "nextwork-iam-admin"
budgets = [
"My Zero-Spend Budget",
"Monthly Cost Budget",
]
created budget: My Zero-Spend Budget 0.01 USD/month
created budget: Monthly Cost Budget 10 USD/month
PASS: zero-spend and monthly budgets exist (['Monthly Cost Budget', 'My Zero-Spend Budget'])
PASS: zero-spend budget limit is $0.01/month
PASS: IAM admin user created
PASS: strong password policy (14+ chars, all classes)
ALL 4 CHECKS PASSED
[exit code 0]