How to create an AWS EC2 instance in CloudFormation
Create an EC2 Instance in CloudFormation
If you need to create an EC2 instance in CloudFormation, then you can do the following: …
Read Article →In-depth guides, insights, and best practices for modern software engineering
If you need to create an EC2 instance in CloudFormation, then you can do the following: …
Read Article →If you need to run a command, or set of commands on an AWS ECS cluster container, then you can do the following:
aws ecs execute-command --cluster …
Read Article →
If using the EC2 launch type, the allowable network mode depends on the underlying EC2 instance’s operating system. If Linux, awsvpc, bridge, host and …
Read Article →If you need to enable Container Insights for an ECS cluster, by using the AWS CLI, then you can do the following:
aws ecs update-cluster-settings …
Read Article →
This guide showcases the ability to use imported certificates from a third party provider (e.g. Venafi) in ACM, mount them in EFS and use them …
Read Article →If you need to increase the disk size of a Cloud9 instance, you can run the following script directly from the terminal in Cloud9:
pip3 install --user …
Read Article →
If you need to get the IAM Role information from the attached EC2 role directly, you can do the following:
IAM_ROLE=$(curl -s …
Read Article →
If you need to create an Elastic Container Registry (ECR) Repository from the AWS CLI, you can do the following:
aws ecr create-repository \ …
Read Article →
When you create the Amazon ECS service, it includes three Amazon ECS task replicas. You can see this by using the describe-services command, which …
Read Article →For more information about the Amazon ECS cluster, run the following command. You will find the number of running tasks, capacity providers, and more. …
Read Article →
There are multiple types of communication in Amazon EKS environments. Lines of communication include the following:
If you get the following error:
Read timeout on endpoint URL: …
Read Article →
If you have a Certificate Key that includes a Passphrase and you need to remove it, potentially to use it with AWS App Mesh, then you can do the …
Read Article →If you use Python’s logger as follows:
import logging
logger = logging.getLogger()
logger.setLevel(logging.DEBUG) # or logging.INFO
Perhaps you …
Read Article →If you need to convert a String to an Integer in C, then you can do one of the following:
atoi()int atoi(const char *str);
You can do …
Read Article →If you need to convert an Integer to a String in C, then you can do one of the following:
sprintf()int sprintf(char *str, const char …
If you are using the Official ElasticSearch Python library (Docs), and you want to create an index:
doc = {
"something": "123a", …
Read Article →
If you need to Copy Text to the Clipboard using your Python application code, then you can do the following:
pyperclipFirst install …
Read Article →If you need to read a PDF (Portable Document Format) file in your Python code, then you can do the following:
PyPDF2from PyPDF2 …
Read Article →
If you need to convert HEX (Hexadecimal) to RGB (Red-Green-Blue) in your Python code, then you can do the following:
PIL library …If you need to refer to a Null Object in your Python code, then you can do the following.
It is important to note that Python does not have a Null …
If you need to convert a Bytearray to a String in Python, then you can do the following:
This comes up when working with binary data from network …
Read Article →If you need to get the Hostname in your Python application, then you can do the following:
gethostname()import socket …
Read Article →
If you need to get the IP Address in your Python application, then you can do the following:
socket.gethostname()import socket …
Read Article →