Skip to contentমূল লেখায় যান

Topic 15 · DevOps & Cloudটপিক 15 · DevOps & Cloud

AWS Compute and Storage

This page is about three AWS services that a tester meets early: Amazon EC2, Amazon EBS, and Amazon S3. It covers which instance states are billed, what survives a stop and a terminate, and how S3 versioning, lifecycle rules, Block Public Access, and presigned URLs behave. The practice run uses the AWS CLI and needs no AWS account. It comes after Cloud Concepts and before AWS Networking and Delivery.

29 min read29 মিনিটে পড়া যায় · 7 sections7টি সেকশন · 24 sources24টি সোর্স · updated Nov 2026আপডেট: Nov 2026

The instance states that cost moneyযে ইনস্ট্যান্স state-এ খরচ হয়

Move an EC2 instance through its states and watch the compute meter and the disk meter start and stop.একটা EC2 ইনস্ট্যান্সকে তার state-গুলোর ভেতর দিয়ে নিন আর দেখুন কম্পিউট মিটার ও ডিস্ক মিটার কখন চলে, কখন থামে।

2 min2 মিনিট8 steps8টি ধাপ
  • Computeকম্পিউট খরচ$0.00
  • Disk (EBS)ডিস্ক খরচ (EBS)$0.00
  • Stateঅবস্থা (state)pending
attachedযুক্তEC2EC2instanceইনস্ট্যান্সpendingpendingEBSEBS50 GB50 GBroot volumeরুট ভলিউমComputeকম্পিউট$0.00 · 0 hnot billedবিল নেইDiskডিস্ক$0.00 · 0 hbillingবিল চলছে

You’ll learnআপনি শিখবেন

  • Which instance states are billedকোন ইনস্ট্যান্স state-এ বিল হয়
  • Why a stop does not end all coststop করলে কেন সব খরচ থামে না
  • What hibernate savesহাইবারনেট কী সেভ করে
  • What a terminate deletes by defaultterminate by default কী মোছে
  • How a forgotten volume keeps costingভুলে যাওয়া volume কীভাবে খরচ ঘটায়

What it is

Amazon EC2. Amazon Elastic Compute Cloud (Amazon EC2) provides on-demand, scalable computing capacity in the AWS Cloud Source 1সোর্স 1. An EC2 instance is a virtual server in the AWS Cloud Source 1সোর্স 1. The instance type that you specify determines the hardware available to your instance Source 1সোর্স 1. Each instance type offers a different balance of compute, memory, network, and storage resources Source 1সোর্স 1.

Amazon EC2 provides these high-level features Source 1সোর্স 1:

  • Instances. Virtual servers Source 1সোর্স 1.
  • Amazon Machine Images (AMIs). Preconfigured templates for your instances that package the components you need for your server, including the operating system and additional software Source 1সোর্স 1.
  • Instance types. Various configurations of CPU, memory, storage, networking capacity, and graphics hardware for your instances Source 1সোর্স 1.
  • Amazon EBS volumes. Persistent storage volumes for your data Source 1সোর্স 1.
  • Instance store volumes. Storage volumes for temporary data that is deleted when you stop, hibernate, or terminate your instance Source 1সোর্স 1.
  • Key pairs. Secure login information for your instances. AWS stores the public key and you store the private key in a secure place Source 1সোর্স 1.
  • Security groups. A virtual firewall that allows you to specify the protocols, ports, and source IP ranges that can reach your instances Source 1সোর্স 1.

Amazon EBS. Amazon Elastic Block Store (Amazon EBS) provides scalable, high-performance block storage resources that can be used with EC2 instances Source 17সোর্স 17. After you attach a volume to an instance, you can use it in the same way you would use a local hard drive attached to a computer Source 17সোর্স 17. Snapshots are point-in-time backups of EBS volumes that persist independently from the volume itself Source 17সোর্স 17.

Amazon S3. Amazon Simple Storage Service (Amazon S3) is an object storage service Source 10সোর্স 10. It stores data as objects, hierarchical data, or tabular data within buckets Source 10সোর্স 10. An object is a file and any metadata that describes the file. A bucket is a container for objects Source 10সোর্স 10. Each object has a key, which is the unique identifier for the object within the bucket Source 10সোর্স 10. By default, S3 buckets and the objects in them are private Source 10সোর্স 10.

সহজ English

Amazon EC2. Amazon Elastic Compute Cloud (Amazon EC2) gives you computing capacity in the AWS Cloud, on demand, and you can scale it Source 1সোর্স 1. An EC2 instance is a virtual server in the AWS Cloud Source 1সোর্স 1. The instance type that you specify decides the hardware that your instance gets Source 1সোর্স 1. Each instance type offers a different balance of compute, memory, network, and storage resources Source 1সোর্স 1.

Amazon EC2 provides these high-level features Source 1সোর্স 1:

  • Instances. Virtual servers Source 1সোর্স 1.
  • Amazon Machine Images (AMIs). Preconfigured templates for your instances. They package the components you need for your server, including the operating system and additional software Source 1সোর্স 1.
  • Instance types. Various configurations of CPU, memory, storage, networking capacity, and graphics hardware for your instances Source 1সোর্স 1.
  • Amazon EBS volumes. Persistent storage volumes for your data Source 1সোর্স 1.
  • Instance store volumes. Storage volumes for temporary data. The data is deleted when you stop, hibernate, or terminate your instance Source 1সোর্স 1.
  • Key pairs. Secure login information for your instances. AWS stores the public key and you store the private key in a secure place Source 1সোর্স 1.
  • Security groups. A virtual firewall. You use it to specify the protocols, ports, and source IP ranges that can reach your instances Source 1সোর্স 1.

Amazon EBS. Amazon Elastic Block Store (Amazon EBS) provides scalable, high-performance block storage resources that you can use with EC2 instances Source 17সোর্স 17. After you attach a volume to an instance, you can use it in the same way you would use a local hard drive attached to a computer Source 17সোর্স 17. Snapshots are point-in-time backups of EBS volumes. They persist independently from the volume itself Source 17সোর্স 17.

Amazon S3. Amazon Simple Storage Service (Amazon S3) is an object storage service Source 10সোর্স 10. It stores data as objects, hierarchical data, or tabular data within buckets Source 10সোর্স 10. An object is a file and any metadata that describes the file. A bucket is a container for objects Source 10সোর্স 10. Each object has a key, which is the unique identifier for the object within the bucket Source 10সোর্স 10. By default, S3 buckets and the objects in them are private Source 10সোর্স 10.

বাংলা ব্যাখ্যা

Amazon EC2। Amazon Elastic Compute Cloud (Amazon EC2) AWS Cloud-এ চাহিদা অনুযায়ী computing capacity দেয়, আর তা scale করা যায় Source 1সোর্স 1। EC2 instance হলো AWS Cloud-এর একটা virtual server Source 1সোর্স 1। আপনি যে instance type নির্দিষ্ট করেন, সেটাই ঠিক করে আপনার instance কোন hardware পাবে Source 1সোর্স 1। প্রতিটা instance type compute, memory, network আর storage resource-এর আলাদা একটা ভারসাম্য দেয় Source 1সোর্স 1।

Amazon EC2 এই high-level feature-গুলো দেয় Source 1সোর্স 1:

  • Instances। Virtual server Source 1সোর্স 1।
  • Amazon Machine Images (AMIs)। আপনার instance-এর জন্য আগে থেকে সাজানো template। এগুলো আপনার server-এর দরকারি উপাদান একসঙ্গে রাখে, operating system আর বাড়তি software-সহ Source 1সোর্স 1।
  • Instance types। আপনার instance-এর জন্য CPU, memory, storage, networking capacity আর graphics hardware-এর নানা রকম configuration Source 1সোর্স 1।
  • Amazon EBS volumes। আপনার data-র জন্য স্থায়ী storage volume Source 1সোর্স 1।
  • Instance store volumes। সাময়িক data-র জন্য storage volume। আপনি instance stop, hibernate বা terminate করলে data মুছে যায় Source 1সোর্স 1।
  • Key pairs। আপনার instance-এ ঢোকার নিরাপদ তথ্য। AWS public key রাখে, আর আপনি private key নিরাপদ জায়গায় রাখেন Source 1সোর্স 1।
  • Security groups। একটা virtual firewall। এটা দিয়ে আপনি ঠিক করেন কোন protocol, port আর source IP range আপনার instance-এ পৌঁছাতে পারবে Source 1সোর্স 1।

Amazon EBS। Amazon Elastic Block Store (Amazon EBS) scalable, high-performance block storage resource দেয়, যা আপনি EC2 instance-এর সঙ্গে ব্যবহার করতে পারেন Source 17সোর্স 17। একটা volume instance-এ attach করার পর আপনি তা ব্যবহার করতে পারেন ঠিক যেভাবে কম্পিউটারে লাগানো একটা local hard drive ব্যবহার করেন Source 17সোর্স 17। Snapshot হলো EBS volume-এর point-in-time backup। volume-টার থেকে আলাদাভাবে এগুলো টিকে থাকে Source 17সোর্স 17।

Amazon S3। Amazon Simple Storage Service (Amazon S3) একটা object storage service Source 10সোর্স 10। এটা data রাখে bucket-এর ভেতরে, object, hierarchical data বা tabular data হিসেবে Source 10সোর্স 10। object হলো একটা file আর সেই file-কে বর্ণনা করা metadata। bucket হলো object রাখার একটা container Source 10সোর্স 10। প্রতিটা object-এর একটা key আছে, যা bucket-এর ভেতরে ওই object-এর অনন্য পরিচয় Source 10সোর্স 10। by default S3 bucket আর তার ভেতরের object private Source 10সোর্স 10।

How it works

Instance states and billing. An EC2 instance transitions through different states from the moment you launch it through to its termination Source 2সোর্স 2. The states are:

As soon as the instance is running, you're billed for each second, with a one-minute minimum, even if the instance remains idle and you don't connect to it Source 2সোর্স 2. Some AWS resources, such as EBS volumes and Elastic IP addresses, incur charges regardless of the instance's state Source 2সোর্স 2.

Reboot, stop, hibernate, and terminate. You can reboot, stop, hibernate, or terminate an instance, and each one keeps different things.

  • Reboot. Rebooting an instance is equivalent to rebooting an operating system Source 2সোর্স 2. The instance remains on the same host computer. It maintains its public DNS name, private IP address, and any data on its instance store volumes Source 2সোর্স 2.
  • Stop and start. When you stop and start your instance, you lose any data on the instance store volumes attached to the previous host computer Source 2সোর্স 2. The instance gets a new public IPv4 address, unless it has a secondary network interface or a secondary private IPv4 address that is associated with an Elastic IP address Source 2সোর্স 2.
  • Hibernate. The operating system is signaled to perform hibernation (suspend-to-disk), which saves the contents from the instance memory (RAM) to your EBS root volume Source 2সোর্স 2.
  • Terminate. You can't connect to or recover a terminated instance Source 2সোর্স 2. If you enable termination protection, you can't terminate the instance using the console, CLI, or API Source 2সোর্স 2.

The DeleteOnTermination attribute of an EBS volume controls whether the volume is deleted or preserved when you terminate the instance it is attached to. The default is to delete the root volume and preserve any other EBS volumes Source 2সোর্স 2. The table sums up the differences that AWS lists Source 2সোর্স 2:

RebootStop and startHibernateTerminate
Private IPv4 addresskeptkeptkeptnone Source 2সোর্স 2
Elastic IP address (IPv4)stays associatedstays associatedstays associateddisassociated Source 2সোর্স 2
Instance store volumesdata preserveddata eraseddata eraseddata erased Source 2সোর্স 2
Root volumepreservedpreservedpreserveddeleted by default Source 2সোর্স 2
RAM (contents of memory)erasederasedsaved to a file on the root volumeerased Source 2সোর্স 2

Buying EC2 capacity. AWS lists these options to optimize your costs for EC2 Source 4সোর্স 4:

A Spot Instance uses spare EC2 capacity that is available for less than the On-Demand price Source 5সোর্স 5. EC2 terminates, stops, or hibernates your Spot Instance when it needs the capacity back Source 5সোর্স 5. EC2 provides a Spot Instance interruption notice, which gives the instance a two-minute warning before it is interrupted Source 5সোর্স 5. Spot Instances are a cost-effective choice if you can be flexible about when your applications run and if your applications can be interrupted Source 5সোর্স 5. For an On-Demand Instance, if capacity is not available when you make a launch request, you get an insufficient capacity error (ICE) Source 5সোর্স 5.

What you choose at launch: AMI and key pair. An Amazon Machine Image (AMI) is an image that provides the software that is required to set up and boot an EC2 instance Source 3সোর্স 3. You must specify an AMI when you launch an instance Source 3সোর্স 3. The AMI must be compatible with the instance type that you chose Source 3সোর্স 3. An AMI is specific to Region, operating system, processor architecture, root volume type, and virtualization type Source 3সোর্স 3.

A key pair is a set of security credentials that you use to prove your identity when connecting to an EC2 instance Source 8সোর্স 8. Anyone who possesses your private key can connect to your instances that use the key pair Source 8সোর্স 8. Because EC2 doesn't keep a copy of your private key, there is no way to recover a private key if you lose it Source 8সোর্স 8.

User data and instance metadata. When you launch an EC2 instance, you can pass user data that performs automated configuration tasks or runs scripts after the instance starts Source 6সোর্স 6. User data is limited to 16 KB, in raw form, before it is base64-encoded Source 6সোর্স 6. By default, user data scripts and cloud-init directives run only during the boot cycle when you first launch an instance Source 6সোর্স 6. If you create an AMI from an instance, the instance user data is not included in the AMI Source 6সোর্স 6.

