“I’ve heard there are several ways to operate AWS, such as the console, the CLI, and SDKs. I remember the names, but I can’t tell which one to use when.”
“What’s the difference between CloudFormation and IaC? The names are similar and I keep mixing them up.”
These are places where people who have just started learning AWS often get stuck. The answer to the first is “every method goes through an API in the end. What differs is whether a person operates a screen, whether you repeat a procedure, whether an app uses it, or whether you build from a blueprint.” The answer to the second is “IaC is an idea; CloudFormation is the IaC service that AWS provides.” In this article, we use an example company that runs an e-commerce site to look at four ways of operating AWS in turn.
This article is Lecture 3, Part 4 of the AWS Certified Cloud Practitioner (exam code CLF-C02; “CLF” below) exam prep course. It covers ways to access AWS. Note that this series is not an official AWS resource. Exam information is as of October 26, 2026 and may change, so check the official AWS pages before you take the exam.
- Ways to operate AWS ◎
- What is an API? ◎
- AWS Management Console ◎
- AWS CLI ◎
- AWS SDK ◎
- What is Infrastructure as Code (IaC)? ◎
- AWS CloudFormation ◎
- A template example ○
- Benefits of IaC ◎
- One-time tasks and repeated tasks ◎
- Choosing by situation
- Think about it
- Summary
- The AWS Cloud Practitioner Exam Prep series (103 parts)
Ways to operate AWS ◎
In this course, we divide the ways to operate AWS into four.
- AWS Management Console: the operating screen you use in a browser
- AWS CLI: a command line interface, a tool that operates AWS with text commands
- AWS SDK: a collection of building blocks for using AWS from inside a program
- IaC (Infrastructure as Code): a way of writing a blueprint as code and building from it
Every method, in the end, asks the AWS service to do something through an API (a window through which programs exchange requests in an agreed format). Whether it comes from a screen or from a command, it is the same request to the same API from AWS’s point of view. Even though the methods differ, what they can do rests on the same foundation.

As in the diagram, all four methods reach AWS services through the API. There is no line that connects the console directly to AWS services without going through the API.
Key points of this section:
- Four ways: screen, command, program, and code
- Every method goes through an API in the end
- Each has strengths and weaknesses, so choose by situation
What is an API? ◎
An API (Application Programming Interface) is a window through which programs exchange requests in an agreed format.
For example, when you send AWS a request such as “start one server” or “save this file” in the agreed format, AWS carries it out and returns the result. Operations on AWS services are provided as APIs.
The console, the CLI, and SDKs are tools for calling this API. From AWS’s point of view, all of them are treated as API calls. You can also call the API directly, but you usually go through a tool that is easier to use. CloudFormation, an IaC service, also calls the API on your behalf, according to what is written in the template.
Key points of this section:
- An API is a window for requests between programs
- Operations on AWS services are provided as APIs
- The console, the CLI, and SDKs are tools for calling the API
Source (as of October 26, 2026): The AWS introductory page Getting Started with AWS Cloud Essentials says that creating, deleting, and changing AWS resources uses API calls to AWS, and lists the Management Console, the AWS CLI, and AWS SDKs as ways to make those calls.
AWS Management Console ◎
The AWS Management Console (the “console” below) is an operating screen that you use in a browser. You can choose a service while looking at the screen, enter settings, create resources (a general term for the servers, data containers, and so on that you create on AWS), and check their status.
You can use it without learning commands, so it suits situations like these.
- Trying a service for the first time
- Checking the current state with your own eyes
- Doing a task you rarely perform
On the other hand, it is not suited to keeping the same procedure in a file and repeating it; doing it many times takes effort, and human mistakes are more likely.
There is one more thing to watch for. In the console you choose a Region to work in, so if you have a different Region open, the things you created may not be visible. When you think “I created it, but I can’t find it,” first check which Region you have open.
AWS CloudShell (reference; out of scope for the exam) is a service that lets you use commands from a browser, and it is on the exam guide’s list of out-of-scope services.
Key points of this section:
- A screen used in a browser. Suited to trying things and checking
- Not suited to keeping a procedure and repeating it
- When you use it, check the current Region
AWS CLI ◎
The AWS CLI is a tool that operates AWS with commands (text instructions). Its official name is the AWS Command Line Interface.
- What it is: A tool that operates AWS with commands (text instructions). The official name is the AWS Command Line Interface
- Where it works: Works on Windows, macOS, and Linux
- Command format: Written in the form
aws <service> <operation> - Repeatable: If you save commands in a file (a script), you can run the same task with the same procedure as many times as you like
- Version: The current AWS CLI is version 2
- Needs authentication: Running it requires credentials. How to handle and protect them is in the “Passwords, MFA, and access keys” section of Lecture 10, Part 6
Here is an example command.
aws ec2 describe-regions
This example is a command that outputs a list of the Regions you can use (ec2 is the service name and describe-regions is the operation name). It works the same in PowerShell. To run it, you need a Region and authentication settings (authentication is in Lecture 10, Part 6).
The strength of the CLI is that you can put commands in a script and run the same task with the same procedure as many times as you like.
Source (as of October 26, 2026): describe-regions (AWS CLI Command Reference)
The “Ways to access AWS: console, CLI, SDK, and IaC” section of Cloud Fundamentals, Part 2 (“The Big Picture of AWS”) also covers the four methods. It has CLI command examples and CloudShell too, and is for readers who want to know more (it goes beyond the scope of the exam).
Key points of this section:
- A tool that operates AWS with commands. Works on Windows, macOS, and Linux
- The form is
aws <service> <operation>. You can put it in a script and repeat it - The current AWS CLI is version 2. Running it requires credentials (Lecture 10, Part 6)
AWS SDK ◎
An AWS SDK (Software Development Kit) is a collection of building blocks for using AWS, provided for each programming language. It lets you call AWS services from inside your own app’s program.
The kit takes over the finer chores of sending requests to AWS (the authentication procedure, retrying when something fails, and so on). For example, an e-commerce company’s app uses it to save product images to Amazon S3.
Supported languages include Java, Python, JavaScript, Go, and .NET, and you can check the full list on the official pages. If the console and the CLI are operations by a person, an SDK is a way for an app to use AWS automatically.
Key points of this section:
- Building blocks for AWS, provided for each programming language
- Use AWS services from inside an app
- Check the list of supported languages on the official pages
What is Infrastructure as Code (IaC)? ◎
Infrastructure as Code (IaC) is a way of writing the shape of your infrastructure (servers, networks, and so on) in a code file and building the environment from that file.
Instead of operating the screen by hand and building things one at a time, you can build the same shape as many times as you want from code that serves as the blueprint. For example, if an e-commerce company builds its development, test, and production environments by hand, differences in procedure can make the environments drift apart. If they are built from a code file, the three environments can be kept in the same shape. Because the blueprint is a file, you can also keep a history of changes and review it.
The IaC service that AWS provides is AWS CloudFormation. That is the second question at the top of this article. IaC is an idea (a method), and CloudFormation is the IaC service that AWS provides.

