avatarKiki Wellington

Free AI web copilot to create summaries, insights and extended knowledge, download it at here

1905

Abstract

an class="hljs-number">3</span> ami = var.ami instance_type = <span class="hljs-string">"t2.micro"</span> key_name = var.keyname monitoring = <span class="hljs-literal"><span class="hljs-keyword">true</span></span> vpc_security_group_ids = var.securitygrp subnet_id = var.subnets associate_public_ip_address = <span class="hljs-literal"><span class="hljs-keyword">true</span></span>

tags = <span class="hljs-punctuation">{</span> Name = <span class="hljs-string">"ec2-instance-${count.index + 1}"</span> <span class="hljs-punctuation">}</span> <span class="hljs-punctuation">}</span>

resource <span class="hljs-string">"aws_ebs_volume"</span> <span class="hljs-string">"ebs_volume"</span> <span class="hljs-punctuation">{</span> count = <span class="hljs-number">2</span> availability_zone = var.region size = <span class="hljs-number">8</span> <span class="hljs-punctuation">}</span>

resource <span class="hljs-string">"aws_volume_attachment"</span> <span class="hljs-string">"ebs_attachment"</span> <span class="hljs-punctuation">{</span> count = <span class="hljs-number">2</span> instance_id = aws_instance.ec2_instance<span class="hljs-punctuation">[</span>count.index<span class="hljs-punctuation">]</span>.id volume_id = aws_ebs_volume.ebs_volume<span class="hljs-punctuation">[</span>count.index<span class="hljs-punctuation">]</span>.id device_name = <span class="hljs-string">"/dev/sde"</span> <span class="hljs-punctuation">}</span></pre></div><p id="0a64"><b>variable.tf</b></p><div id="0a28"><pre>variable <span class="hljs-string">"region"</span> <span class="hljs-punctuation">{</span> type = string <span class="hljs-punctuation">}</span>

variable <span class="hljs-string">"ami"</span> <span class=

Options

"hljs-punctuation">{</span> type = string <span class="hljs-punctuation">}</span>

variable <span class="hljs-string">"keyname"</span> <span class="hljs-punctuation">{</span> type = string <span class="hljs-punctuation">}</span>

variable <span class="hljs-string">"securitygrp"</span> <span class="hljs-punctuation">{</span> type = set(string) default = <span class="hljs-punctuation">[</span><span class="hljs-string">"sg-xxxxx"</span><span class="hljs-punctuation">]</span> <span class="hljs-punctuation">}</span>

variable <span class="hljs-string">"subnets"</span> <span class="hljs-punctuation">{</span> type = string <span class="hljs-punctuation">}</span>

variable <span class="hljs-string">"instance_names"</span> <span class="hljs-punctuation">{</span> type = map(string) default = <span class="hljs-punctuation">{</span> instance1 = <span class="hljs-string">"instance1"</span><span class="hljs-punctuation">,</span> instance2 = <span class="hljs-string">"instance2"</span><span class="hljs-punctuation">,</span> instance3 = <span class="hljs-string">"instance3"</span><span class="hljs-punctuation">,</span> <span class="hljs-punctuation">}</span> <span class="hljs-punctuation">}</span></pre></div><p id="6819">Make sure to have the terraform.tfvars file with all the inputs. Post which run.</p><p id="b617">The above code will create 3 ec2 instances with 3 ebs attached to each instances.</p><div id="6408"><pre>terraform init - initializes the aws required provider terraform validate - checks the syntax and provides the errors terraform plan - its <span class="hljs-selector-tag">a</span> dry run before we actually make changes <span class="hljs-selector-tag">to</span> an infra terraform apply - executing the <span class="hljs-selector-tag">code</span></pre></div><p id="9618">#aws #terraform #automation #IaC #ec2 #ebs</p></article></body>

Quickie: How Well Do We Understand Our Partners?

Not as well as we think, research finds

Photo by freestocks on Unsplash

Do you understand your partner well?

“Of course I do!” you’re probably thinking. However, according to research in the Journal of Experimental Social Psychology, you may overestimate how well you understand your significant other — and how well you communicate with them. In fact, chances are couples actually don’t communicate with each other any better than they do with a complete stranger.

“People commonly believe that they communicate better with close friends than with strangers,” said researcher Boaz Keysar. “That closeness can lead people to overestimate how well they communicate, a phenomenon we term the ‘closeness-communication bias.’”

Along with colleague Kenneth Savitsky, Keysar studied a group of married couples who were tasked with trying to decipher the ambiguous phrases that their partners used in a conversation. It turned out that many participants overestimated how much they understood what their spouses were communicating to them, and additionally, participants tended to understand strangers in the study as much as they did their own partners.

“Getting close to someone appears to create the illusion of understanding more than actual understanding.” — Nicholas Epley

“A wife who says to her husband, ‘it’s getting hot in here,’ as a hint for her husband to turn up the air conditioning a notch, may be surprised when he interprets her statement as a coy, amorous advance instead,” said Savitsky. “Although speakers expected their spouse to understand them better than strangers, accuracy rates for spouses and strangers were statistically identical. This result is striking because speakers were more confident that they were understood by their spouse.”

This occurs because when we are close to someone, like a romantic partner or a good friend, there is an “illusion of insight” created — meaning we assume certain information about someone because of our relationship to them.

“Getting close to someone appears to create the illusion of understanding more than actual understanding,” said study co-author Nicholas Epley. “The understanding, ‘What I know is different from what you know’ is essential for effective communication to occur. It is necessary for giving directions, for teaching a class, or just for having an ordinary conversation. But that insight can be elusive when the ‘you’ in question is a close friend or spouse.”

More from Kiki Wellington:

Source:

Couples sometimes communicate no better than strangers, study finds. The University of Chicago. https://news.uchicago.edu/story/couples-sometimes-communicate-no-better-strangers-study-finds

Relationships
Psychology
Communication
Couples
Quickies
Recommended from ReadMedium