A running instance can read its instance metadata through the Instance Metadata Service (IMDS) Source 7সোর্স 7. By default, you can use either IMDSv1 or IMDSv2, or both Source 7সোর্স 7. You can configure the IMDS on each instance to only accept IMDSv2 calls, which will cause IMDSv1 calls to fail Source 7সোর্স 7. IMDSv2 uses session-oriented requests Source 7সোর্স 7. You create a session token that defines the session duration, a minimum of one second and a maximum of six hours Source 7সোর্স 7.

EBS volumes and snapshots. EBS provides multiple volume types that differ in performance characteristics and price Source 19সোর্স 19. SSD-backed volume types include General Purpose SSD and Provisioned IOPS SSD Source 19সোর্স 19. HDD volume types include Throughput Optimized HDD and Cold HDD Source 19সোর্স 19. SSD-backed volumes are optimized for transactional workloads Source 19সোর্স 19. HDD-backed volumes are optimized for large streaming workloads where the dominant performance attribute is throughput Source 19সোর্স 19.

Volume data is automatically replicated across multiple servers in an Availability Zone Source 17সোর্স 17. io2 Block Express volumes provide 99.999% durability. Other volume types provide 99.8% to 99.9% durability Source 17সোর্স 17. You can use Elastic Volumes operations to dynamically increase capacity or tune performance, with no downtime Source 17সোর্স 17.

A snapshot is an incremental backup, which means that AWS saves only the blocks on the volume that have changed since the most recent snapshot Source 18সোর্স 18. AWS does not automatically back up the data stored on your EBS volumes Source 18সোর্স 18. It is your responsibility to create EBS snapshots on a regular basis, or to set up automatic snapshot creation Source 18সোর্স 18.

S3 storage classes, versioning, and lifecycle. Each object in S3 has a storage class associated with it Source 15সোর্স 15. By default, objects are stored in the S3 Standard storage class Source 15সোর্স 15. All of these storage classes offer high durability Source 15সোর্স 15.

Versioning in S3 is a means of keeping multiple variants of an object in the same bucket Source 11সোর্স 11. By default, S3 Versioning is disabled on buckets, and you must explicitly enable it Source 11সোর্স 11. If you delete an object, S3 inserts a delete marker instead of removing the object permanently Source 11সোর্স 11. If you overwrite an object, it results in a new object version in the bucket Source 11সোর্স 11. After you version-enable a bucket, it can never return to an unversioned state, but you can suspend versioning on that bucket Source 11সোর্স 11. Normal S3 rates apply for every version of an object that is stored and transferred Source 11সোর্স 11. Each version of an object is the entire object, not just a diff from the previous version Source 11সোর্স 11.

An S3 Lifecycle configuration is a set of rules that define actions that S3 applies to a group of objects Source 12সোর্স 12. Transition actions define when objects transition to another storage class. Expiration actions define when objects expire Source 12সোর্স 12. S3 deletes expired objects on your behalf Source 12সোর্স 12. When you add a Lifecycle configuration to a bucket, the rules apply to both existing objects and objects that you add later Source 12সোর্স 12. For general purpose buckets, you can't use a bucket policy to prevent deletions or transitions by an S3 Lifecycle rule Source 12সোর্স 12. To keep the permanent delete behavior of an expiration rule after you enable versioning, add a noncurrent expiration configuration Source 11সোর্স 11.

S3 access: Block Public Access and presigned URLs. By default, new buckets, access points, and objects don't allow public access Source 13সোর্স 13. However, users can modify bucket policies, access point policies, or object permissions to allow public access Source 13সোর্স 13. S3 Block Public Access settings override these policies and permissions so that you can limit public access to these resources Source 13সোর্স 13. Block Public Access provides four settings: BlockPublicAcls, IgnorePublicAcls, BlockPublicPolicy, and RestrictPublicBuckets Source 13সোর্স 13. AWS recommends that you turn on all four settings for your account Source 13সোর্স 13. Block public access settings don't alter existing policies or ACLs. So removing a setting makes a bucket or object with a public policy or ACL publicly accessible again Source 13সোর্স 13. S3 doesn't support block public access settings on a per-object basis Source 13সোর্স 13.

You can use presigned URLs to grant time-limited access to objects in S3 without updating your bucket policy Source 14সোর্স 14. The credentials that the URL uses are those of the IAM principal who generated it Source 14সোর্স 14. You can use the presigned URL multiple times, up to the expiration date and time Source 14সোর্স 14. With the S3 console, the expiration time can be set between 1 minute and 12 hours. With the AWS CLI or AWS SDKs, it can be set as high as 7 days Source 14সোর্স 14. S3 checks the expiration date and time of a signed URL at the time of the HTTP request Source 14সোর্স 14. If the connection drops and the client tries to restart the download after the expiration time passes, the download fails Source 14সোর্স 14. In general, a presigned URL expires when the credential that created it is revoked, deleted, or deactivated, even if the URL was created with a later expiration time Source 14সোর্স 14. Presigned URLs are bearer tokens that grant access to those who possess them Source 14সোর্স 14.

S3 consistency. S3 provides strong read-after-write consistency for PUT and DELETE requests of objects in all AWS Regions Source 10সোর্স 10. After a successful PUT, a read (GET or LIST request) returns the data written by the PUT request Source 10সোর্স 10. Bucket configurations have an eventual consistency model Source 10সোর্স 10. If you delete a bucket and immediately list all buckets, the deleted bucket might still appear in the list Source 10সোর্স 10. AWS recommends that you wait for 15 minutes after enabling versioning before issuing write operations on objects in the bucket Source 10সোর্স 10. S3 does not support object locking for concurrent writers Source 10সোর্স 10. If two PUT requests are simultaneously made to the same key, the request with the latest timestamp wins Source 10সোর্স 10.

সহজ English

Instance states and billing. An EC2 instance goes through different states from the moment you launch it until it is terminated Source 2সোর্স 2. The states are:

As soon as the instance is running, you're billed for each second, with a one-minute minimum, even if the instance remains idle and you don't connect to it Source 2সোর্স 2. Some AWS resources, such as EBS volumes and Elastic IP addresses, cost money regardless of the instance's state Source 2সোর্স 2.

Reboot, stop, hibernate, and terminate. You can reboot, stop, hibernate, or terminate an instance, and each one keeps different things.

  • Reboot. Rebooting an instance is equivalent to rebooting an operating system Source 2সোর্স 2. The instance remains on the same host computer. It maintains its public DNS name, private IP address, and any data on its instance store volumes Source 2সোর্স 2.
  • Stop and start. When you stop and start your instance, you lose any data on the instance store volumes attached to the previous host computer Source 2সোর্স 2. The instance gets a new public IPv4 address, unless it has a secondary network interface or a secondary private IPv4 address that is associated with an Elastic IP address Source 2সোর্স 2.
  • Hibernate. The operating system is signaled to perform hibernation (suspend-to-disk). That saves the contents of the instance memory (RAM) to your EBS root volume Source 2সোর্স 2.
  • Terminate. You can't connect to or recover a terminated instance Source 2সোর্স 2. If you enable termination protection, you can't terminate the instance using the console, CLI, or API Source 2সোর্স 2.

The DeleteOnTermination attribute of an EBS volume controls whether the volume is deleted or kept when you terminate the instance it is attached to. The default is to delete the root volume and keep any other EBS volumes Source 2সোর্স 2. The table sums up the differences that AWS lists Source 2সোর্স 2:

RebootStop and startHibernateTerminate
Private IPv4 addresskeptkeptkeptnone Source 2সোর্স 2
Elastic IP address (IPv4)stays associatedstays associatedstays associateddisassociated Source 2সোর্স 2
Instance store volumesdata preserveddata eraseddata eraseddata erased Source 2সোর্স 2
Root volumepreservedpreservedpreserveddeleted by default Source 2সোর্স 2
RAM (contents of memory)erasederasedsaved to a file on the root volumeerased Source 2সোর্স 2

Buying EC2 capacity. AWS lists these options to optimize your costs for EC2 Source 4সোর্স 4:

A Spot Instance uses spare EC2 capacity that is available for less than the On-Demand price Source 5সোর্স 5. EC2 terminates, stops, or hibernates your Spot Instance when it needs the capacity back Source 5সোর্স 5. EC2 gives the instance a two-minute warning before it is interrupted. This is the Spot Instance interruption notice Source 5সোর্স 5. Spot Instances are a cost-effective choice if you can be flexible about when your applications run and if your applications can be interrupted Source 5সোর্স 5. For an On-Demand Instance, if capacity is not available when you make a launch request, you get an insufficient capacity error (ICE) Source 5সোর্স 5.

What you choose at launch: AMI and key pair. An Amazon Machine Image (AMI) is an image that provides the software that is required to set up and boot an EC2 instance Source 3সোর্স 3. You must specify an AMI when you launch an instance Source 3সোর্স 3. The AMI must be compatible with the instance type that you chose Source 3সোর্স 3. An AMI is specific to Region, operating system, processor architecture, root volume type, and virtualization type Source 3সোর্স 3.

A key pair is a set of security credentials that you use to prove your identity when connecting to an EC2 instance Source 8সোর্স 8. Anyone who possesses your private key can connect to your instances that use the key pair Source 8সোর্স 8. EC2 doesn't keep a copy of your private key. So there is no way to recover a private key if you lose it Source 8সোর্স 8.

User data and instance metadata. When you launch an EC2 instance, you can pass user data that performs automated configuration tasks or runs scripts after the instance starts Source 6সোর্স 6. User data is limited to 16 KB, in raw form, before it is base64-encoded Source 6সোর্স 6. By default, user data scripts and cloud-init directives run only during the boot cycle when you first launch an instance Source 6সোর্স 6. If you create an AMI from an instance, the instance user data is not included in the AMI Source 6সোর্স 6.

A running instance can read its instance metadata through the Instance Metadata Service (IMDS) Source 7সোর্স 7. By default, you can use either IMDSv1 or IMDSv2, or both Source 7সোর্স 7. You can configure the IMDS on each instance to only accept IMDSv2 calls, which will cause IMDSv1 calls to fail Source 7সোর্স 7. IMDSv2 uses session-oriented requests Source 7সোর্স 7. You create a session token that defines the session duration, a minimum of one second and a maximum of six hours Source 7সোর্স 7.

EBS volumes and snapshots. EBS provides multiple volume types that differ in performance characteristics and price Source 19সোর্স 19. SSD-backed volume types include General Purpose SSD and Provisioned IOPS SSD Source 19সোর্স 19. HDD volume types include Throughput Optimized HDD and Cold HDD Source 19সোর্স 19. SSD-backed volumes are optimized for transactional workloads Source 19সোর্স 19. HDD-backed volumes are optimized for large streaming workloads where the dominant performance attribute is throughput Source 19সোর্স 19.

Volume data is automatically replicated across multiple servers in an Availability Zone Source 17সোর্স 17. io2 Block Express volumes provide 99.999% durability. Other volume types provide 99.8% to 99.9% durability Source 17সোর্স 17. You can use Elastic Volumes operations to dynamically increase capacity or tune performance, with no downtime Source 17সোর্স 17.

A snapshot is an incremental backup, which means that AWS saves only the blocks on the volume that have changed since the most recent snapshot Source 18সোর্স 18. AWS does not automatically back up the data stored on your EBS volumes Source 18সোর্স 18. It is your responsibility to create EBS snapshots on a regular basis, or to set up automatic snapshot creation Source 18সোর্স 18.

S3 storage classes, versioning, and lifecycle. Each object in S3 has a storage class associated with it Source 15সোর্স 15. By default, objects are stored in the S3 Standard storage class Source 15সোর্স 15. All of these storage classes offer high durability Source 15সোর্স 15.

Versioning in S3 is a means of keeping multiple variants of an object in the same bucket Source 11সোর্স 11. By default, S3 Versioning is disabled on buckets, and you must explicitly enable it Source 11সোর্স 11. If you delete an object, S3 inserts a delete marker instead of removing the object permanently Source 11সোর্স 11. If you overwrite an object, it results in a new object version in the bucket Source 11সোর্স 11. After you version-enable a bucket, it can never return to an unversioned state, but you can suspend versioning on that bucket Source 11সোর্স 11. Normal S3 rates apply for every version of an object that is stored and transferred Source 11সোর্স 11. Each version of an object is the entire object, not just a diff from the previous version Source 11সোর্স 11.

An S3 Lifecycle configuration is a set of rules that define actions that S3 applies to a group of objects Source 12সোর্স 12. Transition actions define when objects transition to another storage class. Expiration actions define when objects expire Source 12সোর্স 12. S3 deletes expired objects on your behalf Source 12সোর্স 12. When you add a Lifecycle configuration to a bucket, the rules apply to both existing objects and objects that you add later Source 12সোর্স 12. For general purpose buckets, you can't use a bucket policy to prevent deletions or transitions by an S3 Lifecycle rule Source 12সোর্স 12. To keep the permanent delete behavior of an expiration rule after you enable versioning, add a noncurrent expiration configuration Source 11সোর্স 11.

S3 access: Block Public Access and presigned URLs. By default, new buckets, access points, and objects don't allow public access Source 13সোর্স 13. However, users can modify bucket policies, access point policies, or object permissions to allow public access Source 13সোর্স 13. S3 Block Public Access settings override these policies and permissions so that you can limit public access to these resources Source 13সোর্স 13. Block Public Access provides four settings: BlockPublicAcls, IgnorePublicAcls, BlockPublicPolicy, and RestrictPublicBuckets Source 13সোর্স 13. AWS recommends that you turn on all four settings for your account Source 13সোর্স 13. Block public access settings don't alter existing policies or ACLs. So removing a setting makes a bucket or object with a public policy or ACL publicly accessible again Source 13সোর্স 13. S3 doesn't support block public access settings on a per-object basis Source 13সোর্স 13.

