aws-samples /
amazon-opensearch-service-monitor
This repository contains step by step demonstration to setup monitoring Stack for Amazon OpenSearch Service domains across all specified regions. This example uses AWS CDK and Python.
45/100 healthLoading repository data…
yilmaznaslan / repository
A step-by-step demonstration of how to automate an AWS IoT Core Multiple Things Registration with an AWS SDK for Python (Boto3). Supports a dive into a concept of bulk device provisioning and the AWS SDK calls to manage it.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
This documents provides scripts to automate registering things in bulk with a fleet provisioning process into AWS IoT Core by using the AWS SDK for Python (boto3). In addition to the tools used for the registeration process it also provides ready to use methods to handle things, certificates and policies in large scale numbers.
The main aim of the repository is to automate process of registering things in bulks to AWS IoT Core using a fleet provisioning template and a provision file stored in a AWS S3 bucket. After succesfully deploying the example application, any number of thing(s), certificate(s), an IoT thing type and a policy will be created in the AWS IoT Core. Once the Certificates, things, and policy resources are createted, it will also attach them to each other.
After running the sample application, all the certificates and keys(private/public) are saved locally. With the help of the mqtt_connection_test.py script, connecitivity feature of the created things associated with certificates can be validated.
Important: This application uses
AWS IoT CoreandAWS S3services and there are costs associated with these services after the Free Tier usage - please see the AWS Pricing page for details. You are responsible for any AWS costs incurred. No warranty is implied in this example.
AWSS3FullAccess ,AWSIoTFullAccess policies. These are the minimum permission required to run the application. More comphrensive policies such as AWSS3FullAccess and AWSIoTFullAccess can also be applied.start_thing_registration_task() function. Created IAM role must have minimum the following permission policies attached.
AWSIoTThingsRegistration (AWS managed policy)AmazonS3ReadOnlyAccess (AWS managed policy)For installation, simply download the repository and follow the instructions depending on your operating system.
cd YOUR_WORKING_DIRECTORY
source installation.sh
Save the AWS Access Key Id and AWS Secret Access Key into creditentials file under ~/.aws
[default]
aws_access_key_id = REPLACE_IT_WITH_YOUR_KEY_ID
aws_secret_access_key = REPLACE_IT_WITH_YOUR_ACCESS_KEY
config.pyROLE_ARN = "arn:aws:iam::xxxxx..."
Not Tested yet.
Once the installation of the application is completed, you can run the /scripts/main.py script to register
After succesfully execution of the main.py script, by default 10 Things, 10 Certificates, wastebin named thing type and a policy named free_policy will be created in the AWS IoT Core. Sample application will also attach the created things,certificates and policy.
The developed solution provides different options to adjust the code to your needs. The complete list of the configuration parameters can be found in the config.py file. Depending in your need, you can modify the following paramaters.
| Parameter | Default Value | Description |
|---|---|---|
| REGION | "us-east1" | AWS Region where the IoT Core Application wanted to be developed |
| IAM_ARN | "us-east1" | ARN of the the created IAM Role |
| THING_TYPE_NAME | vehicle | Type of the created thing(s) |
| THING_NAME_PREFIX | bus | A name prefix to be used when creating your things. |
| THING_COUNT | 10 | Number of things to be created in AWS IoT Core |
| SET_CERT_UNIQUE | True | If set to True, a seperate certificate for each thing will be created. If set to False, one certificate will be created and shared by the all registered things. |
The application executes as below;
Although this step is marked as optional, it is a good practice use for experimenting the tools provided by this repository. Since it deletes all the registered things,certificates and policies, use it carefully. In order to prevent deleting important resources by accident, this feature is not implemented by default to the execution flow in the main.py. You can call the following method for resetting the AWS IoT Core.
aws_iot_core_reset()
The very first step in the execution of main.py is to create a provisioning template and a provision file. Provision file includes all the necessary informations for each thing. When registering the things in bulk, provisionung template and provision file are used together to register things. As an output of this method, two files are create under secure/provision. This operation is done by calling the method below.
create_provision_files()
Once the provisioning files created locally now it is time to upload these files into AWS S3 bucket. In order to register things in bulk, it is a must to upload the provision file to a S3 bucket.
The method below creates a bucket in your account and uploads the file into it.
aws_s3_config()
After provisioning file is created locally and provision file is uploaded into S3 bucket, things can be created in the IoT Core Registery. The method below creates a bulk thing provisioning task.
aws_iot_core_create_bulk_things()
In order to connect things using the MQTT protocoll, things needed to be associated with X.509 Certificates. We can either create a different certificate for the each registered things or we can also create one certificate and share it among the things. Based on the flag set_cert_unique, the method below take cares to create certificates.
aws_iot_core_create_certificates()
For ensuring the connectivity features of the created things, a simple policy is also created in the IoT Core Registery called free_policy. This policy allows all the connection, publishing and subscribing features.
aws_iot_core_create_policy()
Creating things, certificates and policies is not enough for connecting things to the AWS IoT Core. Final step in this application is to attach things,certificates and the policy. The method below handles this task.
aws_iot_core_attach_certificates()
mqtt_test.py to test the connectivity of the created things. Since it takes approximetly 1 seconds to create a connection for a MQTT Client, it also takes quite a lot of time to execute the script if the number of the things are large.For fully documentation please visit the Github Page
Coming soon
Coming soon.Here my other tutorials / repositories
Selected from shared topics, language and repository description—not editorial ratings.
aws-samples /
This repository contains step by step demonstration to setup monitoring Stack for Amazon OpenSearch Service domains across all specified regions. This example uses AWS CDK and Python.
45/100 healthVEDARSH05 /
how to install hydra how to install hydra- Hi guys if you are searching for how to install hydra and searching for the best article to get the best explanation about how to install hydra. Then you are in the right place. Today I'm here going to share the step by step tutorial about "how to install hydra". Through this article, you can get a lot of about how to install hydra and use in termux, how to install hydra in termux, how to install hydra on kali linux. And I'm damn sure that you will never get all this unique information like us on the internet anywhere else. how to install hydra What is Hydra Tool? Thc-hydra, In short, we can call it hydra, This tool is used for penetration testing and cracking the open ports and web login pages like FTP login pages, HTTP login pages, and many more pages. This tool is purely made to make the cracking process more efficient with the best results. So this tool is available for only some limited devices like Linux, Debian based but today will discuss how to install the hydra tool on any device without any errors or issues, Like termux and other terminal emulator apps. How to Install Hydra? To Install hydra there are some must requirements which you need to follow. REQUIREMENTS (Termux/Kali) > 1 GB of data storage > 50 MB internet data > 3 GB of ram for better performance > Android with 5.0.0 and higher > Rooted device I hope, you had followed all the requirements properly. 1. Install Termux app from F-droid app, and update & upgrade it. apt-get update apt-get upgrade 2. After updating Termux, Install basic packages like python, curl, wget, php, etc. apt install -y python php curl wget git nano 3. Now open the Termux home directory. cd $HOME 4. Git clone the hydra link in termux/kali. git clone https://github.com/vanhauser-thc/thc-hydra 5. Now open the cloned hydra repository in your terminal. cd $HOME/thc-hydra 6. Install some packages by executing the config script. ./configure make make install 7. All ready to go, Hydra tool usage help command. ./hydra -h 8. It's time for a little practical demonstration, So suppose you want to hack the FTP port then we can try this command. ./hydra -l admin -p password ftp://localhost/ 9. For more info you can check these commands, In which you get a proper idea about how you can use -p And -P commands according to your needs, That's all. hydra -l admin -p password ftp://localhost/ hydra -L default_logins.txt -p test ftp://localhost/ hydra -l admin -P common_passwords.txt ftp://localhost/ hydra -L logins.txt -P passwords.txt ftp://localhost/
aws-samples /
A step-by-step demonstration of how to automate an AWS IoT Greengrass setup with an AWS SDK for Python (Boto3). Supports a dive dive into a concept of a Greengrass Group and the AWS SDK calls to manage it.
23/100 healthaica0202 /
Graftify is a mobile app that teaches grafting techniques through step-by-step animated guides. Built with Python and machine learning for interactive learning and demonstration.
59/100 healthThis repository provides a practical demonstration of how to streamline the data preprocessing workflow in Python using Scikit-Learn's ColumnTransformer. The project contrasts the verbose, step-by-step manual method of preprocessing with the elegant and efficient Column_Transformer approach.
34/100 healthmmd-ahd /
A demonstration of a classical image-processing pipeline—green-channel extraction, CLAHE contrast enhancement, Frangi vessel filtering, Otsu thresholding, and morphological cleanup—to automatically segment retinal blood vessels in fundus images. Includes a step-by-step Jupyter notebook and a batch-processing Python script on the DRIVE dataset.
52/100 health