-
Configure the Amazon Linux 2 MATE desktop connection - Amazon Elastic Compute Cloud
- Follow these steps to set up a Remote Desktop Protocol (RDP) connection from your local machine to an Amazon Linux 2 instance running the MATE desktop environment.
- Reconnect to the instance and run the following command on your Linux instance to set the password for
ec2-user.
-
-
-
First, start the
xrdpservice. You should be able to connect an RDP client to the host on the default RDP port (3389). If successful, you will be greeted with the xrdp session manager window which allows you to choose between Xorg or Xvnc sessions and provides inputs for user authentication. The session manager UI can be highly customized by modifying/etc/xrdp/xrdp.ini.The parameters used to start Xorg and Xvnc display servers can be configured in
/etc/xrdp/sesman.ini.After successfully starting a display server, xrdp will execute
/etc/xrdp/startwm.shby default. This script is meant to start a window manager (similar to .xinitrc) and will read from~/.xinitrcor/etc/X11/xinit/xinitrcif they exist. It is recommended to edit~/.xinitrcto start your desktop environment or window manager, but you can also edit/etc/xrdp/startwm.sh.If you just close the session window and RDP connection, you can access the same session again next time you connect with RDP. When you exit the window manager or desktop environment from the session window, the session will close and a new session will be opened the next time.
-
-
Provider Requirements - Configuration Language | Terraform | HashiCorp Developer
- The
required_providersblock must be nested inside the top-levelterraformblock (which can also contain other settings). - Each module should at least declare the minimum provider version it is known to work with, using the
>=version constraint syntax:
-
-
Use xrdp with Linux - Azure Virtual Machines | Microsoft Learn
- If you created a password for your user account when you created your VM, skip this step. If you only use SSH key authentication and don't have a local account password set, specify a password before you use xrdp to log in to your VM. xrdp can't accept SSH keys for authentication. The following example specifies a password for the user account azureuser:
- Specifying a password does not update your SSHD configuration to permit password logins if it currently does not. From a security perspective, you may wish to connect to your VM with an SSH tunnel using key-based authentication and then connect to xrdp.
-
diigo.to.shak.blogspot.dailiy. 03/31/2024
diigo.to.shak.blogspot.dailiy. 03/29/2024
-
What are Terraform Workspaces? Overview with Examples
- In this example, I have used the AWS S3 bucket as the remote backend.
- When we look at the contents of the Terraform state S3 bucket, apart from our default terraform.tfstate file, we can see that a new directory named “env:/” is created, within which another directory with the name of our workspace (test_workspace) is created. A new terraform.tfstate file is maintained at this location.
-
Looking closely, the size of the default state file is considerably larger than that of the custom workspace-specific state file. This shows that the new state file is created, but it does not hold any information from the default state file. This is how Terraform creates an isolated environment and maintains its state file differently.
The contents of the test_workspace state file before running
terraform applyare shown below:
-
-
-
- “infrastructure state described by the terraform DSL (Domain Specific-Language) configuration files”: This is the outcome of a devops codifying the infrastructure in a bunch of files
- “actual infrastructure state”: This is the actual infrastructure, which is the result of using terraform to deploy the infrastructure codified in the “terraform DSL configuration files” from the previous step
- “terraform state file”: This an artifact generated by the terraform deployment. It holds information that is otherwise not available anywhere else; it maps the infrastructure components codified in the “terraform DSL configuration files” to the actual manifested infrastructure components. This is usually stored in central store, e.g., AWS S3, etc., accessible to all terraform users so that everyone sees the same state, and it can be locked to prevent simultaneous changes, to avoid state corruption.
When you practice infrastructure-as-code (IaC), e.g., using terraform, there are 3 types of “infrastructure state”
- Comparing ‘terraform plan/apply -refresh-only (refresh)’, ‘terraform plan’, ‘terraform apply’ and their impact
-
-
What does "~>" mean in terraform required_providers version? - Stack Overflow
-
~>: Allows only the rightmost version component to increment. For example, to allow new patch releases within a specific minor release, use the full version number: ~> 1.0.4 will allow installation of 1.0.5 and 1.0.10 but not 1.1.0
-
diigo.to.shak.blogspot.dailiy. 03/27/2024
-
WSL Page - Feature Exploration! · Issue #2266 · microsoft/devhome
-
- eaysWSL https://github.com/redcode-labs/easyWSL
- WSL2 Distro Manager https://github.com/bostrot/wsl2-distro-manager
- WSL ToolBox https://github.com/FalconNL93/WslToolbox
- .. etc
Nice.
But there existing more solutions then "Raft". I have none of them tested.
For example
But I think, that a WSL-developer could created a better integrated GUI, which is more then only a frontend of an command line program. For example, like in the mockup shown, something to show the used memory and CPU-usage of every VM. Possible in an graph like the TaskManger doing it for the complete computer.
-
diigo.to.shak.blogspot.dailiy. 03/26/2024
-
Debugging | Terraform | HashiCorp Developer
- Note that even when
TF_LOG_PATHis set,TF_LOGmust be set in order for any logging to be enabled.
-
-
What does terraform apply/plan refresh-only do? - Stack Overflow
-
- The authoritative state
- The states being compared Note that the 'authoritative state' is NEVER changed as a result of the command.
- Actual state of your infra (actual-state)
- terraform state file (tf-state-file)
- State described by terraform code config (tf-dsl-config)
- The authoritative state is 'actual-state'
- The states being compared in 'terraform plan -refresh-only' is 'actual-state' vs. 'tf-state-file'
- The outcome of 'terraform apply -refresh-only' is 'tf-state-file' is synced to become 'actual-state'
- The authoritative state is 'tf-dsl-config'
- The states being compared in 'terraform plan' is 'tf-dsl-config' vs. 'actual-state'
- The outcome of 'terraform apply' is 'actual-state' is synced to become 'tf-dsl-config'
For all terraform commands that involves states, e.g., plan, apply, refresh (deprecated and is now '-refresh-only'), it is useful to think about it in terms of 2 things:
There are 3 types of 'state' (loosely):
When you do terraform plan/apply WITH
-refresh-only:When you do terraform plan/apply WITHOUT
-refresh-only:For more details of what authoritative states are, and what states are being compared for various terraform commands see:
-
diigo.to.shak.blogspot.dailiy. 03/25/2024
-
2024 Indian general election in Tamil Nadu - Wikipedia
- 2024 Indian general election in Tamil Nadu
-
diigo.to.shak.blogspot.dailiy. 03/23/2024
-
Terraform Associate Exam - Free Actual Q&As, Page 25 | ExamTopics
- that references multiple modules is properly formatted without making changes?
-
-
Terraform Associate Exam - Free Actual Q&As, Page 23 | ExamTopics
- You want to share Terraform state with your team, store it securely, and provide state locking.
-
-
Terraform Associate Exam - Free Actual Q&As, Page 22 | ExamTopics
- A state file represents a source of truth for resources provisioned with Terraform
-
-
AWS DFW | Official Events | Meetup
- AWS offers a complete set of infrastructure that enable you to run virtually everything in the cloud
-
diigo.to.shak.blogspot.dailiy. 03/22/2024
-
Amazon OpenSearch Service’s vector database capabilities explained | AWS Big Data Blog
- RAG is a method for building trustworthy generative AI chatbots using generative LLMs like OpenAI, ChatGPT, or Amazon Titan Text. With the rise of generative LLMs, application developers are looking for ways to take advantage of this innovative technology. One popular use case involves delivering conversational experiences through intelligent agents. Perhaps you’re a software provider with knowledge bases for product information, customer self-service, or industry domain knowledge like tax reporting rules or medical information about diseases and treatments. A conversational search experience provides an intuitive interface for users to sift through information through dialog and Q&A. Generative LLMs on their own are prone to hallucinations—a situation where the model generates a believable but factually incorrect response. RAG solves this problem by complementing generative LLMs with an external knowledge base that is typically built using a vector database hydrated with vector-encoded knowledge articles.
-
-
AWS Containers Blog (ContainersBlog.WebHome) - XWiki
- The purpose of the AWS Container Blog is to highlight architectural guidance and best practices for readers of the AWS Container blogs.
-
-
Provisioners | Terraform | HashiCorp Developer
- If a creation-time provisioner fails, the resource is marked as tainted. A tainted resource will be planned for destruction and recreation upon the next
terraform apply
-
-
Command: init | Terraform | HashiCorp Developer
- During init, the configuration is searched for
moduleblocks, and the source code for referenced modules is retrieved from the locations given in theirsourcearguments.
-
-
Terraform Associate Exam - Free Actual Q&As, Page 18 | ExamTopics
- True
- If a Terraform creation-time provisioner fails, what will occur by default?
-
diigo.to.shak.blogspot.dailiy. 03/20/2024
-
Creating Lambda Layers with TypeScript and CDK – The Right Way – Shawn Torsitano
- Creating Lambda Layers with TypeScript and CDK – The Right Way
-
diigo.to.shak.blogspot.dailiy. 03/12/2024
-
Ultimate Guide to Terraform: From Beginner to Expert — Zero to Devops
- Ansible, Chef and Puppet are configuration management tools which means they are primarily designed to install and manage software on existing server
- In Terraform there are certain providers that are either "Hashicorp Maintained" (AWS, Azure etc.) or "Non-Hashicorp Maintained". Below is best practice syntax for establishing providers in your Terraform, notice how there are two blocks, one for what providers are required and another for each provider specific config.
- Terraform Variables Basics
- Local ValuesLocal values assign a name to an expression, allowing it to be used multiple times within a module without repeating it.
- Load Order and File Structure
- Dynamic Blocks
- Notice how we define the iterator as port now instead of being ingress.value it is port.value. This can make dynamic blocks easier to read and understand.
- What if you want multiple different dynamic values in one dynamic block?
- Variables and Terraform Modules
- Terraform Remote Backend
- With one shared state file every time an apply is done the state file is locked so two apply processes can not be run at the same time.Using a remote backend for state files is the recommended process for collaborative environments. Nearly all businesses using Terraform use remote backend for state files.
-
-
Authenticating Email with DKIM in Amazon SES - Amazon Simple Email Service
- Setting up Easy DKIM for a verified domain identity
-
-
Authenticating Email with DKIM in Amazon SES - Amazon Simple Email Service
-
The message must have a valid DKIM signature and passes the DKIM check.
-
The domain specified in the DKIM signature must align (match) with the domain in the From address. If the domain's DMARC policy specifies strict alignment for DKIM, these domains must match exactly (SES uses a strict DKIM policy by default).
- Complying with DMARC through DKIM
-
diigo.to.shak.blogspot.dailiy. 03/08/2024
-
A Comprehensive Guide to Migrating from Apigee Edge to Apigee X | LTIMindtree Blog
- A Comprehensive Guide to Migrating from Apigee Edge to Apigee X
-
-
Scale your Amazon ECS using different AWS native services! | Containers
ecs blog
- Scale your Amazon ECS using different AWS native services!
-
-
- Cloud-Free-Tier-Comparison
- Cloud Service Providers Free Tier Overview
-
diigo.to.shak.blogspot.dailiy. 03/07/2024
-
- The thing is, most leaders think culture is about values and mission statements.
- culture is about the way people feel about working for you. It's about their relationship to their work and the people they do that work with -- especially their leaders.
-
-
Migrating to Amazon API Gateway: A Datalex success story | AWS Cloud Operations & Migrations Blog
- with their API provider
- This blog post explains how Datalex migrated REST APIs from another provider across all environments to AWS within two weeks and realized a savings of almost 98%.
-
diigo.to.shak.blogspot.dailiy. 03/06/2024
-
How to Install Node.js on Ubuntu 22.04 | Cherry Servers
- Step 1: Install Node Version Manager or NVM by running the below command in the terminal:
- Now, Activate the NVM using the below command:
- nvm install --lts
-
diigo.to.shak.blogspot.dailiy. 03/04/2024
-
Python requests - POST request with headers and body
- headers = { 'Content-Type': 'application/json', 'Authorization': 'Bearer your_token' }
-
-
How do I pass URL parameters with my GET request using Requests? | WebScraping.AI
- params = { 'param1': 'value1', 'param2': 'value2' }
- The final URL that the request is made to would look something like this:
http://example.com/api/items?param1=value1¶m2=value2
-
-
How to Install and Switch Python Versions on Ubuntu 22.04 | LinuxHostSupport
- How to Install and Switch Python Versions on Ubuntu 22.04
- Step 1. Install Python 3.10
- sudo apt install python3.10 -y
- Python 3.10.6
- We need to create symbolic links for every installed Python version, including the path of the installed Python version. Execute the following commands one by one:
- sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.10 1 sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.8 2
- You can enter any number and use that Python version. For example, we choose the Python3.10 by entering the number 1
-
-
- Adding a data source to your Terraform configurations does not create anything new; it’s just a way to query the provider’s APIs for data and to make that data available to the rest of your Terraform code. Each Terraform provider exposes a variety of data sources. For example, the AWS Provider includes data sources to look up VPC data, subnet data, AMI IDs, IP address ranges, the current user’s identity, and much more.
- With the
aws_vpcdata source, the only filter you need isdefault = true - data.aws_vpc.default.id
-
diigo.to.shak.blogspot.dailiy. 03/01/2024
-
- Installing SSHFS
-
-
- To install Java
-
-
- Postman Desktop Client is ONLY allowed if the following criteria are met
-
-
Test script examples | Postman Learning Center
- pm.test("Test data type of the response", () => { pm.expect(jsonData).to.be.an("object"); pm.expect(jsonData.name).to.be.a("string"); pm.expect(jsonData.age).to.be.a("number"); pm.expect(jsonData.hobbies).to.be.an("array"); pm.expect(jsonData.website).to.be.undefined; pm.expect(jsonData.email).to.be.null;
-