You can use presigned URLs to grant time-limited access to objects in S3 without updating your bucket policy Source 14সোর্স 14. The credentials that the URL uses are those of the IAM principal who generated it Source 14সোর্স 14. You can use the presigned URL multiple times, up to the expiration date and time Source 14সোর্স 14. With the S3 console, the expiration time can be set between 1 minute and 12 hours. With the AWS CLI or AWS SDKs, it can be set as high as 7 days Source 14সোর্স 14. S3 checks the expiration date and time of a signed URL at the time of the HTTP request Source 14সোর্স 14. If the connection drops and the client tries to restart the download after the expiration time passes, the download fails Source 14সোর্স 14. In general, a presigned URL expires when the credential that created it is revoked, deleted, or deactivated, even if the URL was created with a later expiration time Source 14সোর্স 14. Presigned URLs are bearer tokens that grant access to those who possess them Source 14সোর্স 14.

S3 consistency. S3 provides strong read-after-write consistency for PUT and DELETE requests of objects in all AWS Regions Source 10সোর্স 10. After a successful PUT, a read (GET or LIST request) returns the data written by the PUT request Source 10সোর্স 10. Bucket configurations have an eventual consistency model Source 10সোর্স 10. If you delete a bucket and immediately list all buckets, the deleted bucket might still appear in the list Source 10সোর্স 10. AWS recommends that you wait for 15 minutes after enabling versioning before issuing write operations on objects in the bucket Source 10সোর্স 10. S3 does not support object locking for concurrent writers Source 10সোর্স 10. If two PUT requests are simultaneously made to the same key, the request with the latest timestamp wins Source 10সোর্স 10.

বাংলা ব্যাখ্যা

Instance state আর billing। একটা EC2 instance চালু করার মুহূর্ত থেকে terminate হওয়া পর্যন্ত নানা state-এর মধ্য দিয়ে যায় Source 2সোর্স 2। state-গুলো এই:

  • pending: instance running state-এ ঢোকার প্রস্তুতি নিচ্ছে, আর এর জন্য বিল হয় না Source 2সোর্স 2।
  • running: instance চলছে আর ব্যবহারের জন্য তৈরি, আর এর জন্য বিল হয় Source 2সোর্স 2।
  • stopping: instance বন্ধ হওয়ার প্রস্তুতি নিচ্ছে, আর এর জন্য বিল হয় না Source 2সোর্স 2। আপনি instance hibernate করলে stopping state-এ থাকার সময় বিল হয় Source 2সোর্স 2।
  • stopped: instance বন্ধ আছে আর ব্যবহার করা যায় না। এটা যেকোনো সময় চালু করা যায়, আর এর জন্য বিল হয় না Source 2সোর্স 2।
  • shutting-down: instance terminate হওয়ার প্রস্তুতি নিচ্ছে, আর এর জন্য বিল হয় না Source 2সোর্স 2।
  • terminated: instance স্থায়ীভাবে মুছে গেছে আর চালু করা যায় না। এর জন্য বিল হয় না Source 2সোর্স 2।

instance running হওয়ামাত্র আপনার বিল হয় প্রতি সেকেন্ডের জন্য, কমপক্ষে এক মিনিট ধরে, instance বসে থাকলেও আর আপনি সংযোগ না দিলেও Source 2সোর্স 2। কিছু AWS resource, যেমন EBS volume আর Elastic IP address, instance-এর state যা-ই হোক খরচ ঘটায় Source 2সোর্স 2।

Reboot, stop, hibernate আর terminate। আপনি একটা instance reboot, stop, hibernate বা terminate করতে পারেন, আর প্রতিটায় আলাদা জিনিস থাকে।

  • Reboot। একটা instance reboot করা মানে একটা operating system reboot করার সমান Source 2সোর্স 2। instance একই host computer-এ থাকে। এটা তার public DNS name, private IP address আর instance store volume-এর সব data ধরে রাখে Source 2সোর্স 2।
  • Stop আর start। আপনি instance stop করে আবার start করলে আগের host computer-এ লাগানো instance store volume-এর যেকোনো data হারান Source 2সোর্স 2। instance একটা নতুন public IPv4 address পায়, যদি না তার একটা secondary network interface বা একটা secondary private IPv4 address থাকে যা একটা Elastic IP address-এর সঙ্গে যুক্ত Source 2সোর্স 2।
  • Hibernate। operating system-কে hibernation (suspend-to-disk) করতে signal দেওয়া হয়। এতে instance-এর memory-র (RAM) বিষয়বস্তু আপনার EBS root volume-এ সেভ হয় Source 2সোর্স 2।
  • Terminate। terminate করা instance-এ আপনি সংযোগ দিতে বা তা ফিরে পেতে পারেন না Source 2সোর্স 2। termination protection চালু করলে আপনি console, CLI বা API দিয়ে instance terminate করতে পারেন না Source 2সোর্স 2।

একটা EBS volume-এর DeleteOnTermination attribute ঠিক করে, যে instance-এ volume লাগানো তা terminate করলে volume মুছে যাবে না থাকবে। by default root volume মুছে যায় আর অন্য EBS volume থেকে যায় Source 2সোর্স 2। নিচের table AWS-এর তালিকা করা পার্থক্যগুলো এক জায়গায় আনে Source 2সোর্স 2:

RebootStop আর startHibernateTerminate
Private IPv4 addressথাকেথাকেথাকেনেই Source 2সোর্স 2
Elastic IP address (IPv4)যুক্ত থাকেযুক্ত থাকেযুক্ত থাকেবিচ্ছিন্ন হয় Source 2সোর্স 2
Instance store volumesdata থাকেdata মুছে যায়data মুছে যায়data মুছে যায় Source 2সোর্স 2
Root volumeথাকেথাকেথাকেby default মুছে যায় Source 2সোর্স 2
RAM (memory-র বিষয়বস্তু)মুছে যায়মুছে যায়root volume-এর একটা file-এ সেভ হয়মুছে যায় Source 2সোর্স 2

EC2 capacity কেনা। EC2-র খরচ কমানোর জন্য AWS এই option-গুলো তালিকা করে Source 4সোর্স 4:

  • On-Demand Instances: আপনি যে instance চালু করেন, তার জন্য সেকেন্ড ধরে দাম দিন Source 4সোর্স 4।
  • Savings Plans: ১ বা ৩ বছরের মেয়াদে ঘণ্টায় USD হিসাবে একটা স্থির পরিমাণ ব্যবহারের প্রতিশ্রুতি দিন Source 4সোর্স 4।
  • Reserved Instances: ১ বা ৩ বছরের মেয়াদে একটা স্থির instance configuration-এর প্রতিশ্রুতি দিন, instance type আর Region-সহ Source 4সোর্স 4।
  • Spot Instances: অব্যবহৃত EC2 instance চেয়ে নিন, যা আপনার খরচ উল্লেখযোগ্যভাবে কমাতে পারে Source 4সোর্স 4।
  • Capacity Reservations: একটা নির্দিষ্ট Availability Zone-এ আপনার EC2 instance-এর জন্য capacity সংরক্ষণ করুন Source 4সোর্স 4।

Spot Instance EC2-র বাড়তি capacity ব্যবহার করে, যা On-Demand দামের চেয়ে কমে পাওয়া যায় Source 5সোর্স 5। EC2-র capacity ফেরত দরকার হলে সে আপনার Spot Instance terminate, stop বা hibernate করে Source 5সোর্স 5। interrupt হওয়ার আগে EC2 instance-কে দুই মিনিটের সতর্কবার্তা দেয়। এটাই Spot Instance interruption notice Source 5সোর্স 5। আপনার application কখন চলবে সে বিষয়ে আপনি নমনীয় হতে পারলে আর application interrupt হতে পারলে Spot Instance খরচ-সাশ্রয়ী পছন্দ Source 5সোর্স 5। একটা On-Demand Instance-এর জন্য launch request করার সময় capacity না থাকলে আপনি একটা insufficient capacity error (ICE) পান Source 5সোর্স 5।

launch করার সময় যা বেছে নেন: AMI আর key pair। একটা Amazon Machine Image (AMI) হলো এমন একটা image, যা একটা EC2 instance চালু ও boot করতে দরকারি software দেয় Source 3সোর্স 3। instance চালু করার সময় আপনাকে একটা AMI নির্দিষ্ট করতে হয় Source 3সোর্স 3। আপনার বেছে নেওয়া instance type-এর সঙ্গে AMI সামঞ্জস্যপূর্ণ হতে হবে Source 3সোর্স 3। একটা AMI নির্দিষ্ট Region, operating system, processor architecture, root volume type আর virtualization type-এর জন্য Source 3সোর্স 3।

key pair হলো এক সেট security credential, যা দিয়ে আপনি একটা EC2 instance-এ সংযোগ দেওয়ার সময় নিজের পরিচয় প্রমাণ করেন Source 8সোর্স 8। যার কাছে আপনার private key আছে, সে-ই ওই key pair ব্যবহার করা আপনার instance-গুলোতে সংযোগ দিতে পারে Source 8সোর্স 8। EC2 আপনার private key-র কোনো কপি রাখে না। তাই private key হারালে তা ফিরে পাওয়ার কোনো উপায় নেই Source 8সোর্স 8।

User data আর instance metadata। একটা EC2 instance চালু করার সময় আপনি user data পাঠাতে পারেন, যা automated configuration-এর কাজ করে বা instance চালু হওয়ার পর script চালায় Source 6সোর্স 6। User data raw অবস্থায়, base64-encode হওয়ার আগে, ১৬ KB পর্যন্ত সীমিত Source 6সোর্স 6। by default, user data script আর cloud-init directive শুধু সেই boot cycle-এ চলে, যখন আপনি প্রথম instance চালু করেন Source 6সোর্স 6। আপনি একটা instance থেকে AMI বানালে ওই instance-এর user data AMI-তে থাকে না Source 6সোর্স 6।

একটা চলমান instance Instance Metadata Service (IMDS) দিয়ে নিজের instance metadata পড়তে পারে Source 7সোর্স 7। by default আপনি IMDSv1 বা IMDSv2 ব্যবহার করতে পারেন, বা দুটোই Source 7সোর্স 7। আপনি প্রতিটা instance-এ IMDS এমনভাবে configure করতে পারেন, যাতে সে শুধু IMDSv2 call নেয়, ফলে IMDSv1 call ব্যর্থ হবে Source 7সোর্স 7। IMDSv2 session-oriented request ব্যবহার করে Source 7সোর্স 7। আপনি একটা session token বানান, যা session-এর মেয়াদ ঠিক করে, কমপক্ষে এক সেকেন্ড আর সর্বোচ্চ ছয় ঘণ্টা Source 7সোর্স 7।

EBS volume আর snapshot। EBS একাধিক volume type দেয়, যেগুলোর performance-এর বৈশিষ্ট্য আর দাম আলাদা Source 19সোর্স 19। SSD-backed volume type-এর মধ্যে আছে General Purpose SSD আর Provisioned IOPS SSD Source 19সোর্স 19। HDD volume type-এর মধ্যে আছে Throughput Optimized HDD আর Cold HDD Source 19সোর্স 19। SSD-backed volume transactional workload-এর জন্য optimize করা Source 19সোর্স 19। HDD-backed volume বড় streaming workload-এর জন্য optimize করা, যেখানে throughput-ই প্রধান performance বৈশিষ্ট্য Source 19সোর্স 19।

volume-এর data একটা Availability Zone-এর একাধিক server-এ স্বয়ংক্রিয়ভাবে replicate হয় Source 17সোর্স 17। io2 Block Express volume ৯৯.৯৯৯% durability দেয়। অন্য volume type ৯৯.৮% থেকে ৯৯.৯% durability দেয় Source 17সোর্স 17। আপনি Elastic Volumes operation দিয়ে কোনো downtime ছাড়াই গতিশীলভাবে capacity বাড়াতে বা performance tune করতে পারেন Source 17সোর্স 17।

snapshot হলো একটা incremental backup, মানে AWS শুধু সেই block-গুলো সেভ করে, যেগুলো সবচেয়ে সাম্প্রতিক snapshot-এর পর volume-এ বদলেছে Source 18সোর্স 18। AWS আপনার EBS volume-এর data স্বয়ংক্রিয়ভাবে backup করে না Source 18সোর্স 18। নিয়মিত EBS snapshot বানানো বা স্বয়ংক্রিয় snapshot তৈরির ব্যবস্থা করার দায়িত্ব আপনার Source 18সোর্স 18।

S3 storage class, versioning আর lifecycle। S3-এর প্রতিটা object-এর সঙ্গে একটা storage class যুক্ত থাকে Source 15সোর্স 15। by default object S3 Standard storage class-এ রাখা হয় Source 15সোর্স 15। এই সব storage class উচ্চ durability দেয় Source 15সোর্স 15।

S3-এ versioning হলো একই bucket-এ একটা object-এর একাধিক রূপ রাখার উপায় Source 11সোর্স 11। by default bucket-এ S3 Versioning বন্ধ থাকে, আর আপনাকে স্পষ্টভাবে তা চালু করতে হয় Source 11সোর্স 11। আপনি একটা object মুছলে S3 object-টা স্থায়ীভাবে সরানোর বদলে একটা delete marker বসায় Source 11সোর্স 11। আপনি একটা object overwrite করলে bucket-এ একটা নতুন object version তৈরি হয় Source 11সোর্স 11। একটা bucket version-enable করার পর সেটা আর কখনো unversioned অবস্থায় ফিরতে পারে না, তবে আপনি ওই bucket-এ versioning suspend করতে পারেন Source 11সোর্স 11। একটা object-এর প্রতিটা version, যা রাখা ও স্থানান্তরিত হয়, তার জন্য স্বাভাবিক S3 হার প্রযোজ্য Source 11সোর্স 11। একটা object-এর প্রতিটা version পুরো object, আগের version থেকে শুধু diff নয় Source 11সোর্স 11।

