{"id":1248,"date":"2023-12-22T14:26:43","date_gmt":"2023-12-22T14:26:43","guid":{"rendered":"http:\/\/obl.icz.temporary.site\/?p=1248"},"modified":"2024-01-07T23:52:58","modified_gmt":"2024-01-07T23:52:58","slug":"easy-steps-to-aws-with-aws-cli-sdk","status":"publish","type":"post","link":"https:\/\/www.maghilda.com\/staging\/9669\/easy-steps-to-aws-with-aws-cli-sdk\/","title":{"rendered":"HOWTO: Easy steps to AWS  development with AWS CLI\/SDK"},"content":{"rendered":"\n<p>In this tutorial, you will learn how to set up your AWS account and development environment on a macOS with Visual Studio Code using AWS SDK and AWS CLI. This will allow you to interact with your AWS account and programmatically provision any resources you need.<\/p>\n\n\n\n<ul class=\"wp-block-list\" style=\"margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;padding-top:0;padding-right:var(--wp--preset--spacing--50);padding-bottom:0;padding-left:var(--wp--preset--spacing--50)\">\n<li>Create a new AWS account<\/li>\n\n\n\n<li>Configure a new user in IAM Identity Center<\/li>\n\n\n\n<li>Install Python<\/li>\n\n\n\n<li>Install Visual Studio Code\n<ul class=\"wp-block-list\">\n<li>install Python extension for VS code<\/li>\n\n\n\n<li>install AWS toolkit extension for VS code<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Set up the AWS CLI<\/li>\n\n\n\n<li>Set up AWS SDK (boto3 for python)<\/li>\n\n\n\n<li>S3 Code Examples<\/li>\n<\/ul>\n\n\n\n<p>Note: Follow the instructions in the order below as there are dependencies. For example, to use Boto3, you first need to install Python and AWS CLI.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Create a new AWS account<\/h3>\n\n\n\n<p style=\"margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;padding-top:0;padding-right:0;padding-bottom:0;padding-left:0\">Sign up for AWS account on the aws website at <a href=\"https:\/\/aws.amazon.com\/\">https:\/\/aws.amazon.com\/<\/a><br>When signing up, sign up for the Basic Support which is free of charge. You can always change support tiers at a later date.&nbsp;<br><br>When you create an AWS account, a root user is created automatically for your account. The root user is a special entity that has full access to the account, and can perform all actions, including changing the payment methods or closing the account. When you sign-in using the root user you have complete access to all AWS service and resources in the account. Due to this level of permissions,<\/p>\n\n\n\n<ul class=\"wp-block-list\" style=\"margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;padding-top:0;padding-right:var(--wp--preset--spacing--50);padding-bottom:0;padding-left:var(--wp--preset--spacing--50)\">\n<li>Enable additional security for the root user with multi-factor authentication (MFA). I set up MFA in IAM and used Google Authenticator App on my mobile phone.<\/li>\n\n\n\n<li>Set up additional users to perform daily tasks related to your account.&nbsp;<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Configure Users<\/h3>\n\n\n\n<p>After establishing the root user account, I created a separate admin user account in <strong>IAM Identity Center<\/strong> and also enabled MFA for this account.<br>Follow the detailed instructions here <a href=\"https:\/\/aws.amazon.com\/getting-started\/guides\/setup-environment\/\">https:\/\/aws.amazon.com\/getting-started\/guides\/setup-environment\/<\/a>.<br><br><strong>Important:<\/strong> Each AWS Organization has a unique access portal URL. Make sure you keep a record of it with your user sign-in information, the Start URL typically looks like<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>https:\/\/<a href=\"https:\/\/<your url>.awsapps.com\/start\/\" rel=\"nofollow\">&lt;your url&gt;<\/a>.awsapps.com\/start\/<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Install a Python interpreter<\/h3>\n\n\n\n<p>For the development setup, install a package manager system like Homebrew as the system install of Python on macOS is not supported. To install Python using Homebrew on macOS use brew install python3 at the Terminal prompt.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>brew install python3<\/strong><\/code><\/pre>\n\n\n\n<p style=\"margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;padding-top:0;padding-right:0;padding-bottom:0;padding-left:0\">Once Python is installed, run&nbsp;<strong>python3 &#8211;version<\/strong>&nbsp;in the command line and see the following output (version may be different):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>python3 --version<\/strong>\nPython 3.11.6<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Install Visual Studio Code<\/h3>\n\n\n\n<ol class=\"wp-block-list\" style=\"margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;padding-top:0;padding-right:var(--wp--preset--spacing--50);padding-bottom:0;padding-left:var(--wp--preset--spacing--50)\">\n<li><a href=\"https:\/\/go.microsoft.com\/fwlink\/?LinkID=534106\">Download Visual Studio Code<\/a> for macOS.<\/li>\n\n\n\n<li>Open the browser&#8217;s download list and locate the downloaded app or archive.<\/li>\n\n\n\n<li>If archive, extract the archive contents. Use double-click for some browsers or select the &#8216;magnifying glass&#8217; icon with Safari.<\/li>\n\n\n\n<li>Drag Visual Studio Code.app to the <strong>Applications<\/strong> folder, making it available in the macOS Launchpad.<\/li>\n\n\n\n<li>Open VS Code from the <strong>Applications<\/strong> folder, by double clicking the icon.<\/li>\n\n\n\n<li>Add VS Code to your Dock by right-clicking on the icon, located in the Dock, to bring up the context menu and choosing <strong>Options<\/strong>, <strong>Keep in Dock<\/strong>.<\/li>\n<\/ol>\n\n\n\n<p><\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><em>Install Python extension for Visual Studio Code<\/em><\/h5>\n\n\n\n<p style=\"margin-top:0;margin-bottom:0\">You can download, install, and set up the Python for Visual Studio Code through the VS Code Marketplace in your IDE.<\/p>\n\n\n\n<ol class=\"wp-block-list\" style=\"margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;padding-top:0;padding-right:var(--wp--preset--spacing--50);padding-bottom:0;padding-left:var(--wp--preset--spacing--50)\">\n<li>Click the extensions button on the left navigation bar and then in the Search Extensions in Marketplace, enter python.<\/li>\n\n\n\n<li>Choose <strong>Install<\/strong> to begin the installation process.<\/li>\n<\/ol>\n\n\n\n<p><\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><em>Install AWS Toolkit for Visual Studio Code<\/em><\/h5>\n\n\n\n<p style=\"margin-top:0;margin-right:0;margin-bottom:0;margin-left:0\">You can download, install, and set up the AWS Toolkit for Visual Studio Code through the VS Code Marketplace in your IDE.<\/p>\n\n\n\n<ol class=\"wp-block-list\" style=\"margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;padding-top:0;padding-right:var(--wp--preset--spacing--50);padding-bottom:0;padding-left:var(--wp--preset--spacing--50)\">\n<li>Click the extensions button on the left navigation bar and then in the Search Extensions in Marketplace, enter aws toolkit.<\/li>\n\n\n\n<li>From the AWS Toolkit for Visual Studio Code extension in the VS Code Marketplace, choose <strong>Install<\/strong> to begin the installation process.<\/li>\n\n\n\n<li><strong>Restart VS Code to complete the installation process.<\/strong><\/li>\n<\/ol>\n\n\n\n<p><\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><em>Connect AWS Toolkit to IAM Identity Center<\/em><\/h5>\n\n\n\n<p style=\"margin-top:0;margin-bottom:0\">This process launches your IAM Identity Center portal in your preferred web browser.<\/p>\n\n\n\n<ol class=\"wp-block-list\" style=\"margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;padding-top:0;padding-right:var(--wp--preset--spacing--50);padding-bottom:0;padding-left:var(--wp--preset--spacing--50)\">\n<li>From VS Code, open the command pallet by pressing Shift+Command+P (Ctrl+Shift+P Windows), enter AWS: Add a New Connection into the search field, then select it to open the <strong>Connect to AWS<\/strong> new connection User interface (UI).<\/li>\n\n\n\n<li>From the Connect to AWS new connection UI, choose AWS Explorer.<\/li>\n\n\n\n<li>From the <strong>AWS Explorer<\/strong> view, enter the URL for your IAM Identity Center portal into the <strong>Start URL<\/strong> field and select the AWS Region that&#8217;s associated with your IAM Identity Center credentials.<\/li>\n\n\n\n<li>Choose <strong>Sign in<\/strong> and confirm that you want to open the IAM Identity Center portal in your preferred browser.<\/li>\n\n\n\n<li>Follow the instructions in your web browser to continue, you&#8217;re notified that it&#8217;s safe to close your browser and return to VS Code when the process is complete.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img fetchpriority=\"high\" decoding=\"async\" width=\"828\" height=\"549\" src=\"http:\/\/obl.icz.temporary.site\/wp-content\/uploads\/2023\/12\/Screen-Shot-2023-12-22-at-11.26.50-AM.png\" alt=\"\" class=\"wp-image-1931\" style=\"width:649px;height:auto\" srcset=\"https:\/\/www.maghilda.com\/staging\/9669\/wp-content\/uploads\/2023\/12\/Screen-Shot-2023-12-22-at-11.26.50-AM.png 828w, https:\/\/www.maghilda.com\/staging\/9669\/wp-content\/uploads\/2023\/12\/Screen-Shot-2023-12-22-at-11.26.50-AM-300x199.png 300w, https:\/\/www.maghilda.com\/staging\/9669\/wp-content\/uploads\/2023\/12\/Screen-Shot-2023-12-22-at-11.26.50-AM-768x509.png 768w\" sizes=\"(max-width: 828px) 100vw, 828px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>AWS Toolkit for VSCode can now access your data.\nYou can close this window and start using AWS Toolkit for VSCode.<\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\"><em>Authenticate with IAM Identity Center credentials<\/em><\/h5>\n\n\n\n<ol class=\"wp-block-list\" style=\"margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;padding-top:0;padding-right:var(--wp--preset--spacing--50);padding-bottom:0;padding-left:var(--wp--preset--spacing--50)\">\n<li>Expand the AWS Explorer, then choose Select IAM Credentials to View Resources to open the Switch Connection dialog.<\/li>\n\n\n\n<li>Choose the IAM Identity Center credentials you want to authenticate with from the list.<\/li>\n\n\n\n<li>The <strong>Switch Connection<\/strong> dialog automatically closes and the AWS Explorer is updated with your AWS resources when the process is complete.<\/li>\n<\/ol>\n\n\n\n<p><\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><em>AWS Explorer<\/em><\/h5>\n\n\n\n<p style=\"margin-top:0;margin-bottom:0\"><strong>AWS Explorer<\/strong> is the main navigation pane for the AWS Toolkit. Your AWS services and resources are available through the AWS Explorer and are organized by region.<\/p>\n\n\n\n<ol class=\"wp-block-list\" style=\"margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;padding-top:0;padding-right:var(--wp--preset--spacing--50);padding-bottom:0;padding-left:var(--wp--preset--spacing--50)\">\n<li>From your <strong>AWS Explorer<\/strong>, choose the <strong>EXPLORER<\/strong> menu heading to expand the Region selector navigation pane.<\/li>\n\n\n\n<li>Choose a <strong>region<\/strong> to expand a list of your AWS services associated with that region.<\/li>\n\n\n\n<li>Choose an <strong>AWS service<\/strong> to view its associated features and resources.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"329\" height=\"443\" src=\"http:\/\/obl.icz.temporary.site\/wp-content\/uploads\/2023\/12\/Screen-Shot-2023-12-23-at-8.18.04-PM.png\" alt=\"\" class=\"wp-image-1941\" srcset=\"https:\/\/www.maghilda.com\/staging\/9669\/wp-content\/uploads\/2023\/12\/Screen-Shot-2023-12-23-at-8.18.04-PM.png 329w, https:\/\/www.maghilda.com\/staging\/9669\/wp-content\/uploads\/2023\/12\/Screen-Shot-2023-12-23-at-8.18.04-PM-223x300.png 223w\" sizes=\"(max-width: 329px) 100vw, 329px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Set up AWS CLI<\/h3>\n\n\n\n<p>The AWS CLI is a unified tool to manage your AWS services from the command line and automate them through scripts.&nbsp;To install AWS CLI, follow the instructions here <a href=\"https:\/\/docs.aws.amazon.com\/cli\/latest\/userguide\/getting-started-install.html\">https:\/\/docs.aws.amazon.com\/cli\/latest\/userguide\/getting-started-install.html<\/a><br><br>Once the AWS CLI is installed, you can run&nbsp;<strong>aws &#8211;version<\/strong>&nbsp;in your command line and see the following output (version may be different):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>aws --version<\/strong>\naws-cli\/2.15.3 Python\/3.11.6 Darwin\/21.6.0 exe\/x86_64 prompt\/off<\/code><\/pre>\n\n\n\n<p>The AWS CLI is now installed and to interact with AWS using the CLI, you need to configure credentials for it to use when making API calls. <\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><em>Configure Credentials<\/em><\/h5>\n\n\n\n<p>To configure the credentials, use the command &lt;<strong>aws configure sso<\/strong>&gt; to include the credentials of the user created<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>aws configure sso<\/strong><\/code><\/pre>\n\n\n\n<p>The CLI attempts to automatically open the SSO authorization page in your default browser and begins the sign in process for your IAM Identity Center account.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Attempting to automatically open the SSO authorization page in your default browser.\nIf the browser does not open or you wish to use a different device to authorize this request, open the following URL:\n\n<a href=\"https:\/\/device.sso.us-east-1.amazonaws.com\/\">https:\/\/device.sso.us-east-1.amazonaws.com\/<\/a>\n\nThen enter the code:\nXXXX-XXXX<\/code><\/pre>\n\n\n\n<p>After providing your password and MFA credential you are asked to <strong>allow access to your data<\/strong>. This gives permissions to the AWS CLI to retrieve and display the AWS accounts and roles that you are authorized to use with IAM Identity Center.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"716\" height=\"430\" src=\"http:\/\/obl.icz.temporary.site\/wp-content\/uploads\/2023\/12\/Screen-Shot-2023-12-23-at-5.40.34-PM.png\" alt=\"\" class=\"wp-image-1928\" srcset=\"https:\/\/www.maghilda.com\/staging\/9669\/wp-content\/uploads\/2023\/12\/Screen-Shot-2023-12-23-at-5.40.34-PM.png 716w, https:\/\/www.maghilda.com\/staging\/9669\/wp-content\/uploads\/2023\/12\/Screen-Shot-2023-12-23-at-5.40.34-PM-300x180.png 300w\" sizes=\"(max-width: 716px) 100vw, 716px\" \/><\/figure>\n\n\n\n<p>Select <strong>Allow<\/strong>. After authentication, you will be told that you can close the window.&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>botocore-client-maghildaprojects can now access your data.\nYou can close this window and start using botocore-client-maghildaprojects.<\/code><\/pre>\n\n\n\n<p>The CLI will update and show you the AWS accounts and roles that are available to you. <\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><em>Validate Credentials<\/em><\/h5>\n\n\n\n<p>Because you have only set up one AWS account with the AdministratorAccess role at this point that is the account and role you are signed in with. Your CLI window should now have these lines displayed:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>The only AWS account available to you is: 111111222222<br>Using the account ID 111111222222<br>The only role available to you is: AdministratorAccess<br>Using the role name \"AdministratorAccess\"<\/code><\/pre>\n\n\n\n<p>You are then asked to <strong>Specify the default output format<\/strong>, the <strong>default AWS Region<\/strong> to send commands to, and to <strong>provide a name for the profile<\/strong> so you can reference this profile when running commands in the CLI. <br>Select the default options by pressing enter. You will have the following:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>CLI default client Region &#91;us-east-1]:<br>CLI default output format &#91;None]:<br>CLI profile name &#91;AdministratorAccess-111111222222]:<\/code><\/pre>\n\n\n\n<p class=\"has-ast-global-color-2-color has-text-color has-link-color wp-elements-33ee6e7b4f768473504f1f034a7a21c4\">To use this profile when running commands, specify the profile name using <strong>&#8211;profile<\/strong>.<\/p>\n\n\n\n<p>The config file is located at ~\/.aws\/config on computers running Linux or macOS. If you open your config file, you will see these two sections:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ <strong>cat ~\/.aws\/config<\/strong>\n&#91;profile AdministratorAccess-111111222222]\nsso_session = maghildaprojects\nsso_account_id = 111111222222\nsso_role_name = AdministratorAccess\nregion = us-east-1\n&#91;sso-session maghildaprojects]\nsso_start_url = https:\/\/<a href=\"https:\/\/<your url>.awsapps.com\/start\/\" rel=\"nofollow\">&lt;your url&gt;<\/a>.awsapps.com\/start\/\nsso_region = us-east-1\nsso_registration_scopes = sso:account:access<\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\"><em>Test the Configuration<\/em><\/h5>\n\n\n\n<p>Now, run the &lt;<strong>aws ec2 describe-vpcs<\/strong>&gt; command to check if the configuration is correct. Each new AWS account has default VPCs configured so you can run this command without having any other services configured on your AWS account.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>aws ec2 describe-vpcs --profile AdministratorAccess-111111222222 <\/strong>\n{\n    \"Vpcs\": &#91;\n        {\n            \"CidrBlock\": \"172.02.0.0\/16\",\n            \"DhcpOptionsId\": \"dopt-0d924a643535f4\",\n            \"State\": \"available\",\n            \"VpcId\": \"vpc-08f33e37684\",\n            \"OwnerId\": \"111111222222\",\n            \"InstanceTenancy\": \"default\",\n            \"CidrBlockAssociationSet\": &#91;\n                {\n                    \"AssociationId\": \"vpc-cidr-assoc-015345345839aca\",\n                    \"CidrBlock\": \"172.02.0.0\/16\",\n                    \"CidrBlockState\": {\n                        \"State\": \"associated\"\n                    }\n                }\n            ],\n            \"IsDefault\": true\n        }\n    ]\n}<\/code><\/pre>\n\n\n\n<p>This confirms that your AWS CLI has now been set up correctly.<\/p>\n\n\n\n<p>You can now use sso-session and profile to request credentials using the &lt;<strong>aws sso login<\/strong>&gt; command.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>aws sso login --profile AdministratorAccess-111111222222<\/strong><\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>Attempting to automatically open the SSO authorization page in your default browser.<br>If the browser does not open or you wish to use a different device to authorize this request, open the following URL:<br><a href=\"https:\/\/device.sso.us-east-1.amazonaws.com\/\">https:\/\/device.sso.us-east-1.amazonaws.com\/<\/a><br><br>Then enter the code:<br>XXXX-XXXX<\/code><\/pre>\n\n\n\n<p>Navigate to the browser window and allow access to your data. When you return to the CLI window the following message has this line displayed:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Successfully logged into Start URL: https:\/\/<a href=\"https:\/\/<your url>.awsapps.com\/start\/\" rel=\"nofollow\">&lt;your url&gt;<\/a>.awsapps.com\/start\/<\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\"><em>Session Lifetime<\/em><\/h5>\n\n\n\n<p>The session expires depending on the session duration set in the Permission Set settings for the account (default is 1 hour). When the session has expired and you are trying to run the S3 command, following error message is displayed in the terminal.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>aws s3 ls --profile AdministratorAccess-111111222222<\/strong>\nAn error occurred (ExpiredToken) when calling the ListBuckets operation: The provided token has expired.<\/code><\/pre>\n\n\n\n<p>To login again and get the latest access keys and session tokens, run the following command<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>aws sso login --profile AdministratorAccess-<\/strong>111111222222<\/code><\/pre>\n\n\n\n<p>Now, when you run the S3 command again, you will receive the response<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>aws s3 ls --profile AdministratorAccess-111111222222<\/strong>\n2023-12-22 17:27:17 vibstest<\/code><\/pre>\n\n\n\n<p>To force a logout before session timeout, run the <strong>aws sso logout<\/strong> command<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>aws sso logout<\/strong>\n<strong>aws s3 ls --profile AdministratorAccess-111111222222<\/strong>\nError loading SSO Token: Token for maghildaprojects does not exist<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">AWS SDK for Python (Boto3)<\/h3>\n\n\n\n<p>Boto3 is the AWS SDK for Python. Boto3 makes it easy to integrate your Python application, library, or script with AWS services including Amazon S3, Amazon EC2, Amazon DynamoDB, and more.<\/p>\n\n\n\n<p>To install Boto3, in your command line, run <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>pip3 install boto3<\/strong><\/code><\/pre>\n\n\n\n<p>After boto3 is installed successfully, you have to populate the credentials file with the access key and session token, for programmatic access to AWS services and resources from your development environment.<\/p>\n\n\n\n<ol class=\"wp-block-list\" style=\"margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;padding-top:0;padding-right:var(--wp--preset--spacing--50);padding-bottom:0;padding-left:var(--wp--preset--spacing--50)\">\n<li>Login to your AWS access portal URL (Start URL)<\/li>\n\n\n\n<li>Select AWS Account and click Command line or programmatic access<\/li>\n\n\n\n<li>Select Option 2 and copy paste into your credentials file and save<\/li>\n\n\n\n<li>Run the S3 Python code example in the following section<\/li>\n<\/ol>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>Option 2: Manually add a profile to your AWS credentials file (Short-term credentials)<\/strong>\nPaste the following text in your AWS credentials file (typically located in ~\/.aws\/credentials). \n\n&#91;111111222222_AdministratorAccess]\naws_access_key_id=AJD3QMQ4FEGHSFDHXDZPV\naws_secret_access_key=ggggjhbjhbjhbhjxeserer\/\/\/\/\/\/\/cyvuyby==\naws_session_token=IQoJb3JpZ2luX2VjEMf\/\/\/\/\/\/\/\/\/\/==<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">S3 Python code example<\/h3>\n\n\n\n<p>This section describes how to use the AWS SDK for Python to perform common operations on S3 buckets.<br>Create a python file and copy the code below. <br>Make sure to delete the bucket and any other resources you created for this tutorial.<\/p>\n\n\n\n<pre class=\"wp-block-code has-ast-global-color-2-color has-text-color has-link-color wp-elements-d106cbf77953198ba9182844bc3f03e4\"><code>msg = \"Hello! This is a simple S3 tutorial using Python\"\nprint(msg)\n\nimport boto3\n\nbucket_name = 'vibstest'\ns3 = boto3.client('s3')\n\n# Retrieve the list of existing buckets\nresponse = s3.list_buckets()\n\nif not response&#91;'Buckets']:\n    print('bucket doesn't exist. create bucket.\u2019)\n    # Create bucket\n    response = s3.create_bucket(Bucket=bucket_name)\n    print(response)\nelse:\n    # Output the bucket names\n    print('Existing buckets:')\n    for bucket in response&#91;'Buckets']:  \n        bucket_name = bucket&#91;\"Name\"]\n        print(f'  {bucket_name}')\n        print(f'  {bucket&#91;\"CreationDate\"]}')<\/code><\/pre>\n\n\n\n<p>Run the python code and you will see the below output in the terminal. The HTTPStatusCode is 200.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Hello! This is a simple S3 tutorial using Python\nThere are no buckets. Create bucket.\n{'ResponseMetadata': {'RequestId': 'VBCK0M4686T3', 'HostId': 'gAKr4ESkgufutjyjguk,kjoll0kklj0jkhkCsULNrpHacAHGJST0=', '<strong>HTTPStatusCode': 200<\/strong>, 'HTTPHeaders': {'x-amz-id-2': 'gAKr4ESDUGJjfgyjfyjfjgkj+o2CkZOdTlVCCo3JOIkhkugkgHacAKqVOT0=', 'x-amz-request-id': 'VBCK0M4KHD3T3', 'date': 'Tue, 12 Dec 2023 10:40:23 GMT', 'location': '\/vibstest', 'server': 'AmazonS3', 'content-length': '0'}, 'RetryAttempts': 0}, 'Location': '\/vibstest'}<\/code><\/pre>\n\n\n\n<p>When you run the program again, you will see the below output in the terminal<\/p>\n\n\n\n<pre class=\"wp-block-code has-ast-global-color-2-color has-text-color has-link-color wp-elements-49c530bd5a749269f48949923029d7aa\"><code>Hello! This is a simple S3 tutorial using Python\nExisting buckets:\n  vibstest\n  2023-12-11 07:27:17+00:00<\/code><\/pre>\n\n\n\n<p>Delete the bucket<\/p>\n\n\n\n<pre class=\"wp-block-code has-ast-global-color-2-color has-text-color has-link-color wp-elements-69fe8cf1575392f8f29708f5e8f312aa\"><code>import boto3\n\n# Delete the bucket \nresponse = s3.delete_bucket(Bucket=bucket_name)\nprint(response)\nprint('deleted')<\/code><\/pre>\n\n\n\n<p>You will see the below output in the terminal with the HttpStatusCode of 204<\/p>\n\n\n\n<pre class=\"wp-block-code has-ast-global-color-2-color has-text-color has-link-color wp-elements-0e5332924434e7e8898678f291cda0f5\"><code>{'ResponseMetadata': {'RequestId': 'VBCDDGHRDHHD775996G', 'HostId': 'SPb8tMpY9hQlsC7NjTn6igphderfghrDKDDFSv5GtRaCjvZTRT0VopZdtOs5Yy3bJYcR2Tvs=', '<strong>HTTPStatusCode': 204<\/strong>, 'HTTPHeaders': {'x-amz-id-2': 'SPb8tMpY9hQlsC7NjTjkehffkerfjkefqYbggFSv5GtRaCjvZTRT0VopZdtOs5Yy3bJYcR2Tvs=', 'x-amz-request-id': 'VBCZHHDHSFLP96G', 'date': 'Tue, 12 Dec 2023 10:40:23 GMT', 'server': 'AmazonS3'}, 'RetryAttempts': 0}}\ndeleted<\/code><\/pre>\n\n\n\n<p>This is the end of the Setting Up Your AWS Environment tutorial.&nbsp;Hopefully, you got something out of it. Below are references for additional instructions and HOWTO\u2019s.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">References:<\/h3>\n\n\n\n<ul class=\"wp-block-list\" style=\"margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;padding-top:0;padding-right:var(--wp--preset--spacing--50);padding-bottom:0;padding-left:var(--wp--preset--spacing--50)\">\n<li><a href=\"https:\/\/aws.amazon.com\/getting-started\/guides\/setup-environment\/\">https:\/\/aws.amazon.com\/getting-started\/guides\/setup-environment\/<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/docs.aws.amazon.com\/IAM\/latest\/UserGuide\/root-user-tasks.html\">https:\/\/docs.aws.amazon.com\/IAM\/latest\/UserGuide\/root-user-tasks.html<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/docs.aws.amazon.com\/cli\/latest\/userguide\/getting-started-install.html\">https:\/\/docs.aws.amazon.com\/cli\/latest\/userguide\/getting-started-install.html<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/docs.aws.amazon.com\/toolkit-for-vscode\/latest\/userguide\/setup-toolkit.html\">https:\/\/docs.aws.amazon.com\/toolkit-for-vscode\/latest\/userguide\/setup-toolkit.html<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/docs.aws.amazon.com\/sdkref\/latest\/guide\/access-sso.html\">https:\/\/docs.aws.amazon.com\/sdkref\/latest\/guide\/access-sso.html<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/docs.aws.amazon.com\/sdkref\/latest\/guide\/access.html\">https:\/\/docs.aws.amazon.com\/sdkref\/latest\/guide\/access.html<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/docs.aws.amazon.com\/cli\/latest\/userguide\/cli-configure-envvars.html?icmpid=docs_sso_user_portal\">https:\/\/docs.aws.amazon.com\/cli\/latest\/userguide\/cli-configure-envvars.html?icmpid=docs_sso_user_portal<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/code.visualstudio.com\/docs\/python\/python-tutorial\">https:\/\/code.visualstudio.com\/docs\/python\/python-tutorial<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/aws.amazon.com\/sdk-for-python\/\">https:\/\/aws.amazon.com\/sdk-for-python\/<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/code.visualstudio.com\/docs\/python\/python-tutorial\">https:\/\/code.visualstudio.com\/docs\/python\/python-tutorial<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/docs.aws.amazon.com\/cli\/latest\/userguide\/cli-configure-sso.html\">https:\/\/docs.aws.amazon.com\/cli\/latest\/userguide\/cli-configure-sso.html<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/docs.aws.amazon.com\/singlesignon\/latest\/userguide\/howtosessionduration.html\">https:\/\/docs.aws.amazon.com\/singlesignon\/latest\/userguide\/howtosessionduration.html<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, you will learn how to set up your AWS account and development environment on a macOS with Visual Studio Code using AWS SDK and AWS CLI. This will allow you to interact with your AWS account and programmatically provision any resources you need. Note: Follow the instructions in the order below as [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"disabled","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[31,12,30],"tags":[18,17,20,16,22,19,21],"class_list":["post-1248","post","type-post","status-publish","format-standard","hentry","category-aws-sdk","category-aws-tutorial","category-python","tag-aws","tag-beginner","tag-cli","tag-easy","tag-macos","tag-sdk","tag-visualstudiocode"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>HOWTO: Easy steps to AWS development with AWS CLI\/SDK - maghilda<\/title>\n<meta name=\"description\" content=\"Set up development environment with AWS SDK and AWS CLI\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.maghilda.com\/staging\/9669\/easy-steps-to-aws-with-aws-cli-sdk\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"HOWTO: Easy steps to AWS development with AWS CLI\/SDK - maghilda\" \/>\n<meta property=\"og:description\" content=\"Set up development environment with AWS SDK and AWS CLI\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.maghilda.com\/staging\/9669\/easy-steps-to-aws-with-aws-cli-sdk\/\" \/>\n<meta property=\"og:site_name\" content=\"maghilda\" \/>\n<meta property=\"article:published_time\" content=\"2023-12-22T14:26:43+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-07T23:52:58+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/obl.icz.temporary.site\/wp-content\/uploads\/2023\/12\/Screen-Shot-2023-12-22-at-11.26.50-AM.png\" \/>\n<meta name=\"author\" content=\"vibs\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"vibs\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.maghilda.com\\\/staging\\\/9669\\\/easy-steps-to-aws-with-aws-cli-sdk\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.maghilda.com\\\/staging\\\/9669\\\/easy-steps-to-aws-with-aws-cli-sdk\\\/\"},\"author\":{\"name\":\"vibs\",\"@id\":\"https:\\\/\\\/www.maghilda.com\\\/staging\\\/9669\\\/#\\\/schema\\\/person\\\/21009c5e4f1817ea18c81d5004bcec1e\"},\"headline\":\"HOWTO: Easy steps to AWS development with AWS CLI\\\/SDK\",\"datePublished\":\"2023-12-22T14:26:43+00:00\",\"dateModified\":\"2024-01-07T23:52:58+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.maghilda.com\\\/staging\\\/9669\\\/easy-steps-to-aws-with-aws-cli-sdk\\\/\"},\"wordCount\":1803,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.maghilda.com\\\/staging\\\/9669\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.maghilda.com\\\/staging\\\/9669\\\/easy-steps-to-aws-with-aws-cli-sdk\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/obl.icz.temporary.site\\\/wp-content\\\/uploads\\\/2023\\\/12\\\/Screen-Shot-2023-12-22-at-11.26.50-AM.png\",\"keywords\":[\"aws\",\"beginner\",\"cli\",\"easy\",\"macos\",\"sdk\",\"visualstudiocode\"],\"articleSection\":[\"AWS SDK\",\"AWS Tutorial\",\"Python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.maghilda.com\\\/staging\\\/9669\\\/easy-steps-to-aws-with-aws-cli-sdk\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.maghilda.com\\\/staging\\\/9669\\\/easy-steps-to-aws-with-aws-cli-sdk\\\/\",\"url\":\"https:\\\/\\\/www.maghilda.com\\\/staging\\\/9669\\\/easy-steps-to-aws-with-aws-cli-sdk\\\/\",\"name\":\"HOWTO: Easy steps to AWS development with AWS CLI\\\/SDK - maghilda\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.maghilda.com\\\/staging\\\/9669\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.maghilda.com\\\/staging\\\/9669\\\/easy-steps-to-aws-with-aws-cli-sdk\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.maghilda.com\\\/staging\\\/9669\\\/easy-steps-to-aws-with-aws-cli-sdk\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/obl.icz.temporary.site\\\/wp-content\\\/uploads\\\/2023\\\/12\\\/Screen-Shot-2023-12-22-at-11.26.50-AM.png\",\"datePublished\":\"2023-12-22T14:26:43+00:00\",\"dateModified\":\"2024-01-07T23:52:58+00:00\",\"description\":\"Set up development environment with AWS SDK and AWS CLI\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.maghilda.com\\\/staging\\\/9669\\\/easy-steps-to-aws-with-aws-cli-sdk\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.maghilda.com\\\/staging\\\/9669\\\/easy-steps-to-aws-with-aws-cli-sdk\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.maghilda.com\\\/staging\\\/9669\\\/easy-steps-to-aws-with-aws-cli-sdk\\\/#primaryimage\",\"url\":\"http:\\\/\\\/obl.icz.temporary.site\\\/wp-content\\\/uploads\\\/2023\\\/12\\\/Screen-Shot-2023-12-22-at-11.26.50-AM.png\",\"contentUrl\":\"http:\\\/\\\/obl.icz.temporary.site\\\/wp-content\\\/uploads\\\/2023\\\/12\\\/Screen-Shot-2023-12-22-at-11.26.50-AM.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.maghilda.com\\\/staging\\\/9669\\\/easy-steps-to-aws-with-aws-cli-sdk\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.maghilda.com\\\/staging\\\/9669\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"HOWTO: Easy steps to AWS development with AWS CLI\\\/SDK\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.maghilda.com\\\/staging\\\/9669\\\/#website\",\"url\":\"https:\\\/\\\/www.maghilda.com\\\/staging\\\/9669\\\/\",\"name\":\"maghilda.com\",\"description\":\"Technology blog focused on cloud computing, emerging technologies, software development and security.\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.maghilda.com\\\/staging\\\/9669\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.maghilda.com\\\/staging\\\/9669\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.maghilda.com\\\/staging\\\/9669\\\/#organization\",\"name\":\"maghilda.com\",\"url\":\"https:\\\/\\\/www.maghilda.com\\\/staging\\\/9669\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.maghilda.com\\\/staging\\\/9669\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.maghilda.com\\\/staging\\\/9669\\\/wp-content\\\/uploads\\\/2023\\\/12\\\/cropped-logo_red.png\",\"contentUrl\":\"https:\\\/\\\/www.maghilda.com\\\/staging\\\/9669\\\/wp-content\\\/uploads\\\/2023\\\/12\\\/cropped-logo_red.png\",\"width\":512,\"height\":512,\"caption\":\"maghilda.com\"},\"image\":{\"@id\":\"https:\\\/\\\/www.maghilda.com\\\/staging\\\/9669\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.maghilda.com\\\/staging\\\/9669\\\/#\\\/schema\\\/person\\\/21009c5e4f1817ea18c81d5004bcec1e\",\"name\":\"vibs\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/28233c799bf0736fecb2854057b69e52d9bd97b467b55be3406890936003faee?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/28233c799bf0736fecb2854057b69e52d9bd97b467b55be3406890936003faee?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/28233c799bf0736fecb2854057b69e52d9bd97b467b55be3406890936003faee?s=96&d=mm&r=g\",\"caption\":\"vibs\"},\"sameAs\":[\"https:\\\/\\\/www.maghilda.com\\\/staging\\\/9669\"],\"url\":\"https:\\\/\\\/www.maghilda.com\\\/staging\\\/9669\\\/author\\\/obliczte\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"HOWTO: Easy steps to AWS development with AWS CLI\/SDK - maghilda","description":"Set up development environment with AWS SDK and AWS CLI","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.maghilda.com\/staging\/9669\/easy-steps-to-aws-with-aws-cli-sdk\/","og_locale":"en_US","og_type":"article","og_title":"HOWTO: Easy steps to AWS development with AWS CLI\/SDK - maghilda","og_description":"Set up development environment with AWS SDK and AWS CLI","og_url":"https:\/\/www.maghilda.com\/staging\/9669\/easy-steps-to-aws-with-aws-cli-sdk\/","og_site_name":"maghilda","article_published_time":"2023-12-22T14:26:43+00:00","article_modified_time":"2024-01-07T23:52:58+00:00","og_image":[{"url":"http:\/\/obl.icz.temporary.site\/wp-content\/uploads\/2023\/12\/Screen-Shot-2023-12-22-at-11.26.50-AM.png","type":"","width":"","height":""}],"author":"vibs","twitter_card":"summary_large_image","twitter_misc":{"Written by":"vibs"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.maghilda.com\/staging\/9669\/easy-steps-to-aws-with-aws-cli-sdk\/#article","isPartOf":{"@id":"https:\/\/www.maghilda.com\/staging\/9669\/easy-steps-to-aws-with-aws-cli-sdk\/"},"author":{"name":"vibs","@id":"https:\/\/www.maghilda.com\/staging\/9669\/#\/schema\/person\/21009c5e4f1817ea18c81d5004bcec1e"},"headline":"HOWTO: Easy steps to AWS development with AWS CLI\/SDK","datePublished":"2023-12-22T14:26:43+00:00","dateModified":"2024-01-07T23:52:58+00:00","mainEntityOfPage":{"@id":"https:\/\/www.maghilda.com\/staging\/9669\/easy-steps-to-aws-with-aws-cli-sdk\/"},"wordCount":1803,"commentCount":0,"publisher":{"@id":"https:\/\/www.maghilda.com\/staging\/9669\/#organization"},"image":{"@id":"https:\/\/www.maghilda.com\/staging\/9669\/easy-steps-to-aws-with-aws-cli-sdk\/#primaryimage"},"thumbnailUrl":"http:\/\/obl.icz.temporary.site\/wp-content\/uploads\/2023\/12\/Screen-Shot-2023-12-22-at-11.26.50-AM.png","keywords":["aws","beginner","cli","easy","macos","sdk","visualstudiocode"],"articleSection":["AWS SDK","AWS Tutorial","Python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.maghilda.com\/staging\/9669\/easy-steps-to-aws-with-aws-cli-sdk\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.maghilda.com\/staging\/9669\/easy-steps-to-aws-with-aws-cli-sdk\/","url":"https:\/\/www.maghilda.com\/staging\/9669\/easy-steps-to-aws-with-aws-cli-sdk\/","name":"HOWTO: Easy steps to AWS development with AWS CLI\/SDK - maghilda","isPartOf":{"@id":"https:\/\/www.maghilda.com\/staging\/9669\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.maghilda.com\/staging\/9669\/easy-steps-to-aws-with-aws-cli-sdk\/#primaryimage"},"image":{"@id":"https:\/\/www.maghilda.com\/staging\/9669\/easy-steps-to-aws-with-aws-cli-sdk\/#primaryimage"},"thumbnailUrl":"http:\/\/obl.icz.temporary.site\/wp-content\/uploads\/2023\/12\/Screen-Shot-2023-12-22-at-11.26.50-AM.png","datePublished":"2023-12-22T14:26:43+00:00","dateModified":"2024-01-07T23:52:58+00:00","description":"Set up development environment with AWS SDK and AWS CLI","breadcrumb":{"@id":"https:\/\/www.maghilda.com\/staging\/9669\/easy-steps-to-aws-with-aws-cli-sdk\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.maghilda.com\/staging\/9669\/easy-steps-to-aws-with-aws-cli-sdk\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.maghilda.com\/staging\/9669\/easy-steps-to-aws-with-aws-cli-sdk\/#primaryimage","url":"http:\/\/obl.icz.temporary.site\/wp-content\/uploads\/2023\/12\/Screen-Shot-2023-12-22-at-11.26.50-AM.png","contentUrl":"http:\/\/obl.icz.temporary.site\/wp-content\/uploads\/2023\/12\/Screen-Shot-2023-12-22-at-11.26.50-AM.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.maghilda.com\/staging\/9669\/easy-steps-to-aws-with-aws-cli-sdk\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.maghilda.com\/staging\/9669\/"},{"@type":"ListItem","position":2,"name":"HOWTO: Easy steps to AWS development with AWS CLI\/SDK"}]},{"@type":"WebSite","@id":"https:\/\/www.maghilda.com\/staging\/9669\/#website","url":"https:\/\/www.maghilda.com\/staging\/9669\/","name":"maghilda.com","description":"Technology blog focused on cloud computing, emerging technologies, software development and security.","publisher":{"@id":"https:\/\/www.maghilda.com\/staging\/9669\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.maghilda.com\/staging\/9669\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.maghilda.com\/staging\/9669\/#organization","name":"maghilda.com","url":"https:\/\/www.maghilda.com\/staging\/9669\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.maghilda.com\/staging\/9669\/#\/schema\/logo\/image\/","url":"https:\/\/www.maghilda.com\/staging\/9669\/wp-content\/uploads\/2023\/12\/cropped-logo_red.png","contentUrl":"https:\/\/www.maghilda.com\/staging\/9669\/wp-content\/uploads\/2023\/12\/cropped-logo_red.png","width":512,"height":512,"caption":"maghilda.com"},"image":{"@id":"https:\/\/www.maghilda.com\/staging\/9669\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.maghilda.com\/staging\/9669\/#\/schema\/person\/21009c5e4f1817ea18c81d5004bcec1e","name":"vibs","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/28233c799bf0736fecb2854057b69e52d9bd97b467b55be3406890936003faee?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/28233c799bf0736fecb2854057b69e52d9bd97b467b55be3406890936003faee?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/28233c799bf0736fecb2854057b69e52d9bd97b467b55be3406890936003faee?s=96&d=mm&r=g","caption":"vibs"},"sameAs":["https:\/\/www.maghilda.com\/staging\/9669"],"url":"https:\/\/www.maghilda.com\/staging\/9669\/author\/obliczte\/"}]}},"_links":{"self":[{"href":"https:\/\/www.maghilda.com\/staging\/9669\/wp-json\/wp\/v2\/posts\/1248","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.maghilda.com\/staging\/9669\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.maghilda.com\/staging\/9669\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.maghilda.com\/staging\/9669\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.maghilda.com\/staging\/9669\/wp-json\/wp\/v2\/comments?post=1248"}],"version-history":[{"count":5,"href":"https:\/\/www.maghilda.com\/staging\/9669\/wp-json\/wp\/v2\/posts\/1248\/revisions"}],"predecessor-version":[{"id":2364,"href":"https:\/\/www.maghilda.com\/staging\/9669\/wp-json\/wp\/v2\/posts\/1248\/revisions\/2364"}],"wp:attachment":[{"href":"https:\/\/www.maghilda.com\/staging\/9669\/wp-json\/wp\/v2\/media?parent=1248"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.maghilda.com\/staging\/9669\/wp-json\/wp\/v2\/categories?post=1248"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.maghilda.com\/staging\/9669\/wp-json\/wp\/v2\/tags?post=1248"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}