
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 172 Articles for AWS

337 Views
Amazon Web Services, known as AWS, is a cloud computing platform owned and operated by Amazon. It offers a variety of services, including compute, storage, delivery, and other functionality that enables businesses to expand their operations and become more successful. We can leverage these domains in the form of services, which can be utilised to construct and deploy different sorts of applications in the cloud platform.Microsoft Azure is a cloud service platform that was developed by Microsoft. It offers services in a variety of categories, including compute, storage, database, networking, developer tools, and other functionality that assists businesses in expanding ... Read More

532 Views
Problem Statement: Use boto3 library in Python to find out whether a function can paginate or not in AWS secret.Approach/Algorithm to solve this problemStep 1: Import boto3 and botocore exceptions to handle exceptions.Step 2: secret_function is the required parameter in this function.Step 3: Create an AWS session using boto3 lib. Make sure region_name is mentioned in the default profile. If it is not mentioned, then explicitly pass the region_name while creating the session.Step 4: Create an AWS client for secretmanager.Step 5: Now use the can_paginate function and pass the parameter secret_function.Step 6: It returns True if the function can paginate; ... Read More

319 Views
Problem Statement: Use boto3 library in Python to remove tags in AWS secret.Approach/Algorithm to solve this problemStep 1: Import boto3 and botocore exceptions to handle exceptions.Step 2: secret_location and tags_list are the required parameters in this function. tags_list should be the list of keys to be untaged.Step 3: Create an AWS session using boto3 lib. Make sure region_name is mentioned in the default profile. If it is not mentioned, then explicitly pass the region_name while creating the session.Step 4: Create an AWS client for secretmanager.Step 5: Now use the untag_resource function and pass the parameter secret_location as SecretId and tags_list ... Read More

827 Views
Problem Statement: Use boto3 library in Python to add tags in AWS secret.Approach/Algorithm to solve this problemStep 1: Import boto3 and botocore exceptions to handle exceptions.Step 2: secret_location and tags_dict are the required parameters in this function. tags_dict should be as {“key”:”value”, ..}Step 3: Create an AWS session using boto3 lib. Make sure region_name is mentioned in the default profile. If it is not mentioned, then explicitly pass the region_name while creating the session.Step 4: Create an AWS client for secretmanager.Step 5: Now use tag_resource function and pass the parameter secret_location as SecretId and tags_dict as Tags.Step 6: It returns ... Read More

226 Views
Problem Statement: Use boto3 library in Python to store a new secret in a specific location in AWS Secret ManagerApproach/Algorithm to solve this problemStep 1: Import boto3 and botocore exceptions to handle exceptions.Step 2: secret_stored_location and secret_key_pair are the required parameters. Make sure secret_key_pair is written as string, not as dict.Step 3: Create an AWS session using boto3 lib. Make sure region_name is mentioned in the default profile. If it is not mentioned, then explicitly pass the region_name while creating the session.Step 4: Create an AWS client for secretmanager.Step 5: Call put_secret_value and pass the secret_stored_location as SecretId and secret_key_pair ... Read More

2K+ Views
Problem Statement: Use boto3 library in Python to get a list of all secrets in AWS Secret ManagerApproach/Algorithm to solve this problemStep 1: Import boto3 and botocore exceptions to handle exceptions.Step 2: There are no parameters here.Step 3: Create an AWS session using boto3 lib. Make sure region_name is mentioned in the default profile. If it is not mentioned, then explicitly pass the region_name while creating the session.Step 4: Create an AWS client for secretmanager.Step 5: Call list_secrets function to retrieve all secrets.Step 6: It returns the metadata of all secrets.Step 7: Handle the generic exception if something went wrong ... Read More

616 Views
Problem Statement: Use boto3 library in Python to generate a random password in AWS Secret ManagerApproach/Algorithm to solve this problemStep 1: Import boto3 and botocore exceptions to handle exceptions.Step 2: There are no parameters here.Step 3: Create an AWS session using boto3 lib. Make sure region_name is mentioned in the default profile. If it is not mentioned, then explicitly pass the region_name while creating the session.Step 4: Create an AWS client for secretmanager.Step 5: Call get_random_password and pass the parameter as per the desired complexity.Step 6: It returns a random password.Step 7: Handle the generic exception if something went wrong ... Read More

1K+ Views
Problem Statement: Use boto3 library in Python to get the details of secrets from specific location in AWS Secret Manager.Approach/Algorithm to solve this problemStep 1: Import boto3 and botocore exceptions to handle exceptions.Step 2: secret_stored_location is the required parameter.Step 3: Create an AWS session using boto3 lib. Make sure region_name is mentioned in the default profile. If it is not mentioned, then explicitly pass the region_name while creating the session.Step 4: Create an AWS client for secretmanager.Step 5: Call describe_secret and pass the secret_stored_location as SecretId.Step 6: It returns the metadata of secrets.Step 7: Handle the generic exception if something ... Read More

811 Views
Problem Statement: Use boto3 library in Python to update secret keys from specific location in AWS Secret Manager.Approach/Algorithm to solve this problemStep 1: Import boto3 and botocore exceptions to handle exceptions.Step 2: secret_stored_location and secret_key_pair are the required parameters. Make sure secret_key_pair is written as string, not as dict.Step 3: Create an AWS session using boto3 lib. Make sure region_name is mentioned in the default profile. If it is not mentioned, then explicitly pass the region_name, while creating the session.Step 4: Create an AWS client for secretmanager.Step 5: Call update_secret and pass the secret_stored_location as SecretId and secret_key_pair as SecretString.Step ... Read More

205 Views
Problem Statement: Use boto3 library in Python to restore all secret keys from specific location in AWS Secret Manager.Approach/Algorithm to solve this problemStep 1: Import boto3 and botocore exceptions to handle exceptions.Step 2: secret_stored_location is the required parameter.Step 3: Create an AWS session using boto3 lib. Make sure region_name is mentioned in the default profile. If it is not mentioned, then explicitly pass the region_name while creating the session.Step 4: Create an AWS client for secretmanager.Step 5: Call restore_secret and pass the secret_stored_location as SecretId.Step 6: It returns the metadata of restored secret.Step 7: Handle the generic exception if something ... Read More