Key points of this section:
- Write the shape of the infrastructure in a code file
- Build the same thing many times from a blueprint
- AWS’s IaC is CloudFormation
The “Infrastructure as Code (IaC)” section of Cloud Fundamentals, Part 12 (“Operations, Monitoring, and Cost, Part 2”) covers IaC tools other than CloudFormation as well. It is for readers who want to know more (it goes beyond the scope of the exam).
AWS CloudFormation ◎
AWS CloudFormation is an IaC service that creates AWS resources together.
The blueprint that describes what you want to build is called a template, and you write it as a text file in JSON or YAML. When you give the template to CloudFormation, the resources it describes are created together, and that one group is called a stack. A stack is treated as one unit, so you can change it together and delete it together.
CloudFormation is not a service for hosting apps; it is a service that creates resources from a blueprint of the infrastructure.

Key points of this section:
- Give it a template and it creates the resources together
- The group it creates is a stack
- You can change and delete by stack
A template example ○
What does a template look like? Here is a short example. This section is marked ○, so it is enough to get a feel for how to read it.
AWSTemplateFormatVersion: "2010-09-09"
Resources:
MyBucket:
Type: AWS::S3::Bucket
Properties:
BucketName: example-bucket
Let’s read it line by line.
- The first line:
AWSTemplateFormatVersionindicates the version of the template format - Resource name: Under
Resourcesyou list what to create.MyBucketis a name used inside the template, and you decide it yourself - Type:
Typepoints to what to create.AWS::S3::Bucketis an S3 bucket (a container for data; S3 is covered in Lecture 5, Part 3) - Settings: Settings go in
Properties. In this example, only the bucket’s name (BucketName)
Note: A bucket name must be globally unique, so you decide it yourself. AWS Cloud Development Kit (AWS CDK) (reference) is a tool for writing in code and building with CloudFormation. Source (as of October 26, 2026): CloudFormation concepts (User Guide)
Key points of this section:
- A template lists what to create under
Resources Typegives the kind, andPropertiesgives the settings- AWS CDK (reference) is a tool for writing in code and building with CloudFormation
Benefits of IaC ◎
What is good about using IaC? The benefits are as follows.
- You can build the same environment any number of times (reproducibility): You can rebuild the same shape of environment from the same template
- Fewer manual mistakes: Missed steps and mistyped settings are less likely
- Less drift between environments: It is easier to keep development, test, and production in the same shape
- Changes can be recorded and reviewed: Because the blueprint is a file, you can keep and review when and what you changed
- You can delete everything together: If you delete the stack, you can clean up everything it created at once
- A form of automation: This applies the idea from Lecture 2, reducing manual work through automation, to creating infrastructure
The last point is the idea you saw in the “Benefits of automation” section of Lecture 2, Part 3.
Note: Drift between environments is when manual changes make environments diverge from one another; AWS’s explanation calls this “configuration drift.” When you delete a stack, resources set to be retained may remain, and an S3 bucket that still has contents can fail to delete. Source: AWS’s explanation of IaC (What is Infrastructure as Code?) (as of October 26, 2026).
Key points of this section:
- Reproducibility, fewer mistakes, and preventing drift
- Recording changes, and deleting together
- A form of automation that reduces manual work
One-time tasks and repeated tasks ◎
Among the four methods, rather than one being right, each has strengths and weaknesses. The table below organizes them by example task.
| Example task | Method that suits it | Reason |
|---|---|---|
| Try something first, or check what is there | Console | You can proceed while looking at the screen, which suits a one-time task |
| Perform a fixed operation many times | CLI script | You can line up commands and repeat the same procedure |
| Use AWS from an app | SDK | You can call the API from inside a program |
| Build the same environment many times, or build it in the same shape in multiple Regions | IaC (CloudFormation) | You can reproduce the same shape from a blueprint |
Note: The exam guide skill “Evaluating requirements to determine whether to use one-time operations or repeatable processes” is what this series calls “one-time tasks” and “repeated tasks.” Rather than one method being the right answer, it comes down to strengths and weaknesses. A common flow is to try it in the console first, and move to the CLI or IaC once it becomes a repeated task.
Key points of this section:
- To try or check, use the console
- To repeat, use a CLI script; to build the same environment, use IaC
- To use AWS from an app, use an SDK
Choosing by situation
Let’s think about which method to choose in situations at an example company that runs an e-commerce site.
| Situation (an e-commerce company) | Method to choose | Reason |
|---|---|---|
| Try a new service on the screen | Console | You can try it once while looking |
| Repeat the same task every night | CLI script | You can line up commands and repeat them as written |
| Save product images from the company’s own app | SDK | You can call S3 from inside the app |
| Build the same environment in Tokyo (ap-northeast-1) and Osaka (ap-northeast-3) | IaC (CloudFormation) | You can use the same template in two Regions |
Note: There is also a service called AWS Elastic Beanstalk, where you just place your app and the service takes care of preparing the environment. CloudFormation is a blueprint for infrastructure, while Elastic Beanstalk is on the side where you place the app; they are different things. Elastic Beanstalk is covered in the “AWS Elastic Beanstalk” section of Lecture 4, Part 5.
Key points of this section:
- To try on the screen, use the console; to repeat every night, use a CLI script
- To save from an app, use an SDK; to build the same environment in multiple Regions, use IaC
- CloudFormation is a blueprint for infrastructure; Elastic Beanstalk is on the side where you place the app
Think about it
- Explain the situation “We wanted to build the environment we made in the console again in the same shape. We couldn’t remember the steps, and ended up with slightly different results” by describing what we should have used, in IaC terms.
- Explain “What is an API?” and “How do the console, the CLI, and SDKs each relate to the API?” to a friend who is touching AWS for the first time.
- For the situation “do the same task at a set time every night” and the situation “save product images from the company’s own app,” explain which method suits each, with reasons.
Hint: For 1, review the “What is Infrastructure as Code (IaC)?” and “Benefits of IaC” sections. For 2, review the “Ways to operate AWS” and “What is an API?” sections. For 3, review the “One-time tasks and repeated tasks” and “Choosing by situation” sections.
Summary
- There are four ways to operate AWS: the console, the CLI, SDKs, and IaC. Every method goes through an API in the end
- The console is a browser screen. It suits trying and checking; use it after checking the current Region
- The CLI is a tool that operates with commands (currently version 2). You can put it in a script and repeat it. An SDK is a collection of building blocks for using AWS from inside an app
- IaC is a way of writing the shape of infrastructure as code, and AWS’s service for it is CloudFormation. It creates resources together from a template, and the group is called a stack
- The benefits of IaC are reproducibility, fewer mistakes, preventing drift, recording changes, and deleting together
- Choose by strengths and weaknesses. To try first, use the console; to repeat, use CLI scripts or IaC
- CloudFormation is a blueprint for infrastructure, while Elastic Beanstalk is on the side where you place the app; they are different things (covered in Lecture 4, Part 5)
In the next article, Lecture 3, Part 5, we cover the Lecture 3 summary (how to tell things apart in this lecture, key points, references, and a preview of the next lecture).
The AWS Cloud Practitioner Exam Prep series (103 parts)
All 103 parts with a reading guide: AWS Cloud Practitioner Exam Prep
In this group (Lecture 3: Global infrastructure and ways to access AWS (Parts 1–5)):
- Lecture 3, Part 1: The big picture of services (goals of this lecture, about this course, review of the previous lecture, a collection of services, categories, categories and lectures)
- Lecture 3, Part 2: Global infrastructure (Regions, AZs, edge locations, how the three relate and compare, Local Zones, Outposts)
- Lecture 3, Part 3: High availability and multiple Regions (single points of failure, multiple AZs, AZ scope by service, why use multiple Regions, choosing a Region)
- Lecture 3, Part 4: Ways to access AWS (APIs, the console, the CLI, SDKs, IaC, CloudFormation, one-time vs. repeated tasks) (this article)
- Lecture 3, Part 5: Lecture 3 summary (how to tell things apart, key points, references, preview of the next lecture)
This series is the English edition of 【AWS クラウドプラクティショナー試験対策講座】, originally written in Japanese.


コメント