S3 Lifecycle configuration হলো একসেট নিয়ম, যা ঠিক করে S3 একদল object-এর ওপর কোন action নেবে Source 12সোর্স 12। Transition action ঠিক করে কখন object অন্য storage class-এ যাবে। Expiration action ঠিক করে কখন object-এর মেয়াদ শেষ হবে Source 12সোর্স 12। S3 আপনার পক্ষ থেকে মেয়াদ-শেষ object মুছে দেয় Source 12সোর্স 12। একটা bucket-এ Lifecycle configuration যোগ করলে নিয়মগুলো বিদ্যমান object আর পরে যোগ করা object, দুটোর ওপরই প্রযোজ্য হয় Source 12সোর্স 12। general purpose bucket-এর ক্ষেত্রে আপনি bucket policy দিয়ে একটা S3 Lifecycle rule-এর মুছে ফেলা বা transition আটকাতে পারেন না Source 12সোর্স 12। versioning চালু করার পরও একটা expiration rule-এর স্থায়ী মুছে ফেলার আচরণ ধরে রাখতে একটা noncurrent expiration configuration যোগ করুন Source 11সোর্স 11।

S3 access: Block Public Access আর presigned URL। by default নতুন bucket, access point আর object public access দেয় না Source 13সোর্স 13। তবে user bucket policy, access point policy বা object permission বদলে public access দিতে পারে Source 13সোর্স 13। S3 Block Public Access setting এই policy আর permission-কে override করে, যাতে আপনি এই resource-গুলোতে public access সীমিত করতে পারেন Source 13সোর্স 13। Block Public Access চারটা setting দেয়: BlockPublicAcls, IgnorePublicAcls, BlockPublicPolicy আর RestrictPublicBuckets Source 13সোর্স 13। AWS সুপারিশ করে, আপনার account-এর জন্য চারটা setting-ই চালু করুন Source 13সোর্স 13। block public access setting বিদ্যমান policy বা ACL বদলায় না। তাই একটা setting সরালে public policy বা ACL থাকা bucket বা object আবার public হয়ে যায় Source 13সোর্স 13। S3 per-object ভিত্তিতে block public access setting সমর্থন করে না Source 13সোর্স 13।

আপনি presigned URL দিয়ে bucket policy না বদলেই S3-এর object-এ সময়-সীমিত access দিতে পারেন Source 14সোর্স 14। URL-টা যে credential ব্যবহার করে, তা যে IAM principal URL বানিয়েছে তার Source 14সোর্স 14। আপনি একই presigned URL একাধিকবার ব্যবহার করতে পারেন, মেয়াদের তারিখ ও সময় পর্যন্ত Source 14সোর্স 14। S3 console দিয়ে মেয়াদ ১ মিনিট থেকে ১২ ঘণ্টার মধ্যে ঠিক করা যায়। AWS CLI বা AWS SDK দিয়ে তা ৭ দিন পর্যন্ত ঠিক করা যায় Source 14সোর্স 14। S3 একটা signed URL-এর মেয়াদের তারিখ ও সময় যাচাই করে HTTP request-এর সময় Source 14সোর্স 14। সংযোগ কেটে গেলে আর মেয়াদ পেরোনোর পর client download আবার শুরু করার চেষ্টা করলে download ব্যর্থ হয় Source 14সোর্স 14। সাধারণভাবে একটা presigned URL-এর মেয়াদ শেষ হয়, যে credential দিয়ে সেটা বানানো তা revoke, delete বা deactivate হলে, URL-টা পরের কোনো মেয়াদ দিয়ে বানানো হলেও Source 14সোর্স 14। presigned URL হলো bearer token, যা যার কাছে আছে তাকে access দেয় Source 14সোর্স 14।

S3 consistency। S3 সব AWS Region-এ object-এর PUT আর DELETE request-এর জন্য strong read-after-write consistency দেয় Source 10সোর্স 10। একটা সফল PUT-এর পর একটা read (GET বা LIST request) PUT request-এ লেখা data ফেরত দেয় Source 10সোর্স 10। Bucket configuration-এর eventual consistency model আছে Source 10সোর্স 10। আপনি একটা bucket মুছে সঙ্গে সঙ্গে সব bucket-এর তালিকা চাইলে মুছে ফেলা bucket-টা তখনো তালিকায় দেখা যেতে পারে Source 10সোর্স 10। AWS সুপারিশ করে, versioning চালু করার পর bucket-এর object-এ write operation চালানোর আগে ১৫ মিনিট অপেক্ষা করুন Source 10সোর্স 10। S3 একসঙ্গে লেখা writer-দের জন্য object locking সমর্থন করে না Source 10সোর্স 10। একই key-তে দুটো PUT request একসঙ্গে করা হলে latest timestamp-ওয়ালা request জেতে Source 10সোর্স 10।

Try it

The tutorial ran steps 1 to 4 on 2026-11-18 at 12:13 (+06) on Linux 7.0.0-43-generic, with bash 5.3.9 and aws-cli/2.41.0 (Python 3.14.8). They need no AWS account and no credentials. In the tutorial's run, no AWS_ variable was set before step 2, and no ~/.aws folder existed before or after. The output is from the tutorial's run. Steps 5 and 6 are a read-along of AWS's own tutorials. The tutorial did not run them, because they need an account and can cost money.

1. Install the AWS CLI for your user, and check the version. The install page gives a one-step script that installs for the current user by default Source 21সোর্স 21. The tutorial used the .zip installer instead. AWS says that its .zip installer files are cryptographically signed using PGP signatures Source 21সোর্স 21. The tutorial checked the signature first, with the command that the page gives Source 21সোর্স 21. Then it ran the installer with the -i and -b options, which set the directory for the files and where the aws link goes Source 21সোর্স 21. The tutorial's own commands differ in small ways from the page's, so follow the page when you install.

aws --version

Output of the tutorial's run:

aws-cli/2.41.0 Python/3.14.8 Linux/7.0.0-43-generic exe/x86_64.ubuntu.26

2. Set three environment variables, and print the template of a command. AWS_CONFIG_FILE is the file that the AWS CLI uses to store configuration profiles. AWS_SHARED_CREDENTIALS_FILE is the file that it uses to store access keys. AWS_EC2_METADATA_DISABLED disables the use of the EC2 instance metadata service (IMDS) Source 22সোর্স 22. Pointing the first two at /dev/null and setting the third to true is the tutorial's own choice.

The --generate-cli-skeleton option generates and displays a parameter template that you can customize and use as input on a command Source 20সোর্স 20. The generated template includes all of the parameters that the command supports Source 20সোর্স 20. The skeleton file expects you to reference all parameters by their underlying API parameter names Source 20সোর্স 20.

export AWS_CONFIG_FILE=/dev/null AWS_SHARED_CREDENTIALS_FILE=/dev/null AWS_EC2_METADATA_DISABLED=true
aws s3api create-bucket --generate-cli-skeleton

Output of the tutorial's run:

{
    "ACL": "private",
    "Bucket": "",
    "CreateBucketConfiguration": {
        "LocationConstraint": "af-south-1",
        "Location": {
            "Type": "AvailabilityZone",
            "Name": ""
        },
        "Bucket": {
            "DataRedundancy": "SingleAvailabilityZone",
            "Type": "Directory"
        },
        "Tags": [
            {
                "Key": "",
                "Value": ""
            }
        ]
    },
    "GrantFullControl": "",
    "GrantRead": "",
    "GrantReadACP": "",
    "GrantWrite": "",
    "GrantWriteACP": "",
    "ObjectLockEnabledForBucket": true,
    "ObjectOwnership": "BucketOwnerPreferred",
    "BucketNamespace": "account-regional"
}

The template lists the parameters of s3api create-bucket, such as Bucket, ACL, and ObjectOwnership. The tutorial reads the values in it as placeholders to replace, because the template is for you to customize. For example, it shows "LocationConstraint": "af-south-1".

3. Find the parameters that launch an instance. The same option works for aws ec2 run-instances Source 20সোর্স 20. The AWS CLI User Guide shows the sample output of this command Source 20সোর্স 20. The tutorial filters the template for eight top-level names, and then counts all of its lines. The filter pattern is the tutorial's own. The four spaces in it keep nested names out.

aws ec2 run-instances --generate-cli-skeleton | grep -E '^    "(ImageId|InstanceType|KeyName|MinCount|MaxCount|SecurityGroupIds|SubnetId|UserData)"'
aws ec2 run-instances --generate-cli-skeleton | wc -l

Output of the tutorial's run:

    "ImageId": "",
    "InstanceType": "a1.medium",
    "KeyName": "",
    "MaxCount": 0,
    "MinCount": 0,
    "SecurityGroupIds": [
    "SubnetId": "",
    "UserData": "",
233

Some of the names match choices in the console steps of step 5: the image (ImageId), the instance type (InstanceType), the key pair (KeyName), the subnet (SubnetId), and the security group (SecurityGroupIds). The tutorial matched them by their names, and did not check them against the API reference.

4. Try the same option on an aws s3 command. The User Guide says that custom commands, such as the aws s3 commands, don't support --generate-cli-skeleton Source 20সোর্স 20. The tutorial ran it anyway:

aws s3 ls --generate-cli-skeleton
echo "exit status: $?"

Output of the tutorial's run:


aws: [ERROR]: An error occurred (ParamValidation): Unknown options: --generate-cli-skeleton
exit status: 252

The CLI printed an error, and the exit status was 252. AWS lists 252 as: the command syntax was invalid, an unknown parameter was provided, or a parameter value was incorrect and prevented the command from running Source 23সোর্স 23. To print a template for an S3 call, use the s3api namespace, as in step 2.

5. Read along: launch, connect to, and terminate an instance. This is AWS's own tutorial Source 9সোর্স 9. The tutorial did not run it. Cost warning. AWS says that the tutorial won't cost you anything if the Free Tier conditions on its page apply to your account Source 9সোর্স 9. Otherwise, you'll incur the standard Amazon EC2 usage fees from the time that you launch the instance (even if it remains idle) until you terminate it Source 9সোর্স 9. The conditions are in the section called Cost for this tutorial. Read it before you start.

  1. In the EC2 console, choose Launch instance Source 9সোর্স 9.
  2. Choose an AMI that is marked Free Tier eligible, and an instance type that is marked Free Tier eligible Source 9সোর্স 9.
  3. Choose an existing key pair, or create a new one Source 9সোর্স 9. If you choose Proceed without a key pair, you won't be able to connect to your instance using the methods in the tutorial Source 9সোর্স 9.
  4. Look at the network settings. They show a default VPC and a security group with a rule that allows connections from anywhere (0.0.0.0/0) Source 9সোর্স 9. Warning. For SSH and RDP, you might consider 0.0.0.0/0 acceptable for a short time in a test environment, but it's unsafe for production environments Source 9সোর্স 9.
  5. Choose Launch instance. The initial instance state is pending, and then it changes to running Source 9সোর্স 9. After your instance passes its status checks, it is ready to receive connection requests Source 9সোর্স 9.
  6. Connect with any SSH client Source 9সোর্স 9. The page gives this example command, where key-pair-name.pem is the name of your private key file, ec2-user is the username associated with the image, and the string after the @ symbol is the public DNS name of the instance Source 9সোর্স 9:
ssh -i key-pair-name.pem ec2-user@ec2-198-51-100-1.us-east-2.compute.amazonaws.com
  1. Clean up. Terminating an instance is permanent and irreversible Source 9সোর্স 9. Before you terminate, back up the data that you need to retain Source 9সোর্স 9. Then choose Instance state, and Terminate (delete) instance Source 9সোর্স 9. You stop incurring charges as soon as the status changes to shutting down or terminated Source 9সোর্স 9.

6. Read along: an S3 bucket with the aws s3 commands. These are the commands of the AWS CLI User Guide. The high-level aws s3 commands simplify managing S3 objects Source 16সোর্স 16. The tutorial did not run them. Cost warning. Amazon S3 charges you only for what you actually use Source 10সোর্স 10. Delete the objects and the bucket at the end. The page uses amzn-s3-demo-bucket as a placeholder. Replace it with your own bucket name. By default, each general purpose bucket name must be unique across all AWS accounts in all the AWS Regions within a partition Source 10সোর্স 10. You can also choose to create a bucket in your account regional namespace Source 10সোর্স 10.

aws s3 mb s3://amzn-s3-demo-bucket
aws s3 cp filename.txt s3://amzn-s3-demo-bucket
aws s3 ls s3://amzn-s3-demo-bucket
aws s3 rm s3://amzn-s3-demo-bucket/example/filename.txt
aws s3 rb s3://amzn-s3-demo-bucket

The page shows each command on its own, with other examples. The rm line removes the object example/filename.txt, so replace its path with the path of the object that you uploaded. By default, the bucket must be empty for aws s3 rb to succeed Source 16সোর্স 16. To remove a bucket that's not empty, you need to include the --force option Source 16সোর্স 16. With a versioned bucket that contains previously deleted but retained objects, the command does not allow you to remove the bucket until you remove all of the content Source 16সোর্স 16.

সহজ English

The tutorial ran steps 1 to 4 on 2026-11-18 at 12:13 (+06) on Linux 7.0.0-43-generic, with bash 5.3.9 and aws-cli/2.41.0 (Python 3.14.8). They need no AWS account and no credentials. In the tutorial's run, no AWS_ variable was set before step 2, and no ~/.aws folder existed before or after. The output is from the tutorial's run. Steps 5 and 6 are a read-along of AWS's own tutorials. The tutorial did not run them, because they need an account and can cost money.

1. Install the AWS CLI for your user, and check the version. The install page gives a one-step script that installs for the current user by default Source 21সোর্স 21. The tutorial used the .zip installer instead. AWS says that its .zip installer files are cryptographically signed using PGP signatures Source 21সোর্স 21. The tutorial checked the signature first, with the command that the page gives Source 21সোর্স 21. Then it ran the installer with the -i and -b options, which set the directory for the files and where the aws link goes Source 21সোর্স 21. The tutorial's own commands differ in small ways from the page's, so follow the page when you install.

aws --version

Output of the tutorial's run:

aws-cli/2.41.0 Python/3.14.8 Linux/7.0.0-43-generic exe/x86_64.ubuntu.26

2. Set three environment variables, and print the template of a command. AWS_CONFIG_FILE is the file that the AWS CLI uses to store configuration profiles. AWS_SHARED_CREDENTIALS_FILE is the file that it uses to store access keys. AWS_EC2_METADATA_DISABLED disables the use of the EC2 instance metadata service (IMDS) Source 22সোর্স 22. Pointing the first two at /dev/null and setting the third to true is the tutorial's own choice.

The --generate-cli-skeleton option generates and displays a parameter template that you can customize and use as input on a command Source 20সোর্স 20. The generated template includes all of the parameters that the command supports Source 20সোর্স 20. The skeleton file expects you to reference all parameters by their underlying API parameter names Source 20সোর্স 20.

export AWS_CONFIG_FILE=/dev/null AWS_SHARED_CREDENTIALS_FILE=/dev/null AWS_EC2_METADATA_DISABLED=true
aws s3api create-bucket --generate-cli-skeleton

Output of the tutorial's run:

{
    "ACL": "private",
    "Bucket": "",
    "CreateBucketConfiguration": {
        "LocationConstraint": "af-south-1",
        "Location": {
            "Type": "AvailabilityZone",
            "Name": ""
        },
        "Bucket": {
            "DataRedundancy": "SingleAvailabilityZone",
            "Type": "Directory"
        },
        "Tags": [
            {
                "Key": "",
                "Value": ""
            }
        ]
    },
    "GrantFullControl": "",
    "GrantRead": "",
    "GrantReadACP": "",
    "GrantWrite": "",
    "GrantWriteACP": "",
    "ObjectLockEnabledForBucket": true,
    "ObjectOwnership": "BucketOwnerPreferred",
    "BucketNamespace": "account-regional"
}

The template lists the parameters of s3api create-bucket, such as Bucket, ACL, and ObjectOwnership. The tutorial reads the values in it as placeholders to replace, because the template is for you to customize. For example, it shows "LocationConstraint": "af-south-1".

3. Find the parameters that launch an instance. The same option works for aws ec2 run-instances Source 20সোর্স 20. The AWS CLI User Guide shows the sample output of this command Source 20সোর্স 20. The tutorial filters the template for eight top-level names, and then counts all of its lines. The filter pattern is the tutorial's own. The four spaces in it keep nested names out.

aws ec2 run-instances --generate-cli-skeleton | grep -E '^    "(ImageId|InstanceType|KeyName|MinCount|MaxCount|SecurityGroupIds|SubnetId|UserData)"'
aws ec2 run-instances --generate-cli-skeleton | wc -l

Output of the tutorial's run:

    "ImageId": "",
    "InstanceType": "a1.medium",
    "KeyName": "",
    "MaxCount": 0,
    "MinCount": 0,
    "SecurityGroupIds": [
    "SubnetId": "",
    "UserData": "",
233

Some of the names match choices in the console steps of step 5: the image (ImageId), the instance type (InstanceType), the key pair (KeyName), the subnet (SubnetId), and the security group (SecurityGroupIds). The tutorial matched them by their names, and did not check them against the API reference.

4. Try the same option on an aws s3 command. The User Guide says that custom commands, such as the aws s3 commands, don't support --generate-cli-skeleton Source 20সোর্স 20. The tutorial ran it anyway:

aws s3 ls --generate-cli-skeleton
echo "exit status: $?"

Output of the tutorial's run:


aws: [ERROR]: An error occurred (ParamValidation): Unknown options: --generate-cli-skeleton
exit status: 252

The CLI printed an error, and the exit status was 252. AWS lists 252 as: the command syntax was invalid, an unknown parameter was provided, or a parameter value was incorrect and prevented the command from running Source 23সোর্স 23. To print a template for an S3 call, use the s3api namespace, as in step 2.

5. Read along: launch, connect to, and terminate an instance. This is AWS's own tutorial Source 9সোর্স 9. The tutorial did not run it. Cost warning. AWS says that the tutorial won't cost you anything if the Free Tier conditions on its page apply to your account Source 9সোর্স 9. Otherwise, you'll incur the standard Amazon EC2 usage fees from the time that you launch the instance (even if it remains idle) until you terminate it Source 9সোর্স 9. The conditions are in the section called Cost for this tutorial. Read it before you start.

  1. In the EC2 console, choose Launch instance Source 9সোর্স 9.
  2. Choose an AMI that is marked Free Tier eligible, and an instance type that is marked Free Tier eligible Source 9সোর্স 9.
  3. Choose an existing key pair, or create a new one Source 9সোর্স 9. If you choose Proceed without a key pair, you won't be able to connect to your instance using the methods in the tutorial Source 9সোর্স 9.
  4. Look at the network settings. They show a default VPC and a security group with a rule that allows connections from anywhere (0.0.0.0/0) Source 9সোর্স 9. Warning. For SSH and RDP, you might consider 0.0.0.0/0 acceptable for a short time in a test environment, but it's unsafe for production environments Source 9সোর্স 9.
  5. Choose Launch instance. The initial instance state is pending, and then it changes to running Source 9সোর্স 9. After your instance passes its status checks, it is ready to receive connection requests Source 9সোর্স 9.
  6. Connect with any SSH client Source 9সোর্স 9. The page gives this example command, where key-pair-name.pem is the name of your private key file, ec2-user is the username associated with the image, and the string after the @ symbol is the public DNS name of the instance Source 9সোর্স 9:
ssh -i key-pair-name.pem ec2-user@ec2-198-51-100-1.us-east-2.compute.amazonaws.com
  1. Clean up. Terminating an instance is permanent and irreversible Source 9সোর্স 9. Before you terminate, back up the data that you need to retain Source 9সোর্স 9. Then choose Instance state, and Terminate (delete) instance Source 9সোর্স 9. You stop incurring charges as soon as the status changes to shutting down or terminated Source 9সোর্স 9.

6. Read along: an S3 bucket with the aws s3 commands. These are the commands of the AWS CLI User Guide. The high-level aws s3 commands simplify managing S3 objects Source 16সোর্স 16. The tutorial did not run them. Cost warning. Amazon S3 charges you only for what you actually use Source 10সোর্স 10. Delete the objects and the bucket at the end. The page uses amzn-s3-demo-bucket as a placeholder. Replace it with your own bucket name. By default, each general purpose bucket name must be unique across all AWS accounts in all the AWS Regions within a partition Source 10সোর্স 10. You can also choose to create a bucket in your account regional namespace Source 10সোর্স 10.

aws s3 mb s3://amzn-s3-demo-bucket
aws s3 cp filename.txt s3://amzn-s3-demo-bucket
aws s3 ls s3://amzn-s3-demo-bucket
aws s3 rm s3://amzn-s3-demo-bucket/example/filename.txt
aws s3 rb s3://amzn-s3-demo-bucket

The page shows each command on its own, with other examples. The rm line removes the object example/filename.txt, so replace its path with the path of the object that you uploaded. By default, the bucket must be empty for aws s3 rb to succeed Source 16সোর্স 16. To remove a bucket that's not empty, you need to include the --force option Source 16সোর্স 16. With a versioned bucket that contains previously deleted but retained objects, the command does not allow you to remove the bucket until you remove all of the content Source 16সোর্স 16.

বাংলা ব্যাখ্যা

টিউটোরিয়াল ১ থেকে ৪ নম্বর ধাপ চালিয়েছে 2026-11-18 তারিখে 12:13-এ (+06), Linux 7.0.0-43-generic-এ, bash 5.3.9 আর aws-cli/2.41.0 (Python 3.14.8) দিয়ে। এগুলোর জন্য কোনো AWS account বা credential লাগে না। টিউটোরিয়ালের run-এ ২ নম্বর ধাপের আগে কোনো AWS_ variable সেট ছিল না, আর ~/.aws folder run-এর আগে বা পরে ছিল না। output টিউটোরিয়ালের run থেকে নেওয়া। ৫ আর ৬ নম্বর ধাপ AWS-এর নিজের টিউটোরিয়াল পাশাপাশি পড়ে যাওয়া। টিউটোরিয়াল সেগুলো চালায়নি, কারণ সেগুলোর জন্য account লাগে আর খরচ হতে পারে।

১. আপনার user-এর জন্য AWS CLI install করুন, আর version দেখুন। install page একটা এক-ধাপের script দেয়, যা by default বর্তমান user-এর জন্য install করে Source 21সোর্স 21। টিউটোরিয়াল তার বদলে .zip installer ব্যবহার করেছে। AWS বলে, তার .zip installer file PGP signature দিয়ে cryptographically signed Source 21সোর্স 21। টিউটোরিয়াল আগে signature যাচাই করেছে, page-এর দেওয়া command দিয়ে Source 21সোর্স 21। তারপর -i আর -b option দিয়ে installer চালিয়েছে, যেগুলো file-গুলোর directory আর aws link কোথায় যাবে তা ঠিক করে Source 21সোর্স 21। টিউটোরিয়ালের নিজের command page-এর command থেকে ছোটখাটো জায়গায় আলাদা, তাই install করার সময় page-টা অনুসরণ করুন।

aws --version

টিউটোরিয়ালের run-এর output:

aws-cli/2.41.0 Python/3.14.8 Linux/7.0.0-43-generic exe/x86_64.ubuntu.26

২. তিনটা environment variable সেট করুন, আর একটা command-এর template ছাপুন। AWS_CONFIG_FILE সেই file, যেটা AWS CLI configuration profile রাখতে ব্যবহার করে। AWS_SHARED_CREDENTIALS_FILE সেই file, যেটা সে access key রাখতে ব্যবহার করে। AWS_EC2_METADATA_DISABLED EC2 instance metadata service (IMDS)-এর ব্যবহার বন্ধ করে Source 22সোর্স 22। প্রথম দুটো /dev/null-এ দেখিয়ে আর তৃতীয়টায় true দেওয়া টিউটোরিয়ালের নিজের পছন্দ।

--generate-cli-skeleton option একটা parameter template তৈরি করে দেখায়, যা আপনি নিজের মতো করে বদলে একটা command-এর input হিসেবে ব্যবহার করতে পারেন Source 20সোর্স 20। তৈরি হওয়া template-এ command-টা যত parameter সমর্থন করে সবগুলো থাকে Source 20সোর্স 20। skeleton file আশা করে আপনি সব parameter তাদের মূল API parameter নাম দিয়ে উল্লেখ করবেন Source 20সোর্স 20।

export AWS_CONFIG_FILE=/dev/null AWS_SHARED_CREDENTIALS_FILE=/dev/null AWS_EC2_METADATA_DISABLED=true
aws s3api create-bucket --generate-cli-skeleton

টিউটোরিয়ালের run-এর output:

{
    "ACL": "private",
    "Bucket": "",
    "CreateBucketConfiguration": {
        "LocationConstraint": "af-south-1",
        "Location": {
            "Type": "AvailabilityZone",
            "Name": ""
        },
        "Bucket": {
            "DataRedundancy": "SingleAvailabilityZone",
            "Type": "Directory"
        },
        "Tags": [
            {
                "Key": "",
                "Value": ""
            }
        ]
    },
    "GrantFullControl": "",
    "GrantRead": "",
    "GrantReadACP": "",
    "GrantWrite": "",
    "GrantWriteACP": "",
    "ObjectLockEnabledForBucket": true,
    "ObjectOwnership": "BucketOwnerPreferred",
    "BucketNamespace": "account-regional"
}

template-এ s3api create-bucket-এর parameter-গুলো আছে, যেমন Bucket, ACL আর ObjectOwnership। টিউটোরিয়াল এর ভেতরের মানগুলোকে বদলে নেওয়ার জন্য placeholder হিসেবে পড়ে, কারণ template আপনার নিজের মতো করে বদলানোর জন্য। যেমন এতে দেখানো আছে "LocationConstraint": "af-south-1"।

৩. যে parameter-গুলো একটা instance চালু করে, সেগুলো খুঁজুন। একই option aws ec2 run-instances-এর জন্যও কাজ করে Source 20সোর্স 20। AWS CLI User Guide এই command-এর sample output দেখায় Source 20সোর্স 20। টিউটোরিয়াল template থেকে আটটা top-level নাম ছেঁকে নিয়েছে, তারপর তার সব লাইন গুনেছে। ছাঁকনির pattern টিউটোরিয়ালের নিজের। এতে থাকা চারটা space ভেতরের (nested) নাম বাদ রাখে।

aws ec2 run-instances --generate-cli-skeleton | grep -E '^    "(ImageId|InstanceType|KeyName|MinCount|MaxCount|SecurityGroupIds|SubnetId|UserData)"'
aws ec2 run-instances --generate-cli-skeleton | wc -l

টিউটোরিয়ালের run-এর output:

    "ImageId": "",
    "InstanceType": "a1.medium",
    "KeyName": "",
    "MaxCount": 0,
    "MinCount": 0,
    "SecurityGroupIds": [
    "SubnetId": "",
    "UserData": "",
233

কিছু নাম ৫ নম্বর ধাপের console-এর বাছাইয়ের সঙ্গে মেলে: image (ImageId), instance type (InstanceType), key pair (KeyName), subnet (SubnetId) আর security group (SecurityGroupIds)। টিউটোরিয়াল নামের মিল দেখে এগুলো মিলিয়েছে, API reference-এর সঙ্গে যাচাই করেনি।

৪. একই option একটা aws s3 command-এ চালিয়ে দেখুন। User Guide বলে, custom command, যেমন aws s3 command, --generate-cli-skeleton সমর্থন করে না Source 20সোর্স 20। টিউটোরিয়াল তবু সেটা চালিয়েছে:

aws s3 ls --generate-cli-skeleton
echo "exit status: $?"

টিউটোরিয়ালের run-এর output:


aws: [ERROR]: An error occurred (ParamValidation): Unknown options: --generate-cli-skeleton
exit status: 252

CLI একটা error ছাপিয়েছে, আর exit status ছিল 252। AWS 252-কে এভাবে তালিকাভুক্ত করে: command syntax অবৈধ ছিল, একটা অজানা parameter দেওয়া হয়েছিল, বা একটা parameter-এর মান ভুল ছিল, ফলে command চলতে পারেনি Source 23সোর্স 23। একটা S3 call-এর template ছাপতে s3api namespace ব্যবহার করুন, যেমন ২ নম্বর ধাপে।

৫. পাশাপাশি পড়ুন: একটা instance চালু করা, তাতে সংযোগ দেওয়া আর terminate করা। এটা AWS-এর নিজের টিউটোরিয়াল Source 9সোর্স 9। টিউটোরিয়াল এটা চালায়নি। খরচের সতর্কতা। AWS বলে, page-এ দেওয়া Free Tier-এর শর্ত আপনার account-এর ক্ষেত্রে প্রযোজ্য হলে এই টিউটোরিয়ালে আপনার কোনো খরচ হবে না Source 9সোর্স 9। অন্যথায় আপনি instance চালু করার মুহূর্ত থেকে terminate করা পর্যন্ত (instance বসে থাকলেও) স্বাভাবিক Amazon EC2 ব্যবহার-ফি দেবেন Source 9সোর্স 9। শর্তগুলো Cost for this tutorial নামের অংশে আছে। শুরুর আগে সেটা পড়ুন।

  1. EC2 console-এ Launch instance বেছে নিন Source 9সোর্স 9।
  2. Free Tier eligible চিহ্নিত একটা AMI আর Free Tier eligible চিহ্নিত একটা instance type বেছে নিন Source 9সোর্স 9।
  3. একটা বিদ্যমান key pair বেছে নিন, বা নতুন একটা বানান Source 9সোর্স 9। আপনি Proceed without a key pair বেছে নিলে টিউটোরিয়ালের পদ্ধতিতে আপনার instance-এ সংযোগ দিতে পারবেন না Source 9সোর্স 9।
  4. network setting দেখুন। সেখানে একটা default VPC আর একটা security group দেখা যায়, যার একটা rule যেকোনো জায়গা (0.0.0.0/0) থেকে সংযোগের অনুমতি দেয় Source 9সোর্স 9। সতর্কতা। SSH আর RDP-র জন্য আপনি 0.0.0.0/0-কে একটা test environment-এ অল্প সময়ের জন্য গ্রহণযোগ্য মনে করতে পারেন, কিন্তু production environment-এর জন্য তা অনিরাপদ Source 9সোর্স 9।
  5. Launch instance বেছে নিন। instance-এর প্রাথমিক state pending, তারপর তা running হয়ে যায় Source 9সোর্স 9। আপনার instance তার status check পাস করার পর সংযোগের অনুরোধ নেওয়ার জন্য তৈরি Source 9সোর্স 9।
  6. যেকোনো SSH client দিয়ে সংযোগ দিন Source 9সোর্স 9। page এই example command দেয়, যেখানে key-pair-name.pem আপনার private key file-এর নাম, ec2-user image-এর সঙ্গে যুক্ত username, আর @ চিহ্নের পরের string instance-এর public DNS name Source 9সোর্স 9:
ssh -i key-pair-name.pem ec2-user@ec2-198-51-100-1.us-east-2.compute.amazonaws.com
  1. পরিষ্কার করুন। একটা instance terminate করা স্থায়ী আর অপরিবর্তনীয় Source 9সোর্স 9। terminate করার আগে যে data আপনার রাখা দরকার তার backup নিন Source 9সোর্স 9। তারপর Instance state, আর Terminate (delete) instance বেছে নিন Source 9সোর্স 9। status shutting down বা terminated হওয়ামাত্র আপনার খরচ হওয়া বন্ধ হয় Source 9সোর্স 9।

৬. পাশাপাশি পড়ুন: aws s3 command দিয়ে একটা S3 bucket। এগুলো AWS CLI User Guide-এর command। high-level aws s3 command S3 object পরিচালনা সহজ করে Source 16সোর্স 16। টিউটোরিয়াল এগুলো চালায়নি। খরচের সতর্কতা। Amazon S3 আপনার কাছ থেকে শুধু যা আপনি আসলে ব্যবহার করেন তারই দাম নেয় Source 10সোর্স 10। শেষে object আর bucket মুছে ফেলুন। page amzn-s3-demo-bucket-কে placeholder হিসেবে ব্যবহার করে। এর জায়গায় নিজের bucket-এর নাম বসান। by default প্রতিটা general purpose bucket-এর নাম একটা partition-এর সব AWS Region-এর সব AWS account জুড়ে অনন্য হতে হবে Source 10সোর্স 10। আপনি আপনার account regional namespace-এও bucket বানাতে পারেন Source 10সোর্স 10।

aws s3 mb s3://amzn-s3-demo-bucket
aws s3 cp filename.txt s3://amzn-s3-demo-bucket
aws s3 ls s3://amzn-s3-demo-bucket
aws s3 rm s3://amzn-s3-demo-bucket/example/filename.txt
aws s3 rb s3://amzn-s3-demo-bucket

page প্রতিটা command আলাদাভাবে আর অন্য উদাহরণসহ দেখায়। rm লাইনটা example/filename.txt object সরায়, তাই এর path বদলে আপনার upload করা object-এর path বসান। by default aws s3 rb সফল হতে bucket খালি থাকতে হবে Source 16সোর্স 16। একটা খালি-নয় এমন bucket সরাতে আপনাকে --force option দিতে হয় Source 16সোর্স 16। আগে মুছে ফেলা কিন্তু ধরে রাখা object আছে এমন একটা versioned bucket-এর ক্ষেত্রে command আপনাকে bucket সরাতে দেয় না, যতক্ষণ না আপনি সব বিষয়বস্তু সরান Source 16সোর্স 16।

How a tester uses it

  • Test environments on demand, billed by the second. When you no longer need an instance, you can terminate it Source 2সোর্স 2. Billing is per second with a one-minute minimum while the instance runs, even if it is idle Source 2সোর্স 2. You can't connect to or recover a terminated instance Source 2সোর্স 2. Before you terminate an instance, AWS says to back up all data that you need to retain Source 9সোর্স 9.
  • Know which state costs money. A stopped instance is not charged for usage. Charges are incurred for the storage of any EBS volumes Source 2সোর্স 2.
  • Test runners on Spot. Spot Instances are well-suited for data analysis, batch jobs, background processing, and optional tasks Source 5সোর্স 5. A Spot Instance gets a two-minute warning before it is interrupted Source 5সোর্স 5.
  • Repeatable instances. You can launch multiple instances from a single AMI when you require multiple instances with the same configuration Source 3সোর্স 3. User data runs automated configuration tasks or scripts after the instance starts Source 6সোর্স 6.
  • What survives a stop and start. You lose the data on the instance store volumes Source 2সোর্স 2. The instance gets a new public IPv4 address, unless it has a secondary network interface or a secondary private IPv4 address that is associated with an Elastic IP address Source 2সোর্স 2. Your instance retains its private IPv4 address Source 2সোর্স 2.
  • Which metadata calls are allowed. By default, you can use either IMDSv1 or IMDSv2, or both Source 7সোর্স 7. You can configure the IMDS on each instance to only accept IMDSv2 calls, which will cause IMDSv1 calls to fail Source 7সোর্স 7.
  • Test data and evidence in S3. An object is identified by its key within a bucket Source 10সোর্স 10. With versioning on, an overwritten object gets a new version, and you can always restore the previous version Source 11সোর্স 11.
  • Lifecycle rules keep a test bucket small. Expiration actions define when objects expire, and S3 deletes expired objects on your behalf Source 12সোর্স 12. A new rule also applies to existing objects: a rule that expires objects 30 days after creation queues for removal any existing objects that are more than 30 days old Source 12সোর্স 12.
  • Public access checks. New buckets, access points, and objects don't allow public access Source 13সোর্স 13. Calls to GetBucketAcl and GetObjectAcl always return the effective permissions in place Source 13সোর্স 13. For example, if a bucket has an ACL that grants public access and IgnorePublicAcls is on, GetBucketAcl returns an ACL that reflects the access permissions that S3 enforces, not the actual ACL of the bucket Source 13সোর্স 13.
  • Presigned URL failures. For a 403 Forbidden error, AWS says to verify that the IAM user or role that generated the URL has the required permissions, and that the bucket policy doesn't explicitly deny access to the object Source 14সোর্স 14. For SignatureDoesNotMatch errors, AWS says to first ensure that your system clock is synchronized with an NTP server, because even small time drifts can invalidate signatures Source 14সোর্স 14. A URL made with IAM role credentials expires when the role session expires, even if you set a longer expiration time Source 14সোর্স 14.
  • Causes of flaky S3 tests. Bucket configurations have an eventual consistency model Source 10সোর্স 10. AWS recommends a wait of 15 minutes after enabling versioning Source 10সোর্স 10. Two simultaneous PUT requests to one key are decided by the latest timestamp Source 10সোর্স 10.
  • Backups are your job. AWS does not automatically back up the data stored on your EBS volumes Source 18সোর্স 18.
  • Check permissions without creating anything. The --dry-run option of aws ec2 run-instances checks whether you have the required permissions for the operation, without actually making the request Source 24সোর্স 24. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation Source 24সোর্স 24. The tutorial did not run it, because it needs an account.
  • Look up a command without an account. The template that --generate-cli-skeleton generates includes all of the parameters that the command supports Source 20সোর্স 20. In the tutorial's run, it needed no account.

সহজ English

  • Test environments on demand, billed by the second. When you no longer need an instance, you can terminate it Source 2সোর্স 2. Billing is per second with a one-minute minimum while the instance runs, even if it is idle Source 2সোর্স 2. You can't connect to or recover a terminated instance Source 2সোর্স 2. Before you terminate an instance, AWS says to back up all data that you need to retain Source 9সোর্স 9.
  • Know which state costs money. A stopped instance is not charged for usage. Charges are incurred for the storage of any EBS volumes Source 2সোর্স 2.
  • Test runners on Spot. Spot Instances are well-suited for data analysis, batch jobs, background processing, and optional tasks Source 5সোর্স 5. A Spot Instance gets a two-minute warning before it is interrupted Source 5সোর্স 5.
  • Repeatable instances. You can launch multiple instances from a single AMI when you require multiple instances with the same configuration Source 3সোর্স 3. User data runs automated configuration tasks or scripts after the instance starts Source 6সোর্স 6.
  • What survives a stop and start. You lose the data on the instance store volumes Source 2সোর্স 2. The instance gets a new public IPv4 address, unless it has a secondary network interface or a secondary private IPv4 address that is associated with an Elastic IP address Source 2সোর্স 2. Your instance retains its private IPv4 address Source 2সোর্স 2.
  • Which metadata calls are allowed. By default, you can use either IMDSv1 or IMDSv2, or both Source 7সোর্স 7. You can configure the IMDS on each instance to only accept IMDSv2 calls, which will cause IMDSv1 calls to fail Source 7সোর্স 7.
  • Test data and evidence in S3. An object is identified by its key within a bucket Source 10সোর্স 10. With versioning on, an overwritten object gets a new version, and you can always restore the previous version Source 11সোর্স 11.
  • Lifecycle rules keep a test bucket small. Expiration actions define when objects expire, and S3 deletes expired objects on your behalf Source 12সোর্স 12. A new rule also applies to existing objects: a rule that expires objects 30 days after creation queues for removal any existing objects that are more than 30 days old Source 12সোর্স 12.
  • Public access checks. New buckets, access points, and objects don't allow public access Source 13সোর্স 13. Calls to GetBucketAcl and GetObjectAcl always return the effective permissions in place Source 13সোর্স 13. For example, if a bucket has an ACL that grants public access and IgnorePublicAcls is on, GetBucketAcl returns an ACL that reflects the access permissions that S3 enforces, not the actual ACL of the bucket Source 13সোর্স 13.
  • Presigned URL failures. For a 403 Forbidden error, AWS says to verify that the IAM user or role that generated the URL has the required permissions, and that the bucket policy doesn't explicitly deny access to the object Source 14সোর্স 14. For SignatureDoesNotMatch errors, AWS says to first ensure that your system clock is synchronized with an NTP server, because even small time drifts can invalidate signatures Source 14সোর্স 14. A URL made with IAM role credentials expires when the role session expires, even if you set a longer expiration time Source 14সোর্স 14.
  • Causes of flaky S3 tests. Bucket configurations have an eventual consistency model Source 10সোর্স 10. AWS recommends a wait of 15 minutes after enabling versioning Source 10সোর্স 10. Two simultaneous PUT requests to one key are decided by the latest timestamp Source 10সোর্স 10.
  • Backups are your job. AWS does not automatically back up the data stored on your EBS volumes Source 18সোর্স 18.
  • Check permissions without creating anything. The --dry-run option of aws ec2 run-instances checks whether you have the required permissions for the operation, without actually making the request Source 24সোর্স 24. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation Source 24সোর্স 24. The tutorial did not run it, because it needs an account.
  • Look up a command without an account. The template that --generate-cli-skeleton generates includes all of the parameters that the command supports Source 20সোর্স 20. In the tutorial's run, it needed no account.

বাংলা ব্যাখ্যা

  • চাহিদা মতো test environment, সেকেন্ড ধরে বিল। আপনার আর যখন একটা instance দরকার নেই, তখন আপনি তা terminate করতে পারেন Source 2সোর্স 2। instance চলার সময় বিল সেকেন্ড ধরে, কমপক্ষে এক মিনিট, instance বসে থাকলেও Source 2সোর্স 2। terminate করা instance-এ সংযোগ দেওয়া বা তা ফিরে পাওয়া যায় না Source 2সোর্স 2। terminate করার আগে যে data আপনার রাখা দরকার তার backup নিতে AWS বলে Source 9সোর্স 9।
  • কোন state-এ খরচ হয়, জানুন। একটা stopped instance-এর ব্যবহারের জন্য খরচ হয় না। যেকোনো EBS volume-এর storage-এর জন্য খরচ হয় Source 2সোর্স 2।
  • Spot-এ test runner। Spot Instance data analysis, batch job, background processing আর ঐচ্ছিক কাজের জন্য উপযুক্ত Source 5সোর্স 5। একটা Spot Instance interrupt হওয়ার আগে দুই মিনিটের সতর্কবার্তা পায় Source 5সোর্স 5।
  • পুনরাবৃত্তিযোগ্য instance। একই configuration-এর একাধিক instance দরকার হলে আপনি একটা AMI থেকে একাধিক instance চালু করতে পারেন Source 3সোর্স 3। User data instance চালু হওয়ার পর automated configuration-এর কাজ বা script চালায় Source 6সোর্স 6।
  • stop আর start-এর পর কী টিকে থাকে। আপনি instance store volume-এর data হারান Source 2সোর্স 2। instance একটা নতুন public IPv4 address পায়, যদি না তার একটা secondary network interface বা একটা secondary private IPv4 address থাকে যা একটা Elastic IP address-এর সঙ্গে যুক্ত Source 2সোর্স 2। আপনার instance তার private IPv4 address ধরে রাখে Source 2সোর্স 2।
  • কোন metadata call অনুমোদিত। by default আপনি IMDSv1 বা IMDSv2 ব্যবহার করতে পারেন, বা দুটোই Source 7সোর্স 7। আপনি প্রতিটা instance-এ IMDS এমনভাবে configure করতে পারেন, যাতে সে শুধু IMDSv2 call নেয়, ফলে IMDSv1 call ব্যর্থ হবে Source 7সোর্স 7।
  • S3-এ test data আর প্রমাণ। একটা bucket-এর ভেতরে একটা object তার key দিয়ে চেনা যায় Source 10সোর্স 10। versioning চালু থাকলে overwrite করা object একটা নতুন version পায়, আর আপনি আগের version সবসময় ফিরিয়ে আনতে পারেন Source 11সোর্স 11।
  • Lifecycle rule একটা test bucket ছোট রাখে। Expiration action ঠিক করে কখন object-এর মেয়াদ শেষ হবে, আর S3 আপনার পক্ষ থেকে মেয়াদ-শেষ object মুছে দেয় Source 12সোর্স 12। একটা নতুন rule বিদ্যমান object-এর ওপরও প্রযোজ্য: তৈরির ৩০ দিন পর object-এর মেয়াদ শেষ করা একটা rule ৩০ দিনের বেশি পুরোনো সব বিদ্যমান object সরানোর জন্য queue-তে রাখে Source 12সোর্স 12।
  • Public access-এর পরীক্ষা। নতুন bucket, access point আর object public access দেয় না Source 13সোর্স 13। GetBucketAcl আর GetObjectAcl call সবসময় কার্যকর permission ফেরত দেয় Source 13সোর্স 13। উদাহরণ: একটা bucket-এর ACL public access দিলে আর IgnorePublicAcls চালু থাকলে GetBucketAcl এমন একটা ACL ফেরত দেয়, যা S3 যে access permission প্রয়োগ করছে তা প্রতিফলিত করে, bucket-এর আসল ACL নয় Source 13সোর্স 13।
  • Presigned URL ব্যর্থতা। একটা 403 Forbidden error-এর জন্য AWS বলে যাচাই করতে, URL যে IAM user বা role বানিয়েছে তার প্রয়োজনীয় permission আছে কি না, আর bucket policy object-এ access স্পষ্টভাবে অস্বীকার করে কি না Source 14সোর্স 14। SignatureDoesNotMatch error-এর জন্য AWS বলে আগে নিশ্চিত করতে যে আপনার system-এর ঘড়ি একটা NTP server-এর সঙ্গে সিঙ্ক করা, কারণ সামান্য সময়ের ফারাকও signature অকার্যকর করতে পারে Source 14সোর্স 14। IAM role credential দিয়ে বানানো একটা URL-এর মেয়াদ role session শেষ হলে শেষ হয়, আপনি বেশি মেয়াদ দিলেও Source 14সোর্স 14।
  • flaky S3 test-এর কারণ। Bucket configuration-এর eventual consistency model আছে Source 10সোর্স 10। AWS versioning চালু করার পর ১৫ মিনিট অপেক্ষা করার সুপারিশ করে Source 10সোর্স 10। একই key-তে দুটো একসঙ্গে PUT request-এর ফয়সালা করে latest timestamp Source 10সোর্স 10।
  • backup আপনার কাজ। AWS আপনার EBS volume-এর data স্বয়ংক্রিয়ভাবে backup করে না Source 18সোর্স 18।
  • কিছু তৈরি না করেই permission যাচাই। aws ec2 run-instances-এর --dry-run option যাচাই করে operation-টার জন্য আপনার প্রয়োজনীয় permission আছে কি না, request আসলে না করেই Source 24সোর্স 24। প্রয়োজনীয় permission থাকলে error response হয় DryRunOperation। না থাকলে হয় UnauthorizedOperation Source 24সোর্স 24। টিউটোরিয়াল এটা চালায়নি, কারণ এর জন্য account লাগে।
  • account ছাড়া একটা command দেখে নিন। --generate-cli-skeleton যে template তৈরি করে তাতে command-টা যত parameter সমর্থন করে সবগুলো থাকে Source 20সোর্স 20। টিউটোরিয়ালের run-এ এর জন্য কোনো account লাগেনি।

Common mistakes

  • Leaving an instance running. A running instance is billed for each second, even if it remains idle Source 2সোর্স 2. In AWS's tutorial, if the Free Tier conditions don't apply to your account, you incur the standard fees from the time that you launch the instance (even if it remains idle) until you terminate it Source 9সোর্স 9.
  • Thinking that a stop ends all cost. You are not charged for usage or data transfer fees for a stopped instance, but charges are incurred for the storage of any EBS volumes Source 2সোর্স 2. Elastic IP addresses also incur charges regardless of the instance's state Source 2সোর্স 2.
  • Expecting instance store data to survive. Instance store volumes hold temporary data that is deleted when you stop, hibernate, or terminate your instance Source 1সোর্স 1.
  • Terminating when you meant to stop. Terminating an instance is permanent and irreversible Source 9সোর্স 9. The default is to delete the root volume Source 2সোর্স 2.
  • Leaving SSH open to the world. AWS says that 0.0.0.0/0 for SSH might be acceptable for a short time in a test environment, but it's unsafe for production environments Source 9সোর্স 9.
  • Losing or sharing the private key. EC2 doesn't keep a copy of your private key, so there is no way to recover a private key if you lose it Source 8সোর্স 8. Anyone who possesses it can connect to your instances that use the key pair Source 8সোর্স 8.
  • Expecting user data to run on every boot. By default, user data scripts and cloud-init directives run only during the boot cycle when you first launch an instance Source 6সোর্স 6. The instance user data is not included in an AMI that you create from the instance Source 6সোর্স 6.
  • Assuming that AWS backs up your disks. AWS does not automatically back up the data stored on your EBS volumes Source 18সোর্স 18.
  • Treating versioning as a switch. After you version-enable a bucket, it can never return to an unversioned state Source 11সোর্স 11. You are charged for every version of an object that is stored Source 11সোর্স 11.
  • Expecting a bucket policy to stop a lifecycle rule. For general purpose buckets, you can't use a bucket policy to prevent deletions or transitions by an S3 Lifecycle rule Source 12সোর্স 12.
  • Relying on Block Public Access alone. In addition to enabling Block Public Access, carefully inspect the other policies to confirm that they don't grant public access Source 13সোর্স 13. Removing a block public access setting makes a bucket or object with a public policy or ACL publicly accessible again Source 13সোর্স 13.
  • Treating a presigned URL as private. Presigned URLs are bearer tokens that grant access to those who possess them Source 14সোর্স 14.
  • Two writers on one key. S3 does not support object locking for concurrent writers Source 10সোর্স 10.
  • Using aws s3 where a template is needed. Custom commands, such as the aws s3 commands, don't support --generate-cli-skeleton Source 20সোর্স 20.
  • Expecting to resume a failed aws s3 upload. You can't resume a failed upload when using these commands Source 16সোর্স 16. If the multipart upload or cleanup process is canceled by a kill command or system failure, the created files remain in the bucket Source 16সোর্স 16.

সহজ English

  • Leaving an instance running. A running instance is billed for each second, even if it remains idle Source 2সোর্স 2. In AWS's tutorial, if the Free Tier conditions don't apply to your account, you incur the standard fees from the time that you launch the instance (even if it remains idle) until you terminate it Source 9সোর্স 9.
  • Thinking that a stop ends all cost. You are not charged for usage or data transfer fees for a stopped instance, but charges are incurred for the storage of any EBS volumes Source 2সোর্স 2. Elastic IP addresses also incur charges regardless of the instance's state Source 2সোর্স 2.
  • Expecting instance store data to survive. Instance store volumes hold temporary data that is deleted when you stop, hibernate, or terminate your instance Source 1সোর্স 1.
  • Terminating when you meant to stop. Terminating an instance is permanent and irreversible Source 9সোর্স 9. The default is to delete the root volume Source 2সোর্স 2.
  • Leaving SSH open to the world. AWS says that 0.0.0.0/0 for SSH might be acceptable for a short time in a test environment, but it's unsafe for production environments Source 9সোর্স 9.
  • Losing or sharing the private key. EC2 doesn't keep a copy of your private key. So there is no way to recover a private key if you lose it Source 8সোর্স 8. Anyone who possesses it can connect to your instances that use the key pair Source 8সোর্স 8.
  • Expecting user data to run on every boot. By default, user data scripts and cloud-init directives run only during the boot cycle when you first launch an instance Source 6সোর্স 6. The instance user data is not included in an AMI that you create from the instance Source 6সোর্স 6.
  • Assuming that AWS backs up your disks. AWS does not automatically back up the data stored on your EBS volumes Source 18সোর্স 18.
  • Treating versioning as a switch. After you version-enable a bucket, it can never return to an unversioned state Source 11সোর্স 11. You are charged for every version of an object that is stored Source 11সোর্স 11.
  • Expecting a bucket policy to stop a lifecycle rule. For general purpose buckets, you can't use a bucket policy to prevent deletions or transitions by an S3 Lifecycle rule Source 12সোর্স 12.
  • Relying on Block Public Access alone. In addition to enabling Block Public Access, carefully inspect the other policies to confirm that they don't grant public access Source 13সোর্স 13. Removing a block public access setting makes a bucket or object with a public policy or ACL publicly accessible again Source 13সোর্স 13.
  • Treating a presigned URL as private. Presigned URLs are bearer tokens that grant access to those who possess them Source 14সোর্স 14.
  • Two writers on one key. S3 does not support object locking for concurrent writers Source 10সোর্স 10.
  • Using aws s3 where a template is needed. Custom commands, such as the aws s3 commands, don't support --generate-cli-skeleton Source 20সোর্স 20.
  • Expecting to resume a failed aws s3 upload. You can't resume a failed upload when using these commands Source 16সোর্স 16. If the multipart upload or cleanup process is canceled by a kill command or system failure, the created files remain in the bucket Source 16সোর্স 16.

বাংলা ব্যাখ্যা

  • একটা instance চালু ফেলে রাখা। একটা চলমান instance প্রতি সেকেন্ডের জন্য বিল করে, বসে থাকলেও Source 2সোর্স 2। AWS-এর টিউটোরিয়ালে Free Tier-এর শর্ত আপনার account-এর ক্ষেত্রে প্রযোজ্য না হলে আপনি instance চালু করার মুহূর্ত থেকে terminate করা পর্যন্ত (instance বসে থাকলেও) স্বাভাবিক ফি দেন Source 9সোর্স 9।
  • ভাবা যে stop করলে সব খরচ থামে। একটা stopped instance-এর ব্যবহার বা data transfer-এর ফি লাগে না, কিন্তু যেকোনো EBS volume-এর storage-এর জন্য খরচ হয় Source 2সোর্স 2। Elastic IP address-ও instance-এর state যা-ই হোক খরচ ঘটায় Source 2সোর্স 2।
  • instance store-এর data টিকে থাকবে ভাবা। Instance store volume সাময়িক data রাখে, যা আপনি instance stop, hibernate বা terminate করলে মুছে যায় Source 1সোর্স 1।
  • stop করতে চেয়ে terminate করা। একটা instance terminate করা স্থায়ী আর অপরিবর্তনীয় Source 9সোর্স 9। by default root volume মুছে যায় Source 2সোর্স 2।
  • SSH পুরো দুনিয়ার জন্য খোলা রাখা। AWS বলে, SSH-এর জন্য 0.0.0.0/0 একটা test environment-এ অল্প সময়ের জন্য গ্রহণযোগ্য হতে পারে, কিন্তু production environment-এর জন্য তা অনিরাপদ Source 9সোর্স 9।
  • private key হারানো বা অন্যকে দেওয়া। EC2 আপনার private key-র কোনো কপি রাখে না। তাই private key হারালে তা ফিরে পাওয়ার কোনো উপায় নেই Source 8সোর্স 8। যার কাছে তা আছে, সে ওই key pair ব্যবহার করা আপনার instance-গুলোতে সংযোগ দিতে পারে Source 8সোর্স 8।
  • user data প্রতিবার boot-এ চলবে ভাবা। by default user data script আর cloud-init directive শুধু সেই boot cycle-এ চলে, যখন আপনি প্রথম instance চালু করেন Source 6সোর্স 6। আপনি একটা instance থেকে যে AMI বানান, তাতে ওই instance-এর user data থাকে না Source 6সোর্স 6।
  • ধরে নেওয়া যে AWS আপনার disk-এর backup নেয়। AWS আপনার EBS volume-এর data স্বয়ংক্রিয়ভাবে backup করে না Source 18সোর্স 18।
  • versioning-কে একটা switch ভাবা। একটা bucket version-enable করার পর সেটা আর কখনো unversioned অবস্থায় ফিরতে পারে না Source 11সোর্স 11। একটা object-এর যতগুলো version রাখা আছে, প্রতিটার জন্য আপনার খরচ হয় Source 11সোর্স 11।
  • ভাবা যে bucket policy একটা lifecycle rule আটকাবে। general purpose bucket-এর ক্ষেত্রে আপনি bucket policy দিয়ে একটা S3 Lifecycle rule-এর মুছে ফেলা বা transition আটকাতে পারেন না Source 12সোর্স 12।
  • শুধু Block Public Access-এর ওপর ভরসা করা। Block Public Access চালু করার পাশাপাশি অন্য policy-গুলো সাবধানে দেখুন, যাতে নিশ্চিত হন সেগুলো public access দিচ্ছে না Source 13সোর্স 13। একটা block public access setting সরালে public policy বা ACL থাকা bucket বা object আবার public হয়ে যায় Source 13সোর্স 13।
  • presigned URL-কে private ভাবা। presigned URL হলো bearer token, যা যার কাছে আছে তাকে access দেয় Source 14সোর্স 14।
  • একই key-তে দুই writer। S3 একসঙ্গে লেখা writer-দের জন্য object locking সমর্থন করে না Source 10সোর্স 10।
  • যেখানে template দরকার সেখানে aws s3 ব্যবহার। custom command, যেমন aws s3 command, --generate-cli-skeleton সমর্থন করে না Source 20সোর্স 20।
  • ব্যর্থ aws s3 upload আবার শুরু করা যাবে ভাবা। এই command দিয়ে ব্যর্থ upload আপনি আবার শুরু করতে পারেন না Source 16সোর্স 16। multipart upload বা পরিষ্কারের কাজ kill command বা system failure-এ বাতিল হলে তৈরি হওয়া file bucket-এ থেকে যায় Source 16সোর্স 16।

What a tester can check

Tutorial advice

This list is the tutorial's own advice for a tester who uses EC2, EBS, and S3.

  • Before a run, write down every resource that it creates: instances, volumes, addresses, buckets, and objects.
  • Name or tag everything that a test creates, so that the cleanup can find it.
  • After each run, list what is left and delete it. Then look at the bill, not only at the console.
  • Terminate a test instance instead of stopping it, unless you need its disks later. A stopped instance still pays for its EBS volumes.
  • Copy logs and reports out of an instance, for example to S3, before you terminate it.
  • Do not store a fixed public address in a test. Read the address again after each start.
  • Check the Block Public Access settings of a bucket first, and then its policies and ACLs.
  • Test a presigned URL three times: before it expires, after it expires, and with a different HTTP method.
  • After you enable versioning in a test, wait as AWS advises. Do not add a sleep to every test.
  • Check which IMDS versions an instance accepts, and try one call of each version.
  • Never put a real credential in user data, in a skeleton file, or in a script that you commit.
  • Use s3api when you need a template, and aws s3 when you copy files.
  • Before a real launch, run it with --dry-run to see whether your permissions are enough.

সহজ English

Tutorial advice

This list is the tutorial's own advice for a tester who uses EC2, EBS, and S3.

  • Before a run, write down every resource that it creates: instances, volumes, addresses, buckets, and objects.
  • Name or tag everything that a test creates, so that the cleanup can find it.
  • After each run, list what is left and delete it. Then look at the bill, not only at the console.
  • Terminate a test instance instead of stopping it, unless you need its disks later. A stopped instance still pays for its EBS volumes.
  • Copy logs and reports out of an instance, for example to S3, before you terminate it.
  • Do not store a fixed public address in a test. Read the address again after each start.
  • Check the Block Public Access settings of a bucket first, and then its policies and ACLs.
  • Test a presigned URL three times: before it expires, after it expires, and with a different HTTP method.
  • After you enable versioning in a test, wait as AWS advises. Do not add a sleep to every test.
  • Check which IMDS versions an instance accepts, and try one call of each version.
  • Never put a real credential in user data, in a skeleton file, or in a script that you commit.
  • Use s3api when you need a template, and aws s3 when you copy files.
  • Before a real launch, run it with --dry-run to see whether your permissions are enough.

বাংলা ব্যাখ্যা

Tutorial advice

এই তালিকা টিউটোরিয়ালের নিজের পরামর্শ, এমন একজন tester-এর জন্য যিনি EC2, EBS আর S3 ব্যবহার করেন।

  • একটা run-এর আগে লিখে রাখুন সেটা কোন কোন resource তৈরি করে: instance, volume, address, bucket আর object।
  • একটা test যা-কিছু তৈরি করে সবকিছুর নাম দিন বা tag করুন, যাতে পরিষ্কারের কাজ সেগুলো খুঁজে পায়।
  • প্রতিটা run-এর পর কী বাকি আছে তালিকা করুন আর মুছে ফেলুন। তারপর শুধু console নয়, বিলও দেখুন।
  • পরে disk লাগবে না হলে একটা test instance stop না করে terminate করুন। একটা stopped instance তার EBS volume-এর জন্য তবু দাম দেয়।
  • instance terminate করার আগে log আর report instance-এর বাইরে কপি করুন, যেমন S3-এ।
  • একটা test-এ স্থির public address জমা রাখবেন না। প্রতিটা start-এর পর address আবার পড়ুন।
  • একটা bucket-এর Block Public Access setting আগে দেখুন, তারপর তার policy আর ACL।
  • একটা presigned URL তিনবার test করুন: মেয়াদ শেষের আগে, মেয়াদ শেষের পরে, আর অন্য একটা HTTP method দিয়ে।
  • একটা test-এ versioning চালু করার পর AWS যেমন বলে তেমন অপেক্ষা করুন। প্রতিটা test-এ একটা sleep যোগ করবেন না।
  • একটা instance কোন IMDS version নেয় তা দেখুন, আর প্রতিটা version-এর একটা করে call চেষ্টা করুন।
  • user data-তে, skeleton file-এ বা commit করা script-এ কখনো আসল credential রাখবেন না।
  • template দরকার হলে s3api ব্যবহার করুন, আর file কপি করতে aws s3 ব্যবহার করুন।
  • সত্যিকারের launch-এর আগে --dry-run দিয়ে চালান, দেখতে যে আপনার permission যথেষ্ট কি না।

Key words

TermMeaning
EC2 instanceA virtual server in the AWS Cloud
AMIAn Amazon Machine Image: an image that provides the software that is required to set up and boot an EC2 instance
Instance typeIt determines the hardware available to your instance; each type offers a different balance of compute, memory, network, and storage resources
EBS volumeA storage volume that you attach to an instance and use in the same way as a local hard drive
Instance store volumeStorage for temporary data that is deleted when you stop, hibernate, or terminate your instance
SnapshotA point-in-time backup of an EBS volume; it is an incremental backup
Key pairA public key and a private key: security credentials that you use to prove your identity when connecting to an instance
User dataData that you pass to an instance at launch, to perform automated configuration tasks or to run scripts
IMDSThe Instance Metadata Service, which a running instance uses to read its instance metadata; IMDSv2 uses session-oriented requests
Spot InstanceAn instance that uses spare EC2 capacity that is available for less than the On-Demand price; EC2 gives it a two-minute interruption notice
S3 bucketA container for objects
Object keyThe unique identifier for an object within a bucket
Storage classEach S3 object has one; objects are stored in S3 Standard by default
VersioningKeeps multiple variants of an object in the same bucket; it is disabled by default
Delete markerWhat S3 inserts instead of removing an object permanently, when you delete an object in a versioning-enabled bucket
Lifecycle ruleA rule in an S3 Lifecycle configuration: a transition action or an expiration action
Block Public AccessFour S3 settings that override policies and permissions, to limit public access
Presigned URLA URL that grants time-limited access to an object without updating your bucket policy
--generate-cli-skeletonAn AWS CLI option that generates and displays a parameter template for a command
--dry-runAn option of aws ec2 run-instances that checks whether you have the required permissions for the operation, without actually making the request

Reels on this topicএই টপিকের রিলস

Short videos from other creators, picked for this topic. They are not part of this page's fact-checked text. Nothing loads from YouTube until you press Play.অন্য ক্রিয়েটরদের বানানো ছোট ভিডিও, এই টপিকের জন্য বাছাই করা। এগুলো এই পেজের ফ্যাক্ট-চেক করা লেখার অংশ নয়। চালান বাটন চাপার আগে YouTube থেকে কিছুই লোড হয় না।

Show 11 more reelsআরও 11টি রিল দেখান
  1. [1]
    What is Amazon EC2?

    AWS Documentation · accessed 2026-11-18দেখা হয়েছে: 2026-11-18

  2. [2]
    Amazon EC2 instance state changes

    AWS Documentation · accessed 2026-11-18দেখা হয়েছে: 2026-11-18

  3. [3]
    Amazon Machine Images in Amazon EC2

    AWS Documentation · accessed 2026-11-18দেখা হয়েছে: 2026-11-18

  4. [4]
    Amazon EC2 billing and purchasing options

    AWS Documentation · accessed 2026-11-18দেখা হয়েছে: 2026-11-18

  5. [5]
    Spot Instances

    AWS Documentation · accessed 2026-11-18দেখা হয়েছে: 2026-11-18

  6. [6]
    Run commands when you launch an EC2 instance with user data input

    AWS Documentation · accessed 2026-11-18দেখা হয়েছে: 2026-11-18

  7. [7]
    Use the Instance Metadata Service to access instance metadata

    AWS Documentation · accessed 2026-11-18দেখা হয়েছে: 2026-11-18

  8. [8]
    Amazon EC2 key pairs and Amazon EC2 instances

    AWS Documentation · accessed 2026-11-18দেখা হয়েছে: 2026-11-18

  9. [9]
    Get started with Amazon EC2

    AWS Documentation · accessed 2026-11-18দেখা হয়েছে: 2026-11-18

  10. [10]
    What is Amazon S3?

    AWS Documentation · accessed 2026-11-18দেখা হয়েছে: 2026-11-18

  11. [11]
    Retaining multiple versions of objects with S3 Versioning

    AWS Documentation · accessed 2026-11-18দেখা হয়েছে: 2026-11-18

  12. [12]
    Managing the lifecycle of objects

    AWS Documentation · accessed 2026-11-18দেখা হয়েছে: 2026-11-18

  13. [13]
    Blocking public access to your Amazon S3 storage

    AWS Documentation · accessed 2026-11-18দেখা হয়েছে: 2026-11-18

  14. [14]
    Download and upload objects with presigned URLs

    AWS Documentation · accessed 2026-11-18দেখা হয়েছে: 2026-11-18

  15. [15]
    Understanding and managing Amazon S3 storage classes

    AWS Documentation · accessed 2026-11-18দেখা হয়েছে: 2026-11-18

  16. [16]
    Using high-level (s3) commands in the AWS CLI

    AWS Documentation · accessed 2026-11-18দেখা হয়েছে: 2026-11-18

  17. [17]
    What is Amazon Elastic Block Store?

    AWS Documentation · accessed 2026-11-18দেখা হয়েছে: 2026-11-18

  18. [18]
    Amazon EBS snapshots

    AWS Documentation · accessed 2026-11-18দেখা হয়েছে: 2026-11-18

  19. [19]
    Amazon EBS volume types

    AWS Documentation · accessed 2026-11-18দেখা হয়েছে: 2026-11-18

  20. [20]
    AWS CLI skeletons and input files in the AWS CLI

    AWS Documentation · accessed 2026-11-18দেখা হয়েছে: 2026-11-18

  21. [21]
    Installing or updating to the latest version of the AWS CLI

    AWS Documentation · accessed 2026-11-18দেখা হয়েছে: 2026-11-18

  22. [22]
    Configuring environment variables for the AWS CLI

    AWS Documentation · accessed 2026-11-18দেখা হয়েছে: 2026-11-18

  23. [23]
    Command line return codes in the AWS CLI

    AWS Documentation · accessed 2026-11-18দেখা হয়েছে: 2026-11-18

  24. [24]
    run-instances

    AWS Documentation · accessed 2026-11-18দেখা হয়েছে: 2026-11-18